NEC 78014Y Series User Manual page 219

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). 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
TCL13
0
0
1
1
1
1
1
1
1
1
Remarks 1. f
www.DataSheet4U.com
Count Clock
TM1
TM2
CR10
CR20
TO2
CHAPTER 9 8-BIT TIMER/EVENT COUNTER
(TM1 and TM2) are Used as 16-Bit Tmer/Event Counter
TCL12
TCL11
TCL10
1
1
0
2
1
1
1
2
0
0
0
2
0
0
1
2
0
1
0
2
0
1
1
2
1
0
0
2
1
0
1
2
1
1
0
2
1
1
1
2
: Main system clock oscillation frequency
X
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
Figure 9-13. Square-Wave Output Operation Timings
00H
01H
N
N+1
00H
N
M
Count Start
Minimum Pulse Width
Maximum Pulse Width
× 1/f
2
(400 ns)
2
18
X
× 1/f
3
(800 ns)
2
19
X
× 1/f
(1.6 µ s)
4
20
2
X
× 1/f
(3.2 µ s)
5
2
21
X
(6.4 µ s)
× 1/f
6
2
22
X
× 1/f
(12.8 µ s)
7
23
2
X
× 1/f
(25.6 µ s)
8
2
24
X
(51.2 µ s)
× 1/f
9
25
2
X
× 1/f
(102.4 µ s)
10
26
2
X
× 1/f
(409.6 µ s)
12
2
28
X
X
FFH 00H
FFH 00H
01H
Interval Time
× 1/f
× 1/f
(26.2 ms)
2
2
X
× 1/f
× 1/f
(52.4 ms)
2
3
X
× 1/f
× 1/f
4
(104.9 ms)
2
X
× 1/f
× 1/f
(209.7 ms)
2
5
X
× 1/f
× 1/f
(419.4 ms)
2
6
X
× 1/f
× 1/f
7
(838.9 ms)
2
X
× 1/f
× 1/f
(1.7 s)
2
8
X
× 1/f
× 1/f
9
(3.4 s)
2
X
× 1/f
× 1/f
10
(6.7 s)
2
X
× 1/f
× 1/f
(26.8 s)
2
12
X
= 10.0 MHz.
FFH 00H 01H
02H
M–1 M
Resolution
(400 ns)
X
(800 ns)
X
(1.6 µ s)
X
(3.2 µ s)
X
(6.4 µ s)
X
(12.8 µ s)
X
(25.6 µ s)
X
(51.2 µ s)
X
(102.4 µ s)
X
(409.6 µ s)
X
N 00H 01H
00H
Lebel Inversion
Counter Clear
219

Advertisement

Table of Contents
loading

Table of Contents