English
Language : 

UPD784938 Datasheet, PDF (275/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 10 TIMER/EVENT COUNTER 1
(1) Timer counter 1 (TM1/TM1W)
TM1/TM1W is a timer counter that counts up using the count clock specified by the low-order 4 bits of prescaler mode register
1 (PRM1).
The count operation can be specified to stop or enable, and an 8-bit operation mode (TM1)/16-bit operation mode (TM1W)
can be selected, by means of timer control register 1 (TMC1).
TM1/TM1W can be read only with an 8/16-bit manipulation instruction. When RESET is input, TM1/TM1W is cleared to
00H and the count is stopped.
(2) Compare register (CR10/CR10W)
CR10/CR10W is an 8/16-bit register that holds the value that determines the interval timer operation cycle.
If the contents of the CR10/CR10W match the values of TM1/TM1W, an interrupt request (INTC10) is generated. This match
signal is also a real-time output port trigger signal. Also, the count value can be cleared by a match.
This compare register operates as CR10 in the 8-bit operation mode, and CR10W in the 16-bit operation mode.
CR10/CR10W can be read or written to with an 8/16-bit manipulation instruction. The contents of this register are undefined
after RESET input.
(3) Capture/compare register (CR11/CR11W)
CR11/CR11W is an 8/16-bit register that can be specified as a compare register for detecting a match with the TM1/TM1W
count value or a capture register for capturing the TM1/TM1W count value according to the setting of capture/compare
control register 1 (CRC1).
This capture/compare register operates as CR11 in the 8-bit operation mode, and CR11W in the 16-bit operation mode.
CR11/CR11W can be read or written to with an 8/16-bit manipulation instruction. The contents of this register are undefined
after RESET input.
(a) When specified as compare register
CR11/CR11W functions as an 8/16-bit register that holds the value that determines the interval timer operation cycle.
An interrupt request (INTC11) is generated by a match between the contents of CR11/CR11W and the contents of
TM1/TM1W.
Also, the count value can be cleared by a match. This match signal is also a real-time output port trigger signal.
(b) When specified as capture register
CR11/CR11W functions as an 8/16-bit register that captures the contents of TM1/TM1W in synchronization with the
input of a valid edge (capture trigger) on the external interrupt request input pin (INTP0).
The contents of the CR11/CR11W are retained until the next capture trigger is generated. TM1/TM1W can be cleared
after a capture operation.
(4) Capture register (CR12/CR12W)
CR12/CR12W is an 8/16-bit register that captures the contents of TM1/TM1W.
The capture operation is synchronized with the input of a valid edge (capture trigger) on the external interrupt request input
pin (INTP0). The contents of the CR12/CR12W are retained until the next capture trigger is generated.
This capture/compare register operates as CR12 in the 8-bit operation mode, and CR12W in the 16-bit operation mode.
CR12/CR12W can be read only with an 8/16-bit manipulation instruction. The contents of this register are undefined after
RESET input.
Preliminary User’s Manual U13987EJ1V0UM00
275