NEC V854 UPD703006 User Manual page 164

32/16-bit single-chip microcontroller hardware
Table of Contents

Advertisement

CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
7.2.3 Timer 2
(1) Timers 20 to 24 (TM20 to TM24)
TM2n is a 16-bit timer and is mainly used as an interval timer for software.
TM2n can be only read in 16-bit units.
15
TM2n
Remark n = 0 to 4
TM2n is started or stopped by the CE2n bit of timer control register 2n (TMC2n).
The count clock is selected by the TMC2n register from φ /2, φ /4, φ /8, φ /16, φ /32, φ /64, φ /128, φ /256, and TI2n
input.
Caution
When the value of the timer coincides with the value of the compare register (CM2n), the
timer is cleared by the next clock tick. If the division ratio is large and results in a slow
clock period, the timer value may not be cleared to zero yet, if the timer is read immediately
after the occurrence of the coincidence signal interrupt.
The count clock cannot be changed during timer operations.
(2) Compare registers 20 to 24 (CM20 to CM24)
The compare registers are 16-bit registers connected to TM2n. These registers can be read or written in 16-
bit units.
15
CM2n
Remark n = 0 to 4
164
User's Manual U11969EJ3V0UM00
0
Addresses
After reset
FFFFF2B0H to
0000H
FFFFF330H
0
Addresses
After reset
FFFFF2B2H to
Undefined
FFFFF332H

Advertisement

Table of Contents
loading

Table of Contents