Datasheet

M16C/6S Group Timer A
R01DS0201EJ0502 Rev.5.02 page 91 of 203
Dec 25, 2012
1 / fi X (2 – 1)
16
Count source
Input signal to
TA
iIN pin
PWM pulse output
from TA
iOUT pin
Trigger is not generated by this signal
“H”
“H”
“L”
“L”
IR bit of TAiIC
register
“1”
“0”
fj : Frequency of count source
(f
1, f2, f8, f32)
i = 0 to 4
Note 1: n = 0000
16 to FFFE16.
Note 2: This timing diagram is for the case where the TAi register is ‘0003
16,’ the TAiGH and TAiGL bits of ONSF
or TRGSR register = ‘00
2’ (TAi IN pin input), the MR1 bit of TAiMR register = 1 (rising edge), and the MR2
bit of TAiMR register = 1 (trigger selected by TAiTGH and TAiTGL bits).
1 / f
j X n
Set to “0” upon accepting an interrupt request or by writing in program
Count source (Note1)
Input signal to
TA
iIN
pin
Underflow signal of
8-bit prescaler (Note2)
PWM pulse output
from TA
iOUT
pin
“H”
“H”
“H”
“L”
“L”
“L”
“1”
“0”
Set to “0” upon accepting an interrupt request or by writing in program
Note 1: The 8-bit prescaler counts the count source.
Note 2: The 8-bit pulse width modulator counts the 8-bit prescaler's underflow signal.
Note 3: m = 00
16
to FF
16
; n = 00
16
to FE
16
.
Note 4: This timing diagram is for the case where the TAi register is ‘0202
16
,’ the TAiGH and TAiGL bits of ONSF or
TRGSR register = ‘00
2
’ (TAi
IN
pin input), the MR1 bit of TAiMR register = 0 (falling edge), and the MR2 bit of
TAiMR register = 1 (trigger selected by TAiTGH and TAiTGL bits).
1 / f
j
X (m
+ 1) X (2 – 1)
8
1 / f
j
X (m + 1) X n
1 / f
j
X (m + 1)
IR bit of TAiIC
register
f
j
: Frequency of count source
(f
1
, f
2
, f
8
, f
32
)
i = 0 to 4
Figure 1.12.11. Example of 16-bit Pulse Width Modulator Operation
Figure 1.12.12. Example of 8-bit Pulse Width Modulator Operation