V850ES/Jx3H – Plug it!
11.2 “Jx3-H_PLUGIT_DEMO” sample program
This sample program is a simple random number generator between 0 and 9 to demonstrate the usage of
the Jx3-H_PLUGIT_DEMO starterkit. After starting the generator by pressing SW3 the segments of the
seven-segment-LED are flashing until a random number is generated by pressing SW4. The generated
number is displayed and flashes at the seven-segment-LED U3. To start a new generation loop, please
press again SW3.
Figure 34: Project Window Jx3-H_PLUGIT_DEMO
11.2.1 How to run the sample program
After starting the application, the switches SW3, SW4 and the seven-segment LED are the user interface to
the sample program.
•
Switch
SW3
By pressing this switch, the generation of a new random number is started. In this state the
segments of the seven-segment display are flashing.
•
Switch
SW4
By pressing this switch, the generation of a new random number is stopped. The newly
generated number is displayed and flashes at the seven-segment display.
User’s Manual U19647EE2V0UM00
43