ML63611 User’s Manual
Chapter 7 Timers (TIMER)
7 – 16
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.4.5 Auto-Reload Mode Operation
Timers 0 to 3 can be used as auto-reload mode timers. The setup method is as follows.
•
Timer 0: Set FMEAS0 (bit 2 of TM0CON0) to “0”, and set TM0ECAP (bit 1 of TM0CON0) to “0”.
•
Timer 1: Set TM1ECAP (bit 1 of TM1CON0) to “0”.
•
Timer 2: Set FMEAS2 (bit 2 of TM2CON0) to “0”.
•
Timer 3: No setup needed.
In the auto-reload mode, each time the timer counter register overflows, the timer data register value is reloaded
into the timer counter register, and counting begins from the value. Setting the RUN bits (TM0RUN, TM1RUN,
TM2RUN, TM3RUN) for each timer control register to “1” will restart the count, and resetting to “0” stops the
count.
In the 16-bit timer mode for timers 0 and 1 the TM1RUN bit is disabled, and start/stop is controlled with the
TM0RUN bit. In the 16-bit timer mode for timers 2 and 3 the TM3RUN bit is disabled, and start/stop is controlled
with the TM2RUN bit.
Figure 7-6 shows auto-reload mode timing for pulse generation when timers 0 and 1 are used as a 16-bit timer.
Figure 7-6 Auto-Reload Mode Timing
FFFF
BFFF
534F
(H)
TM1CH, TM1CL
TM0CH, TM0CL
TM1DH, TM1DL
TM0DH ,TM0DL
TM0RUN
TM1INT
TM1OVF
(PB.1 output)
↑
↑
BFFFH
534F
BFFFH
534F
0000
➁
↓
➂
↓
➃
➅
➄
↓
➆
↓
➈
↓
➀
↓
➇
Содержание 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...