R01UH0136EJ0210 Rev.2.10
Page 290 of 800
Jul 31, 2012
M16C/64A Group
17. Timer A
Figure 17.12 Operation Example in 8-Bit Pulse Width Modulation Mode
Count started
n
i = 0 to 4
POFSi: Bits in the TAPOFS register
fj: Count source frequency
The above timing diagram assumes the following:
- The MR0 bit in the TAiMR register = 1 (pulse output)
- The MR2 bit in the TAiMR register = 0 (the TAiS bit in the TABSR is the trigger)
- The MR3 bit in the TAiMR register = 1 (8-bit PWM mode)
0000h
TAiOUT output
IR bit in the
TAiIC register
TAiS bit in the
TABSR register
TAi register
Operates as an 8-bit
pulse width modulator
n = 03h
m = 02h
m
m+1
n
n+1
255
0000h
Counter
operations of
lower bits
Counter
operations of
upper bits
Count started
(n+1)(m+1)
fj
n(m+1)
fj
Set to 0 by accepting an interrupt request, or
by a program.
Low-level output
immediately after
count started
255-n
n
b15
b8 b7
m
b0
Operates as a prescaler
POFSi = 0
POFSi = 1
255-n
255(m+1)
fj
n(m+1)
fj
255(m+1)
fj
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...