ML63611 User’s Manual
Chapter 7 Timers (TIMER)
7 – 1
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
7. Timers (TIMER)
7.1
Overview
The ML63611 has four internal 8-bit timers (0 to 3). Timers 0 and 1, or timers 2 and 3, can be used in tandem as a
16-bit timer.
Timers 0 and 1 have three operation modes: auto-reload mode, capture mode and frequency measurement mode.
Timers 2 and 3 have two modes: auto-reload and frequency measurement. Timer clock may be set to the time base
clock (TBCCLK: 32.768 kHz), the high-speed clock (HSCLK), or an external clock. When using the timers as a
16-bit timer, the overflow signals of timers 0 and 2 are used as the clocks for timers 1 and 3, respectively.
Timers can be used not only for pulse generation and time measurement, but as baud rate generators used in serial
transmission.
Timer 0
Timer 1
Timer 2
Timer 3
8-bit timer
•
•
•
•
16-bit timer
•
(Timer 0 overflow signal is
used as clock for timer 1)
•
(Timer 2 overflow signal is
used as clock for timer 3)
Clock
TBCCLK/HSCLK/External clock (T02CK, T13CK)
Auto-reload mode
•
•
•
•
Capture mode
•
•
—
—
Frequency measurement mode
•
•
•
•
7.2
Timer Configuration
Figures 7-1 through 7-4 show the configuration of timers 0 to 3.
Control
circuit
Frequency
measurement
control circuit
Capture
control circuit
TM0CL
TM0CH
TM0DL
TM0DH
8
8
Capture
Reload
4
4
4
4
D
Q
D
Q
Q
R
TM0CK
TM0 overflow
TM0INT
PB.0/
TM0OVF
Data bus
TBCCLK
HSCLK
PB.2/T02CK
64 Hz
437C
PB.0/
TM0CAP
TM0CAP
TM0CK
RESETS
OV
16 kHz
8 kHz
4 kHz
2 kHz
1 kHz
512 Hz
256 Hz
128 Hz
64 Hz
437C
Inside the IC
Inside the IC
Figure 7-1 Timer 0 Configuration
Содержание ML63611
Страница 9: ...Chapter 1 Overview...
Страница 33: ...Chapter 2 CPU and Memory Spaces...
Страница 42: ...Chapter 3 CPU Control Functions...
Страница 49: ...Chapter 4 Interrupt INT...
Страница 62: ...Chapter 5 Clock Generator Circuit OSC...
Страница 71: ...Chapter 6 Time Base Counter TBC...
Страница 75: ...Chapter 7 Timers TIMER...
Страница 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Страница 103: ...Chapter 9 Watchdog Timer WDT...
Страница 108: ...Chapter 10 Ports INPUT I O PORT...
Страница 140: ...Chapter 11 Melody Driver MELODY...
Страница 152: ...Chapter 12 Serial Port SIO...
Страница 179: ...Chapter 13 LCD Driver LCD...
Страница 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Страница 204: ...Chapter 15 Power Supply Circuit POWER...
Страница 215: ...Chapter 16 A D Converter ADC...
Страница 238: ...Appendixes...
Страница 271: ...ML63611 User s Manual First Edition May 2001 Second Edition June 2001 2001 Oki Electric Industry Co Ltd PEUL63611 02...