Fujitsu MB9B500 Series Laptop User Manual


 
4.7 LCD & AD & Key
Hardware Setting
None
Flowchart
Start
Initialization
(clock, key, lcd,
led, dual timer, ad)
Press key?
Display key
pressed in LCD
AD convert
Pre_AD_value-
Cur_AD_calue>threshold value
Display new AD
value on LCD
Count Time = 1s
Set LCD update
flag
Set LCD update
flag
Count time++
Y
N
Y
N
N
Y
LCD update flag = 1 ?
Count time = 0
Clear LCD update
flag
Clear window and
display logo in LCD
Y
N
Figure 4-11: LCD, key, AD Sample Code Flowchart
Usage
1) Run the code
2) Press key, and the key pressed can display on the LCD
3) Regulate the potentiometer to change the input voltage of channel 7, and this
voltage can be detected and displayed on LCD.
20