Renesas 7700 FAMILY User Manual page 474

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

Pulse width modulation (PWM) mode
<When operating as a 16-bit pulse width modulator>
(b15)
b7
<When operating as an 8-bit pulse width modulator>
(b15)
b7
b7
b6
b5
b4
b3
(b8)
b0 b7
(b8)
b0 b7
b2
b1
b0
1
1
1
Timer Ai mode register (i = 0 to 4) (Addresses 56
Bi t
Bit name
Operating mode select bits
0
1
2
Fix this bit to "1" in PWM mode.
3
Trigger select bits
4
5
16/8-bit PWM mode select bit
Count source select bits
6
7
7751 Group User's Manual
Appendix 3. Control registers
Timer A0 register (Addresses 47
b0
Timer A1 register (Addresses 49
Timer A2 register (Addresses 4B
Timer A3 register (Addresses 4D
Timer A4 register (Addresses 4F
Functions
Bit
15 to 0 These bits can be set to "0000
Assuming that the set value = n, the "H" level
width of the PWM pulse output from the
TAi
pin is expressed as follows:
OUT
f
: Frequency of count source (f
i
2
Timer A0 register (Addresses 47
b0
Timer A1 register (Addresses 49
Timer A2 register (Addresses 4B
Timer A3 register (Addresses 4D
Timer A4 register (Addresses 4F
Functions
Bit
These bits can be set to "00
7 to 0
Assuming that the set value = m, PWM
pulse's period output from the TAi
expressed as follows:
15 to 8
These bits can be set to "00
Assuming that the set value = n, the "H" level
width of the PWM pulse output from the
TAi
pin is expressed as follows:
OUT
n(m + 1)
f
i
f
: Frequency of count source (f
i
2
to 5A
16
Functions
b1 b0
1 1 : PWM mode
b4 b3
0 0 : Writing "1" to count start register
0 1 : (TAi
pin functions as a pro-
IN
grammable I/O port.)
1 0 : Falling edge of TAi
1 1 : Rising edge of TAi
0 : As a 16-bit pulse width modulator
1 : As an 8-bit pulse width modulator
b7 b6
0 0 : f
/ f
2
4
0 1 : f
/ f
16
32
1 0 : f
/ f
64
128
1 1 : f
/ f
512
1024
APPENDIX
, 46
)
16
16
, 48
)
16
16
, 4A
)
16
16
, 4C
)
16
16
, 4E
)
16
16
RW
At reset
" to "FFFE
."
WO
16
16
Undefined
n
f
i
/ f
, f
/ f
, f
/ f
, or f
/ f
)
4
16
32
64
128
512
1024
, 46
)
16
16
, 48
)
16
16
, 4A
)
16
16
, 4C
)
16
16
, 4E
)
16
16
At reset
RW
" to "FF
."
16
16
Undefined
WO
pin is
OUT
(m + 1)(2
– 1)
8
f
i
" to "FE
."
Undefined
WO
16
16
/ f
, f
/ f
, f
/ f
, or f
/ f
)
4
16
32
64
128
512
1024
)
16
RW
At reset
0
RW
0
RW
0
RW
0
RW
0
RW
pin's input signal
IN
pin's input signal
IN
0
RW
RW
0
0
RW
20–23

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents