R01UH0092EJ0110 Rev.1.10
Page 277 of 807
Jul 31, 2012
M16C/64C Group
17. Timer A
Figure 17.6
Operation Example in Event Counter Mode
Decrement
n
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
= 0
- The MR0 bit in the TAiMR register
= 1 (pulse output)
- The TCK0 bit in the TAiMR register
= 0 (reload type)
TAiUD bit in the
UDF register
0000h
TAiOUT output
Low-level output at count stop
Output inverted at underflow or overflow
IR bit in the
TAiIC register
FFFFh
TAiIN input
TAiS bit in the
TABSR register
Overflow and
reload
Increment
Counter
operations
Becomes 0 by accepting an interrupt request, or by a program.
(The falling edges of the TAiIN pin input is counted.)
n+1
FFFFh-n+1
Count
stopped
Underflow
reload
Low-level output
at count stop
Count started
POFSi = 0
POFSi = 1
High-level output
at count stop
High-level output at count stop
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...