NEC 78K0S/KB1+ User Manual page 128

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

(1) 8-bit compare register 80 (CR80)
This 8-bit register always compares its set value with the count value of 8-bit timer/counter 80 (TM80). It
generates an interrupt request signal (INTTM80) if the two values match.
CR80 is set by using an 8-bit memory manipulation instruction. A value of 00H to FFH can be set to this
register.
Reset signal generation makes the contents of this register undefined.
Address: FFCDH
Symbol
CR80
Caution When changing the value of CR80, be sure to stop the timer operation. If the value of CR80
is changed with the timer operation enabled, a match interrupt request signal is generated
immediately and the timer may be cleared.
(2) 8-bit timer counter 80 (TM80)
This 8-bit register counts the count pulses.
The value of TM80 can be read by using an 8-bit memory manipulation instruction.
Reset signal generation clears TM80 to 00H.
Address: FFCEH
Symbol
TM80
128
CHAPTER 7 8-BIT TIMER 80
Figure 7-2. Format of 8-bit Compare Register 80 (CR80)
After reset: Undefined
7
6
5
Figure 7-3. Format of 8-bit Timer Counter 80 (TM80)
After reset: 00H
R
7
6
5
User's Manual U17446EJ3V1UD
W
4
3
2
4
3
2
1
0
1
0

Advertisement

Table of Contents
loading

Table of Contents