Compare Register And Capture/Compare Register Operations - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series
(b) Restart after 0 is set in TM1 cleared
Count clock
(c) Restart before 0 is set in TM1 cleared
Count clock

7.2.5 Compare Register and Capture/Compare Register Operations

(1) Compare operation
Eight-bit timer/counter 1 performs an operation to compare the values set in the compare registers with timer
count values.
When the value set in the compare register (CR10) and the value set in the capture/compare register (CR11)
specified to perform compare operation coincide with count values of 8-bit timer 1 (TM1), the interrupt request
signals (INTC10 for the CR10 register and INTC11 for the CR11 register) are generated.
After the value of the CR10 register or CR11 register coincides with a count value of TM1, the count value of
TM1 can be cleared. Thus, 8-bit timer/counter 1 can operate as an interval timer for repeatedly counting up
to the value set in the CR10 register or CR11 register.
148
n-1
n
TM1
CE1
When the CE1 bit is set to 1 aftr this count clock,
counting starts from 0 on the count clock input
after the CE1 bit has been set.
n-1
n
TM1
CE1
When the CE1 bit is set to 1 before this count clock, Clearing
TM1 by CE1←0 and counting by CE1←1 are performed simultaneously.
0
0
0
1
1
2

Advertisement

Table of Contents
loading

Table of Contents