NEC PD17062 Datasheet page 138

Mos integrated circuit 4-bit single-chip microcontroller containing pll frequency synthesizer and image display controller
Table of Contents

Advertisement

12.3.2 Timer Error Caused by the BTM0CY Flag
There are two types of timer error that can occur because of the BTM0CY flag. One type depends on the
timing when the BTM0CY flag is checked, and the other type occurs when the timer carry FF setting interval
is changed.
These types of timer error are detailed below.
(1) Timer error by BTM0CY flag check timing
As described in Section 12.3.1, the time interval at which the BTM0CY flag is checked must be less than
the time interval at which the timer carry FF is set to 1.
Suppose the time interval at which the BTM0CY flag is checked is t
5 ms) at which timer carry FF is set is t
t
< t
CHECK
SET
Under this condition, as shown in Fig. 12-4, the timer error that depends on the timing when the BTM0CY
flag is checked is as follows:
0 < error < t
CHECK
Fig. 12-4 Timer Error That Depends on the Time Interval at Which the BTM0CY Flag Is Checked
Timer carry FF set pulse
BTM0CY flag
As shown in Fig. 12-4, when the BTM0CY flag is checked at
be updated. When it is checked at
&
again at
. In this case, the timer count is increased by t
138
. The relationship between these two intervals must be as follows:
SET
t
SET
t
CHECK
SKT1
SKT1
#
$
BTM0CY
BTM0CY
%
, it appears to be 0, and defers the updating of the timer until it is checked
CHECK3
, and the time interval (100 ms or
CHECK
t
t
CHECK2
CHECK3
SKT1
%
BTM0CY
$
, it appears to be 1 and causes the timer to
.
PD17062
SKT1
&
BTM0CY

Advertisement

Table of Contents
loading

Table of Contents