Panasonic MN101L Series User Manual page 280

Lsi
Table of Contents

Advertisement

Chapter 8
8-bit Timer
The binary counters and the compare registers corresponding to two timers in cascade connection operate as a 16-
bit register, respectively. When activating the timer, set the TMnMD.TMnEN for lower 8-bit timer to "1".
A waveform of the timer pulse and an interrupt request is output from the upper 8-bit timer.
Select the clock source with the register for the lower 8-bit timer.
Other settings and the timing to count are the same as a single 8-bit timer operation.
When using Timer 0 connected with Timer 1 in cascade, a timer pulse and an interrupt
request are output from Timer 1. "Low" fixed data are output from Timer 0 as the timer pulse.
Timer 0 interrupt should be disabled though any interrupt request of Timer 0 is not generated.
..
..
When using Timer 2 connected with Timer 3 in cascade, a timer pulse and an interrupt
request are output from Timer 3. "Low" fixed data are output from Timer 2 as the timer pulse.
Timer 2 interrupt should be disabled though any interrupt request of Timer 2 is not generated.
..
..
When using Timer 4 connected with Timer 5 in cascade, a timer pulse and an interrupt
request are output from Timer 5. "Low" fixed data are output from Timer 4 as the timer pulse.
Timer 4 interrupt should be disabled though any interrupt request of Timer 4 is not generated.
..
..
At 16-bit cascade connection, when rewriting the compare register to clear the binary
counter, set the TMnMD.TMnEN for lower 8-bit timer to "0" to stop counting. Then rewrite the
compare registers.
..
..
Use a 16-bit access instruction to set (TM1OC to TM0OC) register, (TM2OC to TM3OC)
register and (TM5OC to TM4OC) register.
..
..
During cascade connection, PWM output function cannot be used. When cascade connec-
tion, always set the TMnMD.TMnPWM to "0".
..
..
When cascade connection, read the value of TMnBC with the 16-bit access instruction,
MOVW.
..
..
VIII - 32
8-bit Timer Cascade Connection

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents