232
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2
(3) Square-wave output operation
Operates as square wave output with any selected frequency at intervals of the count value preset to 8-bit
compare register 10 and 20 (CR10, CR20).
The TO1/P31 or TO2/P32 pin output status is reversed at intervals of the count value preset to CR10 or CR20
by setting bit 0 (TOE1) or 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-8. 8-Bit Timer/Event Counters 1 and 2 Square-Wave Output Ranges
Minimum Pulse Width
Maximum Pulse Width
Resolution
MCS = 1
MCS = 0
MCS = 1
MCS = 0
MCS = 1
MCS = 0
2
×
1/f
X
2
2
×
1/f
X
2
9
×
1/f
X
2
10
×
1/f
X
2
×
1/f
X
2
2
×
1/f
X
(400 ns)
(800 ns)
(102.4
µ
s)
(204.8
µ
s)
(400 ns)
(800 ns)
2
2
×
1/f
X
2
3
×
1/f
X
2
10
×
1/f
X
2
11
×
1/f
X
2
2
×
1/f
X
2
3
×
1/f
X
(800 ns)
(1.6
µ
s)
(204.8
µ
s)
(409.6
µ
s)
(800 ns)
(1.6
µ
s)
2
3
×
1/f
X
2
4
×
1/f
X
2
11
×
1/f
X
2
12
×
1/f
X
2
3
×
1/f
X
2
4
×
1/f
X
(1.6
µ
s)
(3.2
µ
s)
(409.6
µ
s)
(819.2
µ
s)
(1.6
µ
s)
(3.2
µ
s)
2
4
×
1/f
X
2
5
×
1/f
X
2
12
×
1/f
X
2
13
×
1/f
X
2
4
×
1/f
X
2
5
×
1/f
X
(3.2
µ
s)
(6.4
µ
s)
(819.2
µ
s)
(1.64 ms)
(3.2
µ
s)
(6.4
µ
s)
2
5
×
1/f
X
2
6
×
1/f
X
2
13
×
1/f
X
2
14
×
1/f
X
2
5
×
1/f
X
2
6
×
1/f
X
(6.4
µ
s)
(12.8
µ
s)
(1.64 ms)
(3.28 ms)
(6.4
µ
s)
(12.8
µ
s)
2
6
×
1/f
X
2
7
×
1/f
X
2
14
×
1/f
X
2
15
×
1/f
X
2
6
×
1/f
X
2
7
×
1/f
X
(12.8
µ
s)
(25.6
µ
s)
(3.28 ms)
(6.55 ms)
(12.8
µ
s)
(25.6
µ
s)
2
7
×
1/f
X
2
8
×
1/f
X
2
15
×
1/f
X
2
16
×
1/f
X
2
7
×
1/f
X
2
8
×
1/f
X
(25.6
µ
s)
(51.2
µ
s)
(6.55 ms)
(13.1 ms)
(25.6
µ
s)
(51.2
µ
s)
2
8
×
1/f
X
2
9
×
1/f
X
2
16
×
1/f
X
2
17
×
1/f
X
2
8
×
1/f
X
2
9
×
1/f
X
(51.2
µ
s)
(102.4
µ
s)
(13.1 ms)
(26.2 ms)
(51.2
µ
s)
(102.4
µ
s)
2
9
×
1/f
X
2
10
×
1/f
X
2
17
×
1/f
X
2
18
×
1/f
X
2
9
×
1/f
X
2
10
×
1/f
X
(102.4
µ
s)
(204.8
µ
s)
(26.2 ms)
(52.4 ms)
(102.4
µ
s)
(204.8
µ
s)
2
11
×
1/f
X
2
12
×
1/f
X
2
19
×
1/f
X
2
20
×
1/f
X
2
11
×
1/f
X
2
12
×
1/f
X
(409.6
µ
s)
(819.2
µ
s)
(104.9 ms)
(209.7 ms)
(409.6
µ
s)
(819.2
µ
s)
Remarks 1. f
X
: Main system clock oscillation frequency
2. MCS : Oscillation mode selection register (OSMS) bit 0
3. Values in parentheses when operated at f
X
= 5.0 MHz.
Summary of Contents for PD78052
Page 2: ...2 MEMO ...
Page 8: ...8 MEMO ...
Page 16: ...16 MEMO ...
Page 36: ...36 MEMO ...
Page 158: ...158 MEMO ...
Page 174: ...174 MEMO ...
Page 240: ...240 MEMO ...
Page 260: ...260 MEMO ...
Page 340: ...340 MEMO ...
Page 392: ...392 MEMO ...
Page 438: ...438 MEMO ...
Page 482: ...482 CHAPTER 20 REAL TIME OUTPUT PORT MEMO ...
Page 510: ...510 MEMO ...
Page 524: ...524 MEMO ...
Page 560: ...560 MEMO ...
Page 576: ...576 MEMO ...
Page 598: ...598 MEMO ...
Page 602: ...602 MEMO ...