Download Print this page

Renesas M16C/50 Series User Manual page 292

Advertisement

M16C/5L Group, M16C/56 Group
TAiIN input
FFFFh
Counter
operations
n
0000h
TAiS bit in the
TABSR register
TAiUD bit in the
UDF register
TAiOUT output
POFSi = 0
POFSi = 1
IR bit in the
TAiIC register
i = 0 to 4
n: TAi register setting
POFSi: Bits in the TAPOFS register
The above timing diagram assumes the following:
- Bits TAiTGH to TAiTGL in the ONSF or TRGSR register = 00b
- The MR1 bit in the TAiMR register
- The MR0 bit in the TAiMR register
- The TCK0 bit in the TAiMR register
Figure 15.6
Operation Example in Event Counter Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Count started
n+1
Underflow
reload
Low-level output
Output inverted at underflow or overflow
at count stop
High-level output
at count stop
Becomes 0 by accepting an interrupt request, or by a program.
Overflow and
reload
Increment
FFFFh-n+1
(The falling edges of the TAiIN pin input is counted.)
= 0
= 1 (pulse output)
= 0 (reload type)
15. Timer A
Decrement
Count
stopped
Low-level output at count stop
High-level output at count stop
Page 255 of 803

Advertisement

loading