NEC 78014Y Series User Manual page 215

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(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).
The TO1/P31 or TO2/P32 pin output status is inverted 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.
TCL13
0
0
1
1
1
1
1
1
1
1
Remarks 1. f
www.DataSheet4U.com
TM1 Count Value
Note
CHAPTER 9 8-BIT TIMER/EVENT COUNTER
Table 9-8. 8-Bit Timer/Event Counter Square-Wave Output Ranges
TCL12
TCL11
TCL10
1
1
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
: Main system clock oscillation frequency
X
2. TCL10 to TCL13: Bit 0 to bit 3 of timer clock select register 1 (TCL1)
3. Values in parentheses apply to operation with f
Figure 9-10. Square-Wave Output Operation Timings
Count Clock
00
01
Count Start
CR10
TO1
Note
Initial value of TO1 output can be set at bits 2 and 3 (LVS1 and LVR1) of the 8-bit timer output control register
(TOC1).
Minimum Pulse Width
× 1/f
2
2
(400 ns)
2
X
× 1/f
3
2
(800 ns)
2
X
× 1/f
(1.6 µ s)
2
4
2
X
× 1/f
(3.2 µ s)
5
2
2
X
× 1/f
(6.4 µ s)
6
2
2
X
× 1/f
(12.8 µ s)
2
7
2
X
× 1/f
(25.6 µ s)
8
2
2
X
× 1/f
(51.2 µ s)
9
2
2
X
× 1/f
(102.4 µ s)
2
10
2
X
× 1/f
(409.6 µ s)
12
2
2
X
X
02
N – 1
N
N
Maximum Pulse Width
(102.4 µ s)
× 1/f
10
2
2
X
× 1/f
(204.8 µ s)
11
3
2
X
× 1/f
(409.6 µ s)
12
2
4
X
× 1/f
(819.2 µ s)
13
5
2
X
× 1/f
14
6
(1.64 ms)
2
X
× 1/f
15
(3.28 ms)
2
7
X
× 1/f
16
8
(6.55 ms)
2
X
× 1/f
17
9
(13.1 ms)
2
X
× 1/f
18
(26.2 ms)
2
10
X
× 1/f
20
12
(104.9 ms)
2
X
= 10.0 MHz.
00
01
02
N – 1
N
Resolution
× 1/f
(400 ns)
X
× 1/f
(800 ns)
X
× 1/f
(1.6 µ s)
X
× 1/f
(3.2 µ s)
X
× 1/f
(6.4 µ s)
X
× 1/f
(12.8 µ s)
X
× 1/f
(25.6 µ s)
X
× 1/f
(51.2 µ s)
X
× 1/f
(102.4 µ s)
X
× 1/f
(409.6 µ s)
X
N
00
215

Advertisement

Table of Contents
loading

Table of Contents