8-Bit Timer/Event Counter Square-Wave Output Ranges; Square-Wave Output Operation Timing - NEC mPD780208 Subseries User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(3) Square-wave output operation
The 8-bit timer/event counter outputs a square wave of any frequency with the value preset to the 8-bit
compare register (CR10, CR20) as the interval.
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 7-8. 8-Bit Timer/Event Counter Square-Wave Output Ranges
TCL13
TCL12
TCL11
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
1
1
1
Remarks 1. f
: Main system clock oscillation frequency
X
2. TCL10 to TCL13: Bits 0 to 3 of timer clock select register 1 (TCL1)
3. Figures in parentheses apply to operation with f
Count clock
TM1 count value
Count start
CR10
Note
TO1
Note
Initial value of TO1 output can be set using bits 2 and 3 (LVR1 and LVS1) of the 8-bit timer output control
register (TOC1).
CHAPTER 7 8-BIT TIMER/EVENT COUNTER
TCL10
Minimum Pulse Width
1
2 x 1/f
(400 ns)
X
0
2
2
x 1/f
(800 ns)
X
(1.6 µ s)
3
1
2
x 1/f
X
(3.2 µ s)
0
2
4
x 1/f
X
(6.4 µ s)
1
2
5
x 1/f
X
(12.8 µ s)
6
0
2
x 1/f
X
(25.6 µ s)
1
2
7
x 1/f
X
(51.2 µ s)
8
0
2
x 1/f
X
(102.4 µ s)
1
2
9
x 1/f
X
(204.8 µ s)
10
0
2
x 1/f
X
(819.2 µ s)
1
2
12
x 1/f
X
Figure 7-10. Square-Wave Output Operation Timing
00
01
02
N – 1
N
User's Manual U11302EJ4V0UM
Maximum Pulse Width
(102.4 µ s)
9
2
x 1/f
X
(204.8 µ s)
2
10
x 1/f
X
(409.6 µ s)
11
2
x 1/f
X
(819.2 µ s)
2
12
x 1/f
X
2
13
x 1/f
(1.64 ms)
X
14
2
x 1/f
(3.28 ms)
X
2
15
x 1/f
(6.55 ms)
X
16
2
x 1/f
(13.1 ms)
X
2
17
x 1/f
(26.2 ms)
X
18
2
x 1/f
(52.4 ms)
X
2
20
x 1/f
(209.7 ms)
X
= 5.0 MHz.
X
N
00
01
02
N
Resolution
2 x 1/f
(400 ns)
X
2
2
x 1/f
(800 ns)
X
(1.6 µ s)
3
2
x 1/f
X
(3.2 µ s)
2
4
x 1/f
X
(6.4 µ s)
2
5
x 1/f
X
(12.8 µ s)
6
2
x 1/f
X
(25.6 µ s)
2
7
x 1/f
X
(51.2 µ s)
8
2
x 1/f
X
(102.4 µ s)
2
9
x 1/f
X
(204.8 µ s)
10
2
x 1/f
X
(819.2 µ s)
2
12
x 1/f
X
N – 1
N
00
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780204Mpd780206Mpd780208Mpd78p0208Mpd780204aMpd780205a ... Show all

Table of Contents