Exercise 5 - Uart0 Serial Command Program; Figure 41: Applilet Ez For Hcd Controller Dimmer Program Settings (Analog Input) - NEC 78K0 User Manual

Hide thumbs Also See for 78K0:
Table of Contents

Advertisement

78K0 - Shine It!
3.
Change the Dimmer Program to "Analog Input"

Figure 41: Applilet EZ for HCD Controller Dimmer Program settings (Analog Input)

4.
Use the "each channel" selection and choose a moving average of 6.
5.
Make sure that the EV-K0-HCD board is in programming mode (SW1.1 set to OFF) and the
USB cable is connected correctly. Click the save button and afterwards the All P. button.
After downloading the application disconnect the USB and set the EV-K0-HCD board in the
run mode as described in
the LEDs and counter-clockwise will increase the brightness the LEDs.
7.5 Exercise 5 – UART0 serial command program
This program controls the duty value for each channel based on the given serial communication command.
The serial command programs support either binary or ASCII communication format. For this exercise we
will use UART0 with the ASCII command set. A straight DB9 female to female cable is required for this
exercise.
Host (PC) → target (EV-K0-HCD)
ch
Comma(0x2C)
ch
Comma(0x2C)
1 byte
1 byte
1.
Make sure that you have set all the settings as explained in
2.
We will resave the new Applilet EZ project name to uart0.xml. Select File → Save as.. and
input "uart0.xml" and then click Save.
Exercise 2
cmd
Comma(0x2C)
cmd
Comma(0x2C)
2 bytes
1 byte
User's Manual U19610EE3V0UM00
point 7. Turning the potentiometer clockwise will dim
data
LineFeed(0x0D)
data
LineFeed(0x0D)
3 bytes
1 byte
Exercise
CarriageReturn(0x0A
)
CarriageReturn(0x0A
)
1 byte
1.
39

Advertisement

Table of Contents
loading

Table of Contents