16-Bit Timer/Event Counter Configuration - NEC 78014Y Series User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) PWM output
TM0 can generate 14-bit resolution PWM output.
(3) Pulse width measurement
TM0 can measure the pulse width of an externally input signal.
(4) External event counter
TM0 can measure the number of pulses of an externally input signal.
(5) Square-wave output
TM0 can output a square wave with any selected frequency.
2 × TI0 input cycle
× 1/f
2
2
X
× 1/f
3
2
X
× 1/f
4
2
X
Remarks 1. f

8.3 16-Bit Timer/Event Counter Configuration

www.DataSheet4U.com
The 16-bit timer/event counter consists of the following hardware.
Note
Refer to Figure 18-1 Basic Configuration of Interrupt Function.
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
Table 8-3. 16-Bit Timer/Event Counter Square-Wave Output Ranges
Minimum Pulse Width
(400 ns)
(800 ns)
(1.6 µ s)
: Main system clock oscillation frequency
X
2. Values in parentheses apply to operation with f
Table 8-4. 16-Bit Timer/Event Counter Configuration
Item
16 bits × 1 (TM0)
Timer register
Register
16-bit compare register: 1 (CR00)
16-bit capture register:
Timer output
1 (TO0)
Control register
Timer clock select register 0 (TCL0)
16-bit timer mode control register (TMC0)
16-bit timer output control register (TOC0)
Port mode register 3 (PM3)
External interrupt mode register (INTM0)
Sampling clock select register (SCS)
Maximum Pulse Width
× TI0 input cycle
16
2
× 1/f
2
17
(13.1 ms)
X
× 1/f
18
2
(26.2 ms)
X
× 1/f
19
2
(52.4 ms)
X
= 10.0 MHz
X
Configuration
1 (CR01)
Resolution
TI0 input edge cycle
2 × 1/f
(200 ns)
X
× 1/f
2
2
(400 ns)
X
× 1/f
3
2
(800 ns)
X
Note
173

Advertisement

Table of Contents
loading

Table of Contents