78K0/Fx2 – CAN it!
14.2 ADC demo
This sample program realizes a simple voltage meter. By using the integrated ADC, the voltage supplied to
80 of 78K0/FF2 device, is measured. The input voltage is adjusted by
t can
ADC on input channel 0, port P
potentiometer R14. The board shows the measured voltage by driving the LC display. The output forma
be changed by pressing button SW2.
Used Internal Peripherals
Used External Parts
Timer00 Character
LC
display
Timer01 Potentiometer
R14
Timer50 Button
SW2
A/D converter
Button SW3
ED’s D1- D4
L
14.3 CAN demo
his samp
es a sim le vol
tmeter,
e voltage
tegrated ADC (i
ice) is measured and
ansmitted
0ms in ervals.
hows the
by driv g the L
If the CAN node is used as display, the voltage value
co
tra
buttons SW2 and SW3 during
pro
T
le program simulat
th
supplied to the in
p
tmeter as a CAN node. If the CAN node is used as the vol
nput channel 0, port P80 of 78K0/FF2 dev
t
The input voltage is adjusted by potentiometer R14. The board
tr
via CAN-bus in 10
s
measured voltage
in
C display.
received via CAN-bus is displayed on the LCD. The
nsmitter or receiver can be done by
nfiguration of the CAN node as
gram start-up.
Used Internal Peripherals
Used External Parts
Timer00 Character
LC
display
Timer01 Potentiometer
R14
Timer50 Button
SW2
A/D converter
Button SW3
CAN controller
LED’s D1- D4
14.4 ReacTime demo
This sample progr
he
lication waits
am demonstrates a reaction time measurement. After the button SW3 is pressed t
pp
for a random time duration between 0.50 and 3.45 seconds. Then the measurement starts
own on the LC display. Pressing button SW2 starts a new
a
by incrementing a reaction counter every 50ms. The actual counter value is shown by a bar graph using the
character LC display until the next keystroke of button SW3. When the button SW3 is pressed again, the
easurement stops and the reaction time is sh
m
measuring cycle.
Used Internal Peripherals
Used External Parts
Timer00 Character
LC
display
Timer01 Button
SW2
Timer50 Button
SW3
LED’s D1- D4
78
Содержание 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 ...