16-Bit Timer/Event Counter Operating Precautions - NEC 78014Y Series User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

8.6 16-Bit Timer/Event Counter Operating Precautions

(1) Timer start errors
An error with a maximum of one clock may occur concerning the time required for a match signal to be generated
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) 16-bit compare register set
Set a value other than 0000H to the 16-bit compare register (CR00).
Thus, when using the 16-bit compare register as event counter, one-pulse count operation cannot be carried out.
(3) Operation after compare register change during timer count operation
If the value after the 16-bit compare register (CR00) is changed is smaller than that of the 16-bit timer register
(TM0), TM0 continues counting and then restarts counting from 0. Therefore, if the value after CR00 changes
(M) is smaller than the value before change (N), it is necessary to restart the timer after changing CR00.
www.DataSheet4U.com
Figure 8-21. Timings after Change of Compare Register during Timer Count Operation
Count Pulse
CR00
TM0 Count Value
Remark
N > X > M
196
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
Figure 8-20. 16-Bit Timer Register Start Timings
0000H
Timer Start
N
X – 1
X
0001H
0002H
M
FFFFH
0000H
0003H
0004H
0001H
0002H

Advertisement

Table of Contents
loading

Table of Contents