Everything
 

Virtual Board panel [Simulator]


This panel is used to configure the virtual target system and operate the virtual components.

With this panel, the results of data that have been input to and output from peripheral I/O modules can be confirmed.

Note that this panel is only available when the simulator for the active project supports peripheral function simulations.

Figure A.52

Virtual Board panel [Simulator]

 

This section describes the following.

[How to open]

-

From the [View] menu, select [Virtual Board].

[Description of each area]

(1)

Virtual board area

This area is used to operate the virtual target system.

It supports the following components.

These components can be operated while the program is running.

 

Light Emitting Diode

An LED can be connected to any pin, and the output from the pin can be indicated by switching the LED on or off.

 

 

 

(with brightness control)

Light Emitting Diode

An LED can be connected to any pin, and PWM control can be used to control the apparent brightness by switching the LED on and off.

The display on the LED is not correct if the PWM cycle is greater than 100 ms.

 

Digital input switch (push type)

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Digital input switch (toggle type)

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Used for inputting analog data. Any data within a given range can be set.

Any value within a specified range can be assigned to a pin connected to an A/D converter.

 

Used for inputting analog data. Any data within a given range can be set.

The gas concentration sensor value (PPM) is converted to a voltage for a pin connected to. Any value within a specified range can be assigned to the pin.

 

Used for inputting analog data. Any data within a given range can be set.

The current value (mA) is converted to the voltage for the connected pin. Any value within a specified range can be assigned to the pin.

 

Switch for vibration sensing

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Buzzer for an alarm machine

A button can be connected to any pin. The output of the pin is indicated by both sound and image.

 

Temperature sensor

The voltage produced from the specified temperature can be applied to a pin to which the A/D converter is connected.

Relational expression between temperature and input voltage:

Voltage (V) input to the connected pin =
(conversion_factor[mV/℃] x specified_temperature[℃] + conversion_offset[mV]) / 1000.0

 

Fan motor

The fan is made to rotate by the input of a digital signal from the connected pin.

The rotational velocity can be controlled by the duty ratio of the PWM signal.

 

DC motor

The motor is made to rotate by the input of a digital signal from the connected pin.

The rotational velocity can be controlled by the duty ratio of the PWM signal.

 

Shading sensor

A specified voltage value can be output to the connected pin in response to covering the red light-emitting part by the hand-image icon.

 

Wireless-charging transmitter

When a PWM signal is being input through the connected pin, a sphere revolves around the component to indicate that charging is in progress.

 

Infrared receiver

Clicking on the component leads to the output of the signal which has been specified for the connected pin.

 

Segment LCD for internal driverNote1

Segments of this LCD are illuminated in response to control signals sent from the LCD driver in the MCU. You can control the correspondence between the MCU's control signals and segments in the property area.

 

Brushless DC motorNote2

Signals output from the component are used in control by a feedback system. When a three-phase PWM signal is input, the motor rotates.

 

Used for specifying multiple switches for an analog input pin.

A maximum of five switches are specifiable.

When a switch is pressed, the voltage specified for the given switches is input to the selected analog pin.

 

RSK LCD Panel

An LCD panel included with the Renesas Starter Kit for RL78/L12Note1, which operates with the on-chip LCD controller of that MCU.

 

 

 

RL78/Gx RSK LCD Panel

An LCD panel for debugging included with the Renesas Starter Kit for RL78/G13, G14.Note3

The panel has a display area with two lines of eight characters.

 

A console used for UART communications with the MCU. The transmitted or received data can be confirmed in the Serial Monitor tab.

The serial monitoring area can also be opened by clicking on the icon button at the bottom right corner of the component.

 

Connected to the MCU via the UART to operate as a mock-up component for Wi-Fi communications.

When a command is received from the MCU via the UART, a defined response is returned. The transmitted or received data can be confirmed in the Serial Monitor tab.

The serial monitoring area can also be opened by clicking on the icon button at the bottom right corner of the component.

Note 1.

At present, this component is only available for use with devices of the RL78/L12 group.

Note 2.

At present, this component is only available for use with devices of the RL78/G1F group.

Note 3.

At present, this component is only available for use with devices of the RL78/G13, G13A, and G14 groups.

(2)

Button area

These buttons are used to add components.

This area is valid while the program is stopped.

Add component

Clicking on the button displays a list of components which are available to be selected for addition.

Drag the component to move it to the position where it is to be placed.

Clicking on the delete button in the upper-right corner of the selected component deletes that component.

(3)

Detailed waveform monitoring area

Clicking on the tab shows the detailed waveform monitor.

This monitor displays the waveforms of pins registered beforehand at 500-ns intervals for one millisecond before execution of the program is stopped.

In addition, markers can be used to check the states at particular points and a search function can be used to check whether combinations of states that satisfy certain conditions are present.

For details, refer to the part of the help system that can be displayed from the detailed waveform monitor.

Figure A.53

