16-Bit Timer 0 Tm0 Cautions - NEC mPD780852 Series Preliminary User's Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

6.6 16-Bit Timer 0 TM0 Cautions

(1) Timer start errors
An error with a maximum of one clock may occur until counting is started after timer start. This is because the
16-bit timer register (TM0) is started asynchronously with the count pulse.
Count pulse
TM0 count value
(2) Capture register data retention timings
If the valid edge of the TI0n/P4n pin is input during 16-bit capture register 0n (CR0n) read, CR0n performs capture
operation, but the capture value is not guaranteed. However, the interrupt request flag (INTTM0n) is set upon
detection of the valid edge.
Count pulse
TM0 count value
Edge input
Interrupt request flag
Capture read signal
CR0n interrupt value
Remark n = 0 to 2
(3) Valid edge setting
Set the valid edge of the TI0n/P4n pin after setting bit 2 (TMC02) of the 16-bit timer mode control register (TMC0)
to 0, and then stopping timer operation. Valid edge setting is carried out with bits 2 to 7 (ESn0 and ESn1) of
the prescaler mode register (PRM0).
Remark n = 0 to 2
CHAPTER 6 16-BIT TIMER 0 TM0
Figure 6-10. 16-Bit Timer Register Start Timing
0000H
0001H
Timer start
Figure 6-11. Capture Register Data Retention Timing
N − 3
N − 2
N − 1
N
N + 1
X
N
Preliminary User's Manual U14581EJ3V0UM00
0002H
0003H
0004H
M − 3 M − 2
M − 1
M
M + 1 M + 2 M + 3
N
Capture operation
111

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780851Mpd780851aMpd780852aMpd78f0852

Table of Contents