Table of Contents

Advertisement

M16C/64A 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

Table 21.3
Registers
Address
0370h
PWM Control Register 0
0372h
PWM0 Prescaler
0373h
PWM0 Register
0374h
PWM1 Prescaler
0375h
PWM1 Register
0376h
PWM Control Register 1
R01UH0136EJ0210 Rev.2.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
PWMCON0
PWMPRE0
PWMREG0
PWMPRE1
PWMREG1
PWMCON1
21. Pulse Width Modulator
PWM0
PD4_6
PWM0
PD9_3
Function
PWM output
Reset Value
00h
00h
00h
00h
00h
00h
Page 394 of 800

Advertisement

Table of Contents
loading

Table of Contents