UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 379

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(3) Up to 1 count clock is required after an operation to start timer/counter 2 (CE2
(4) While an instruction that writes data to the compare register (CR2n: n = 0 or 1) is executed, coincidence between CR2n,
(5) Match between timer register 2 (TM2) and compare register (CR2n: n = 0, 1) is detected only when TM2 is incremented.
counter 2 actually starts (refer to Figure 10-61).
For example, when using timer/counter 2 as an interval timer, the first interval time is delayed by up to 1 clock. The
second and those that follow are at the specified interval.
to which the data is to be written, and timer register 2 (TM2) is not detected. For example, if the contents of CR2n
do not change before and after the writing, the interrupt request is not generated even if the value of TM2 coincides
with the value of CR2n, nor does the timer output (TOn + 2: n + 2 = 2, 3) change.
Write data to CR2n when timer/counter 2 is executing counting operation in the manner that the contents of TM2 do
not match the value of CR2n before and after writing (e.g., immediately after an interrupt request has been generated
because TM2 and CR2n have matched).
Therefore, the interrupt request is not generated and timer output (TOn + 2 : n + 2 = 2, 3) does not change even if
the same value as TM2 is written to CR2n.
Count clock
TM2
CE2
Figure 10-61 Operation When Counting Is Started
CHAPTER 10 TIMER/COUNTER 2
0
Count start command (CE2
by software
Timing to start actual counting
0
1
1)
1) has been performed before timer/
2
3
339

Related parts for UPD784026