Detailed waveform monitoring

 

Caution

At present, this component is only available for use with devices of the RL78/G1F group.

(4)

Tab selection area

Selecting a tab switches the category in which detailed information is displayed.

The following tabs exist in this panel (for details on what is displayed and how to configure settings on each tab, refer to the corresponding (5) Detailed information display/change area).

(5)

Detailed information display/change area

(a)

Property tab

This area is used to display or edit the properties of the component.

The properties of the component selected while the program is stopped are displayed.

The following items are displayed in this area.

Type

Select the part.

Subtype

Switch the method for controlling the component.

This property is displayed when the component is an LED, a DC motor, a DC fan motor, or a brushless DC motor.

Name

Specify the name of the part.

Connected to

Select the name of the pin to which the LED is to be connected.

Color

Select the color of the LED.

This property is displayed when the component is an LED.

The following colors can be selected.

Red, Green, Blue, Orange

Active Level

Select the active state.

This property is displayed when the component is an LED, switch, Buzzer, DC Motor, DC Fan Motor, Infrared receiver or Vibration Sensor.

Active High

Sets the active level to High.

Active Low

Sets the active level to Low.

Appearance

Select the type of the switch.

This property is displayed when the component is a switch, Vibration Sensor, or Analog Input Switch.

Push

Sets the push switch.

Toggle

Sets the toggle switch.

Input Step

Display or specify the minimum size of the variation in an input value.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

For a potentiometer, the value displayed or entered in the text box is the stepping width.

Initial Input Value

Select the initial value when the CPU is reset.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

On Reset

Select the operation when the CPU is reset.

This property is displayed when the component is a potentiometer, a gas sensor, a temperature sensor or a current sensor.

Hold

The state immediately before the CPU was reset is retained after the CPU has been reset.

Initialize

Specify the value which has been selected in [Initial Input Value] when the CPU is reset.

Sound

Select the mute of the buzzer.

This property is displayed when the component is a buzzer.

COM/SEG Signal

-

Segment LCD for internal driver

View or change the current settings of control signals to be sent to the Segment LCD for internal driver.

This property initially shows the current setting for the number of digits and whether the control signals have been selected.

Selecting this property produces a button in the displayed area.

Clicking on the button brings up the control interface shown below.

Enter the desired number of digits, number of segment and select the control signals for the individual segments. Click on the [OK] button to complete the settings.

-

RSK LCD Panel

View or change the current settings for control signals to be sent to the LCD panel of the RSK.

Selecting this property brings up the control interface shown below.

Select the COM and SEG signals to be connected to the LCD panel. Click on the [OK] button to complete the settings.

Input OutPut connection

View or change the current settings for the input and output pins to be used with the brushless DC motor.

Selecting this property produces a button in the displayed area.

Clicking on the button brings up the control interface shown below.

 

Switches

View or set the number of analog input switches and the voltages for the switches. Selecting this property produces a box for entering the maximum input voltage, a box for entering the voltage and the [Add] button, and tags for the voltages of individual switches.

A switch with the voltage specified in the box for entering the value is added by pressing the [Add] button.

The voltages of individual switches are deleted by clicking on the [Delete] button of the tag.

Pin Settings

View or change the current settings for control signals to be sent to the LCD panel of the RL78/Gx RSK.

Selecting this property brings up the control interface shown below.

Select six pins to be connected to the LCD panel. Click on the [OK] button to complete the settings.

UART Settings

Clicking on the [Setting…] button opens a dialog box for making UART settings. Set the pins to be connected to the UART console and make the UART communications settings..

Receive Code Settings

Clicking on the [Setting…] button opens a dialog box for making signal code settings. Set a waveform which is repeatedly input to the MCU..

BLDC Motor Parameter

View or change the parameters of a brushless DC motor.

Selecting this property produces a button in the displayed area.

Clicking on the button brings up the control interface shown below.

Conversion Formula

Clicking on the button of this property brings up the control interface shown below.

Define a conversion factor for use when a value entered from a component is converted to a voltage to be input to the MCU.

This property is displayed when the component is a potentiometer, a gas sensor, a temperature sensor, or a current sensor.

(b)

Pins tab

Displays a list of all pins of the MCU.

Each pin can be used to input a digital or analog value when it is not connected to a component.

The value specified here cannot be changed during program execution.

Figure A.54

Pins

(c)

Serial Monitor tab

The serial communication component added to the virtual board allows you to check the contents of data received and send data to the simulator.

An icon button is displayed in the lower right corner of the serial communication component, and clicking the button displays the [Serial Monitor] tab.

UART communication supports hexadecimal notation and ASCII code notation, and data sent from the MCU is prefixed with > is added to the beginning of each line of data sent from the MCU.

Figure A.55

Serial Monitor

- Copyright

The Virtual Board Panel may use the copyrighted components specified in the file below.

CS+ install folder\CC\vboard\licenses-abstract.txt