R01UH0092EJ0110 Rev.1.10
Page 397 of 807
Jul 31, 2012
M16C/64C Group
21. Pulse Width Modulator
21.2.1
PWM Control Register 0 (PWMCON0)
Set bits PWMSELi and PWMCLKi (i = 0, 1) in the PWMCON0 register when the PWMENi bit in the
PWMCON1 register is 0 (PWMi output disabled).
PWMSEL0 (PWM0 output pin select bit) (b0)
PWMSEL1 (PWM1 output pin select bit) (b1)
Set these bits to select PWM output pins. See Table 21.4 “PWM Pin and Bit Setting”.
PWMCLK1-PWMCLK0 (PWM count source select bit) (b7-b6)
Set these bits to select a count source for the PWMi prescaler. Prescalers PWM0 and PWM1 share
the same count source.
b7
0
0
0
b6 b5 b4
b1
b2
b3
PWM Control Register 0
Symbol
PWMCON0
Address
0370h
Bit Symbol
Bit Name
RW
PWMSEL0
Reset Value
00h
RW
b0
Function
PWM0 output pin select bit
PWMSEL1
RW
RW
PWM1 output pin select bit
0: Output PWM0 signal from P9_3
1: Output PWM0 signal from P4_6
—
(b5-b2)
Reserved bits
Set to 0
PWMCLK0
b7 b6
0 0: f1 divided by 2
0 1: f1 divided by 4
1 0: f1 divided by 8
1 1: f1 divided by 16
PWMCLK1
PWM count source select bit
RW
RW
0: Output PWM1 signal from P9_4
1: Output PWM1 signal from P4_7
0
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...