78K0/Fx2 – CAN it!
14.5 Timer demo
This sample program demonstrates a real time clock. After the program is started the watch timer is
initialized to generate an exact clock reference, based on the 32.768 kHz sub-clock. The actual time is
displayed using the LCD module. By pressing button SW2 / SW3 the time can be adjusted.
Used Internal Peripherals
Used External Parts
Timer00 Character
LC
display
Timer01 Button
SW2
WatchTimer Button
SW3
LED’s D1- D4
14.6 UART demo
realizes a temperature meter with serial communication channel. The sample program
s displayed on the LCD. Before the temperature
easurement is started the calibration of the temperature sensor has to be done, by adjusting the
This sample program
does a cyclic measurement of the input voltage of ANI2 analogue input, equal to port P82 of 78K0/FF2
device, connected to the temperature sensor KTY13-5. The temperature is calculated and the result is
transferred via UART60 to a terminal program running on the host machine. The data transfer speed is set
to 115200 bps per default. Additionally the temperature i
m
temperature offset via button SW2 and SW3.
Used Internal Peripherals
Used External Parts
Timer00 Character
LC
display
A/D
m
3-5
converter
Te perature sensor KTY1
UART60 Button
SW2
Button
SW3
LED’s D1- D4
lease note, by using the On-Board debug mode serial communication via UART60 is not possible because
e USB/UART communication channel is used for debugging purpose.
P
th
79
Содержание 78K0/Fx2
Страница 80: ...78K0 Fx2 CAN it 15 USB interface cable Mini B type Figure 77 USB interface cable Mini B type 80 ...
Страница 81: ...78K0 Fx2 CAN it 16 Schematics Figure 78 78K0 Fx2 CAN it baseboard schematics 81 ...
Страница 82: ...78K0 Fx2 CAN it Figure 79 78K0 Fx2 CAN it CPU module schematics 82 ...
Страница 83: ...78K0 Fx2 CAN it MEMO 83 ...