Renesas M16C Series User Manual page 41

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
Selecting PWM mode and functions
b7
1 1 0
www.DataSheet4U.com
Note 1: Set the corresponding port direction
register to "0".
Clearing timer Ai interrupt request bit
b7
Setting event/trigger select bit
b7
0
Note 2: Set the corresponding port direction register to "0".
Setting PWM's pulse's "H" level width
(b15
b7
Figure 2.2.26. Set-up procedure of pulse width modulation mode, 8-bit PWM mode selected (1)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
b0
Timer Ai mode register (i=0 to 4) [Address 0396
1
1 1
TAiMR (i=0 to 4)
Selection of PWM mode
1 (Must always be "1" in PWM mode)
External trigger select bit
0 : Falling edge of TAiIN pin's input signal (Note)
Trigger select bit
1 : Selected by event/trigger select register
16/8-bit PWM mode select bit
1 : Functions as a 8-bit pulse width modulator
Count source select bit
b7 b6
0 0 : f
1
0 1 : f
8
1 0 : f
32
1 1 : f
C32
b0
Timer Ai interrupt control register
0
[Addresses 0054
, 0045
16
TAiIC (i=0 to 4)
Interrupt request bit
b0
One-shot start flag
[Address 0382
]
16
ONSF
Timer A0 event/trigger select bit
b7 b6
0 0 : Input on TA0
is selected (Note)
IN
(b8)
Timer A0 register [Address 0387
b0
b7
b0
Timer A1 register [Address 0389
Timer A2 register [Address 038B
Timer A3 register [Address 038D
Timer A4 register [Address 038F
Can be set to 0001
Continued to the next page
page 32 of 354
to 039A
16
Count source period
Count
b7 b6
source
f(X
):16MHz f(X
IN
0
0
f
1
0
1
f
8
1
0
f
32
1
1
f
976.56µs
C32
(Please refer to the notes on the pulse width modulation mode of Timer A.)
, 0047
, 0057
, 0059
]
16
16
16
16
b7
b0
, 0386
16
, 0388
16
, 038A
16
, 038C
16
, 038E
16
to FFFF
16
16
]
16
):32.768kHz
CIN
62.5ns
500ns
2µs
Trigger select register
[Address 0383
]
16
TRGSR
Timer A1 event/trigger select bit
b1 b0
0 0 : Input on TA1
is selected
IN
Timer A2 event/trigger select bit
b3 b2
0 0 : Input on TA2
is selected
IN
Timer A3 event/trigger select bit
b5 b4
0 0 : Input on TA3
is selected
IN
Timer A4 event/trigger select bit
b7 b6
0 0 : Input on TA4
is selected
IN
] TA0
16
] TA1
16
] TA2
16
] TA3
16
] TA4
16
2. Timer A
(Note 2)
(Note 2)
(Note 2)
(Note 2)

Advertisement

Table of Contents
loading

Table of Contents