Table of Contents

Advertisement

M16C/64C Group
PWMCLK1 to PWMCLK0
=00b
f1
1/2
=01b
1/4
=10b
1/8
=11b
1/16
The above shows an example block diagram of PWM0.
PWMSEL0, PWMCLK1, PWMCLK0 : Bits in the PWMCON0 register
PWMEN0, PWMPORT0 : Bits in the PWMCON1 register
PD4_6 : Bit in the PD4 register
PD9_3 : Bit in the PD9 register
Figure 21.1
Block Diagram of PWM
Table 21.2
I/O Ports
Port
PWM0
PWM1
Note:
1.
Set the direction bit corresponding to selected pin to 1 (output mode)
21.2

Registers

Refer to 8.2.6 "Peripheral Clock Stop Register 1 (PCLKSTP1)" for the explanation of the PCLKSTP1
register.
Table 21.3
Registers
Address
0016h
Peripheral Clock Stop Register 1
0370h
PWM Control Register 0
0372h
PWM0 Prescaler
0373h
PWM0 Register
0374h
PWM1 Prescaler
0375h
PWM1 Register
0376h
PWM Control Register 1
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
Data bus
PWM0 prescaler
PWM0 register
prelatch
prelatch
Transfer control circuit
PWM0 prescaler
PWM0 register
latch
latch
PWM0 prescaler
PWM0 register
I/O
Output
Register
PWMEN0
PWMPORT0
PWMSEL0
(1)
Symbol
PCLKSTP1
PWMCON0
PWMPRE0
PWMREG0
PWMPRE1
PWMREG1
PWMCON1
21. Pulse Width Modulator
PWM0
PD4_6
PWM0
PD9_3
Function
PWM output
Reset Value
0XXX XX00b
00h
00h
00h
00h
00h
00h
Page 396 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents