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.53

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.

 

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

The illuminance (lux) is converted to a 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.

 

7-segment LEDs for displaying up to eight-digit numbers with dynamic lighting.

 

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.

 

 

 

Character LCDs that operate with GPIO connections, one having a display area with two lines of eight characters and the other two lines of 16 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.

 

A humidity-temperature sensor for acquiring data on temperature and humidity through I2C communications.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console icon button at the bottom right corner of the component.

The register values in the component can be confirmed by clicking on the table icon button next to the center-right side of the component.

 

A character-LCD component for displaying data through I2C communications.

The component has a display area with two lines of 16 characters.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console icon button at the bottom right corner of the component.

The register values in the component can be confirmed by clicking on the table icon button next to the center-right side of the component.

 

A device for sending and receiving data through I2C communications. The register values in the component can be changed to the desired values.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console icon button at the bottom right corner of the component.

The register values in the component can be confirmed by clicking on the table icon button next to the center-right side of the component.

 

An air velocity sensor for acquiring wind-velocity data through I2C communications.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console icon button at the bottom right corner of the component.

The register values in the component can be confirmed by clicking on the table icon button next to the center-right side of the component.

 

A flow sensor for acquiring airflow data through I2C communications.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console icon button at the bottom right corner of the component.

The register values in the component can be confirmed by clicking on the table icon button next to the center-right side of the component.

 

A component representing the operation of a fire detector that consists of an infrared LED, photodiode, and operational amplifier. If a fire is detected, it produces current for input to an analog input pin.

 

 

A component for the input of a cyclic pulse signal.

 

 

 

A component consisting of an RS-485 transceiver connected to the MCU via a UART and a Modbus communications device.

Details of the I2C communications can be confirmed on the Serial Monitor tab. The serial monitoring area can also be opened by clicking on the console 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, G24 group.

(2)

Environments area

Values related to the environment, such as the temperature or humidity in the vicinity of the virtual board, can be specified. Some components operate by acquiring these values.

(3)

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.

(4)

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.54

Detailed waveform monitoring

 

Caution

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

(5)

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 (6) Detailed information display/change area).

(6)

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.

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, a brushless DC motor or a Buzzer.

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, 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 appearance of a component. This property is displayed when the component is a switch, a vibration sensor, an analog input switch, or a character LCD.

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, a temperature sensor or a illuminance 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, a current sensor, a illuminance Sensor or a Pulse Input Device.

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

Clicking on the [Setting…] button opens a dialog box for making pin settings. Specify the MCU pins to be connected to the character LCD.

UART Config

Clicking on the [Setting…] button opens a dialog box for making UART settings. Make settings for the UART unit connected to the device and for UART communications..

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.

Input Method

Specify the method for the input of values to the component. Selecting [Get ** from the environment] acquires the required values from the environment above the virtual board according to the component and enters the values to the MCU.

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

I2C (Slave) Config

Clicking on the [Setting…] button opens a dialog box for making I2C settings. Set an I2C unit connected to the device and the slave address of a device.

Product Type

This property is displayed for selecting the product type of the component when the component is a temperature-humidity sensor (I2C) or an air velocity sensor (I2C). Confirm the specifications of the given product by clicking on the [Spec] button to display the modal dialog box.

Pin & Operation Settings

Clicking on the [Setting…] button opens a dialog box for making pin and operation settings. Specify the method for operating the MCU pins connected to the 7-segment LED (dynamic lighting) component and the LEDs.

Fire Detector Config

Clicking on the [Setting…] button opens a dialog box for making settings for the fire detector. Specify the pins to be connected to and the maximum value of the voltage to be input to the fire detector.

Initial State

Select the initial state when the CPU is reset.

This property is displayed when the component is Pulse Input Device.

Pulse Config

Clicking on the [Setting…] button opens a dialog box for making pin settings.

Set the pulse waveform to be input to the pin.

Modbus Communication Device Config

Clicking on the [Setting…] button opens a dialog box for making pin settings.Make settings for Modbus communications and the communications device.

(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.55

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.56

Serial Monitor (UART)

For I2C communications, the Serial Monitor tab shows the communication direction (read or write), the slave address of the communication destination, and the communication data. When a single I2C unit is connected to multiple slave addresses, the communication data can be filtered per slave address.

Figure A.57

Serial Monitor (I2C)

Modbus communications enable confirmation of the input of requests and the relevant responses. The data for UART communications between the RS-485 transceiver and the simulator can also be confirmed.

Figure A.58

Serial Monitor (Modbus)

-

Copyright

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

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