Block Diagram Of 16-Bit Timer 20 - NEC PD789488 User Manual

Pd789489 subseries 8-bit single-chip microcontrollers
Table of Contents

Advertisement

16-bit timer mode
control register 20
(TMC20)
TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20
f
X
2
f
/2
X
5
f
/2
X
Timer 61 interrupt
request signal
CPT20/TO20
Edge detector
/INTP3/P33
(1) 16-bit compare register 20 (CR20)
This 16-bit register is used to continually compare the value set to CR20 with the count value in 16-bit timer
counter 20 (TM20) and to issue an interrupt request (INTTM20) when a match occurs.
CR20 is set via a 16-bit memory manipulation instruction. Values from 0000H to FFFFH can be set.
RESET input sets this register to FFFFH.
Caution To rewrite CR20 during a count operation, first set interrupt mask flag register 0 (MK0) to
disable interrupts. Also, set inversion inhibited for the timer output data in 16-bit timer
mode control register 20 (TMC20). If CR20 is rewritten while interrupts are enabled, an
interrupt request may be issued at the point of rewrite.
(2) 16-bit timer counter 20 (TM20)
This is a 16-bit register that is used to count the count pulses.
TM20 can be read with a 16-bit memory manipulation instruction.
The counter is in free-running mode when the count clock is being input.
RESET input sets this counter to 0000H and restarts free-running mode.
Caution The count value after releasing STOP mode is undefined because the count operation
occurred during the oscillation stabilization time.
(3) 16-bit capture register 20 (TCP20)
This is a 16-bit register used to capture the contents of 16-bit timer counter 20 (TM20).
TCP20 is set with a 16-bit memory manipulation instruction.
RESET input makes this register undefined.
CHAPTER 6 16-BIT TIMER 20
Figure 6-1. Block Diagram of 16-Bit Timer 20
Internal bus
16-bit compare register 20 (CR20)
Match
16-bit timer counter 20 (TM20)
16-bit capture
16-bit counter
register 20 (TCP20)
read buffer
Internal bus
User's Manual U15331EJ4V1UD
P33
output latch
F/F
TOD20
16-bit timer mode
control register 20
OVF
PM33
TO20/CPT20
/INTP3/P33
INTTM20
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd78f9488Pd78f9489Pd789489

Table of Contents