www.DataSheet4U.com
CHAPTER 9 8-BIT TIMER/EVENT COUNTER
219
(3) Square-wave output operation
The 8-bit timer/event counter operates as a square wave with any selected frequency which is output at intervals
of the value preset to 8-bit compare registers (CR10 and CR20). When setting the count value, the upper 8-
bit value is set as CR20 and the lower 8-bit value as CR10.
The TO2/P32 pin output status is inverted at intervals of the count value preset to CR10 and CR20 by setting
bit 4 (TOE2) of the 8-bit timer output control register (TOC1) to 1. This enables a square wave with any selected
frequency to be output.
Table 9-10. Square-Wave Output Ranges when 2-Channel 8-Bit Timer/Event Counters
(TM1 and TM2) are Used as 16-Bit Tmer/Event Counter
TCL13
TCL12
TCL11
TCL10
Minimum Pulse Width
Maximum Pulse Width
Resolution
0
1
1
0
2
2
×
1/f
X
(400 ns)
2
18
×
1/f
X
(26.2 ms)
2
2
×
1/f
X
(400 ns)
0
1
1
1
2
3
×
1/f
X
(800 ns)
2
19
×
1/f
X
(52.4 ms)
2
3
×
1/f
X
(800 ns)
1
0
0
0
2
4
×
1/f
X
(1.6
µ
s)
2
20
×
1/f
X
(104.9 ms)
2
4
×
1/f
X
(1.6
µ
s)
1
0
0
1
2
5
×
1/f
X
(3.2
µ
s)
2
21
×
1/f
X
(209.7 ms)
2
5
×
1/f
X
(3.2
µ
s)
1
0
1
0
2
6
×
1/f
X
(6.4
µ
s)
2
22
×
1/f
X
(419.4 ms)
2
6
×
1/f
X
(6.4
µ
s)
1
0
1
1
2
7
×
1/f
X
(12.8
µ
s)
2
23
×
1/f
X
(838.9 ms)
2
7
×
1/f
X
(12.8
µ
s)
1
1
0
0
2
8
×
1/f
X
(25.6
µ
s)
2
24
×
1/f
X
(1.7 s)
2
8
×
1/f
X
(25.6
µ
s)
1
1
0
1
2
9
×
1/f
X
(51.2
µ
s)
2
25
×
1/f
X
(3.4 s)
2
9
×
1/f
X
(51.2
µ
s)
1
1
1
0
2
10
×
1/f
X
(102.4
µ
s)
2
26
×
1/f
X
(6.7 s)
2
10
×
1/f
X
(102.4
µ
s)
1
1
1
1
2
12
×
1/f
X
(409.6
µ
s)
2
28
×
1/f
X
(26.8 s)
2
12
×
1/f
X
(409.6
µ
s)
Remarks
1.
f
X
: Main system clock oscillation frequency
2.
TCL10 to TCL13: Bits 0 to 3 of the timer clock select register 1 (TCL1)
3.
Values in parentheses apply to operation with f
X
= 10.0 MHz.
Figure 9-13. Square-Wave Output Operation Timings
Interval Time
TO2
TM1
TM2
00H
01H
N
N
N+1
FFH 00H
FFH 00H
FFH 00H 01H
00H
Count Clock
CR10
CR20
Count Start
Lebel Inversion
Counter Clear
01H
02H
M–1 M
M
N 00H 01H
00H
Summary of Contents for 78011BGC AB8 Series
Page 2: ...www DataSheet4U com 2 MEMO ...
Page 8: ...www DataSheet4U com 8 MEMO ...
Page 22: ...www DataSheet4U com 22 MEMO ...
Page 30: ...www DataSheet4U com 30 MEMO ...
Page 34: ...www DataSheet4U com 34 MEMO ...
Page 62: ...www DataSheet4U com CHAPTER 2 OUTLINE µPD78014Y Subseries 62 MEMO ...
Page 78: ...www DataSheet4U com CHAPTER 3 PIN FUNCTION µPD78014 Subseries 78 MEMO ...
Page 94: ...www DataSheet4U com CHAPTER 4 PIN FUNCTION µPD78014Y Subseries 94 MEMO ...
Page 170: ...www DataSheet4U com CHAPTER 7 CLOCK GENERATOR 170 MEMO ...
Page 222: ...www DataSheet4U com CHAPTER 9 8 BIT TIMER EVENT COUNTER 222 MEMO ...
Page 230: ...www DataSheet4U com CHAPTER 10 WATCH TIMER 230 MEMO ...
Page 262: ...www DataSheet4U com CHAPTER 14 A D CONVERTER 262 MEMO ...
Page 318: ...www DataSheet4U com CHAPTER 15 SERIAL INTERFACE CHANNEL 0 µPD78014 Subseries 318 MEMO ...
Page 408: ...www DataSheet4U com CHAPTER 16 SERIAL INTERFACE CHANNEL 0 µPD78014Y Subseries 408 MEMO ...
Page 446: ...www DataSheet4U com CHAPTER 17 SERIAL INTERFACE CHANNEL 1 446 MEMO ...
Page 472: ...www DataSheet4U com CHAPTER 18 INTERRUPT FUNCTIONS AND TEST FUNCTION 472 MEMO ...
Page 502: ...www DataSheet4U com CHAPTER 22 µPD78P014 78P014Y 502 MEMO ...
Page 520: ...www DataSheet4U com CHAPTER 23 INSTRUCTION SET 520 MEMO ...