R01UH0136EJ0210 Rev.2.10
Page 285 of 800
Jul 31, 2012
M16C/64A Group
17. Timer A
Figure 17.10 Operation Example in One-Shot Timer Mode
One cycle of
the CPU clock
Low-level output
at count stop
Low-level output
at count stop
n
i = 0 to 4
POFSi : Bits in the TAPOFS register
The above timing diagram assumes the following:
- The MR0 bit in the TAiMR register
= 1 (pulse output)
- The MR1 bit in the TAiMR register
= 1
- The MR2 bit in the TAiMR register
= 1
- Bits TAiTGH to TAiTGL in the ONSF or TRGSR register
= 00b
- The TAi register (n) value
= 0005h
TAiS bit in the
TABSR register
Count
operations
0000h
TAiIN input
TAiOUT output
High-level
output
at count start
IR bit in the
TAiIC register
Retrigger
while counting
Reload and stop
counting when
0000h is set.
n
After retrigger,
n+1
Reload and
stop counting
Trigger
(The rising edge of the TAiIN pin input is the trigger.)
Interrupt request at the falling edge
of TAiOUT when POFSi is 0
Interrupt request at the rising edge
of TAiOUT when POFSi is 1
Becomes 0 by accepting an interrupt request, or by a program.
Count source
Count starts with a maximum of a 1.5
cycle delay of the count source after an
external trigger.
Reload
POFSi = 0
POFSi = 1
High-level output
at count stop
Low-level output
at count start
Low-level output
at count stop
High-level output at count stop
High-level output
at count stop
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...