Download Print this page

Renesas M16C/50 Series User Manual page 310

Advertisement

M16C/5L Group, M16C/56 Group
m2
n1
m1
0000h
TAiS bit
in the TABSR register
TAiIN input
TAiOW bit
in the TAOW register
TAi register
TAi1 register
TAiOUT output
POFSi = 0
POFSi = 1
IR bit
in the TAiIC register
i = 1, 2, 4
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
fj: Count source frequency
POFSi
: Bits in the TAPOFS register
Figure 15.13 Operation Example in Programmable Output Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Count started
m1
n1
Cannot be a retrigger
after count start
Set to 0 by a program
Update a value by a program
m1
n1
m1
n1
fj
fj
Interrupt request generated
- when TAiOUT changes state from low to high while POFSi is 0.
- when TAiOUT changes state from high to low while POFSi is 1.
Set to 0 by accepting an interrupt request, or by a program.
= 1 (pulse output)
= 1
= 1
Update registers TAi and
TAi1 during this period.
Set to 1 by a program
m2
Do not change the output waveform during this period.
(When reloading, use the value before updated.)
The rising edge of the TAiIN pin input is the trigger.
Count stopped
Count the updated
Set to 0
value.
by a program
Count stopped
n2
Low-level output
at count stop
Page 273 of 803
15. Timer A

Advertisement

loading