User’s Manual U13045EJ2V0UM00
115
CHAPTER 9 8-BIT TIMER/EVENT COUNTER
9.1 Functions of 8-Bit Timer/Event Counter
8-bit timer/event counter 80 (TM80) has the following functions:
• Interval timer
• External event counter
• Square wave output
• PWM output
(1) 8-bit interval timer
When the 8-bit timer/event counter is used as an interval timer, it generates an interrupt at an arbitrary time
interval set in advance.
Table 9-1. Interval Time of 8-Bit Timer/Event Counter 80
Minimum Interval Time
Maximum Interval Time
Resolution
At f
X
= 5.0 MHz
1/f
X
(200 ns)
2
8
/f
X
(51.2
µ
s)
1/f
X
(200 ns)
2
3
/f
X
(1.6
µ
s)
2
11
/f
X
(409.6
µ
s)
2
3
/f
X
(1.6
µ
s)
At f
CC
= 4.0 MHz
1/f
CC
(250 ns)
2
8
/f
CC
(64
µ
s)
1/f
CC
(250 ns)
2
3
/f
CC
(2.0
µ
s)
2
11
/f
CC
(512
µ
s)
2
3
/f
CC
(2.0
µ
s)
Remark
f
X
:
System clock oscillation frequency (ceramic/crystal oscillation)
f
CC
: System clock oscillation frequency (RC oscillation)
(2) External event counter
The number of pulses of an externally input signal can be measured.
(3) Square wave output
A square wave of arbitrary frequency can be output.
Table 9-2. Square Wave Output Range of 8-Bit Timer/Event Counter 80
Minimum Pulse Width
Maximum Pulse Width
Resolution
At f
X
= 5.0 MHz
1/f
X
(200 ns)
2
8
/f
X
(51.2
µ
s)
1/f
X
(200 ns)
2
3
/f
X
(1.6
µ
s)
2
11
/f
X
(409.6
µ
s)
2
3
/f
X
(1.6
µ
s)
At f
CC
= 4.0 MHz
1/f
CC
(250 ns)
2
8
/f
CC
(64
µ
s)
1/f
CC
(250 ns)
2
3
/f
CC
(2.0
µ
s)
2
11
/f
CC
(512
µ
s)
2
3
/f
CC
(2.0
µ
s)
Remark
f
X
:
System clock oscillation frequency (ceramic/crystal oscillation)
f
CC
: System clock oscillation frequency (RC oscillation)
(4) PWM output
8-bit resolution PWM output can be produced.
Summary of Contents for mPD789101
Page 2: ...2 User s Manual U13045EJ2V0UM00 MEMO...
Page 10: ...10 User s Manual U13045EJ2V0UM00 MEMO...
Page 16: ...User s Manual U13045EJ2V0UM00 16 MEMO...
Page 46: ...User s Manual U13045EJ2V0UM00 46 MEMO...
Page 72: ...72 User s Manual U13045EJ2V0UM00 MEMO...
Page 86: ...User s Manual U13045EJ2V0UM00 86 MEMO...
Page 94: ...User s Manual U13045EJ2V0UM00 94 MEMO...
Page 102: ...User s Manual U13045EJ2V0UM00 102 MEMO...
Page 128: ...User s Manual U13045EJ2V0UM00 128 MEMO...
Page 148: ...User s Manual U13045EJ2V0UM00 148 MEMO...
Page 162: ...User s Manual U13045EJ2V0UM00 162 MEMO...
Page 218: ...User s Manual U13045EJ2V0UM00 218 MEMO...
Page 238: ...User s Manual U13045EJ2V0UM00 238 MEMO...
Page 240: ...User s Manual U13045EJ2V0UM00 240 MEMO...
Page 256: ...User s Manual U13045EJ2V0UM00 256 MEMO...
Page 258: ...258 User s Manual U13045EJ2V0UM00 MEMO...