Panasonic MN101L Series User Manual page 305

Lsi
Table of Contents

Advertisement

When the value of TMnBC matches the setting value of TMnOC, an interrupt request is gen-
erated at the next count clock and the TMnBC is cleared. So set the TMnOC as follows:
Setting value of the compare register = (Counts till the interrupt request) -1
..
..
When TMnOC1 compare match is selected as a TMnBC clear source and TMnOC2IRQ is
used, the setting value of TMnOC2 should be smaller than the one of TMnOC1.
..
..
If the timer interrupt request bit may have already been set before the timer starts, the timer
interrupt request bit should be cleared.
..
..
When TMnBC is used as a free-counter that counts from "0x0000" to "0xFFFF", set TMnOC1
to "0xFFFF" or set the TMnMD2.TMnBCR to "0".
..
..
Do not change the TMnMD.TMnEN simultaneously with other bits to avoid any error in oper-
ation.
..
..
In 16-bit timer operation, the internal enable signal becomes ON status at the rising edge of
the first count clock after the TMnMD1.TMnEN is set to "1". When it is assumed that the set-
ting value of TMnOC1 is N, the first interrupt is generated at the rising edge of (N+2)th count
..
clock. The following interrupts are generated at the rising edge of (N+1)th count clock.
..
Be sure to set a count clock of 16-bit timer while a timer interrupt is disabled.
..
..
Chapter 9
16-bit Timer
16-bit Timer
IX - 23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents