Renesas M16C/64A Series User Manual page 327

Table of Contents

Advertisement

M16C/64A 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 17.13 Operation Example in Programmable Output Mode
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
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 294 of 800
17. Timer A

Advertisement

Table of Contents
loading

Table of Contents