Fujitsu 32-Bit Microcontroller MB9B500 Series Manuel d'utilisateur Page 20

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 34
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 19
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
Vue de la page 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 33 34

Commentaires sur ces manuels

Pas de commentaire