Download III - Renesas Electronics
Transcript
CHAPTER 9 APPLICATIONS OF A/D CONVERTER <RAM used> Name Usage Attribute Bytes SADDR 4 ADDAT Stores A/D conversion value DSPLEV Stores display level HLDLEV Stores hold level CT20MS Counter measuring 20 ms CT1S Counter measuring 1 s DIGCNT Display digit counter DSPDAT Stores display data 4 WORKCT Work counter for loop processing 1 1 <Flag used> Name Usage T20MSF Set every 20 ms T1SF Set every 1 s <Nesting> 2 levels 5 bytes <Hardware used> • A/D converter • 8-bit timer/event counter 1 • P6 <Initial setting> • OSMS = #00000001B ; Oscillation mode select register: does not use divider circuit • ADM = #1000×××1B ; Selects channel of A/D converter and starts operation • TCL1 = #10111011B ; Interval time of 2 ms of 8-bit timer/event counter 1 TMC1 = #00000001B CR10 = 130 • P6 output mode • Makes P6 output latch low • Enables INTTM1 interrupt 309
Related documents
here - BillyDump
uPD78054, 78054Y SUBSERIES 8-BIT SINGLE
NEC PD78052(A) Network Card User Manual
uPD780053, 780054, 780055, 780056, 780058, 780058B, 780053Y
µPD78F0058
µPD78F0988A, 78F0988A(A)
NEC PD78P078 Network Card User Manual
NEC PD754244 Network Card User Manual
78K/0 Series instruction
Vigo VG15349 Installation Guide
NEC 78K/0 Series User's Manual