Download Print this page

Renesas M16C/50 Series User Manual page 301

Advertisement

M16C/5L Group, M16C/56 Group
Count source
Count starts with a maximum of a 1.5
cycle delay of the count source after an
external trigger.
n
Count
operations
0000h
TAiS bit in the
TABSR register
TAiIN input
Low-level output
at count stop
TAiOUT output
POFSi = 0
POFSi = 1
High-level output
at count stop
IR bit in the
TAiIC register
i = 0 to 4
POFSi : Bits in the TAPOFS register
The above timing diagram assumes the following:
- The MR0 bit in the TAiMR register
- The MR1 bit in the TAiMR register
- The MR2 bit in the TAiMR register
- Bits TAiTGH to TAiTGL in the ONSF or TRGSR register = 00b
- The TAi register (n) value
Figure 15.10 Operation Example in One-Shot Timer Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Reload and stop
n
counting when
0000h is set.
Trigger
Low-level output
at count stop
High-level
High-level output at count stop
output
at count start
Interrupt request at the falling edge
of TAiOUT when POFSi is 0
Low-level output
Interrupt request at the rising edge
at count start
of TAiOUT when POFSi is 1
Becomes 0 by accepting an interrupt request, or by a program.
Reload
After retrigger,
n+1
Retrigger
while counting
= 1 (pulse output)
= 1
(The rising edge of the TAiIN pin input is the trigger.)
= 1
= 0005h
15. Timer A
Reload and
stop counting
Low-level output
at count stop
High-level output
at count stop
One cycle of
the CPU clock
Page 264 of 803

Advertisement

loading