Pwm Control Register 0 (Pwmcon0) - Renesas M16C/64C User Manual

Table of Contents

Advertisement

M16C/64C Group
21.2.1

PWM Control Register 0 (PWMCON0)

PWM Control Register 0
b7
b6 b5 b4
b3
b2
b1
0
0
0
0
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.
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
b0
Symbol
PWMCON0
Bit Symbol
Bit Name
PWMSEL0
PWM0 output pin select bit
PWMSEL1
PWM1 output pin select bit
Reserved bits
(b5-b2)
PWMCLK0
PWM count source select bit
PWMCLK1
Address
0370h
Function
0: Output PWM0 signal from P9_3
1: Output PWM0 signal from P4_6
0: Output PWM1 signal from P9_4
1: Output PWM1 signal from P4_7
Set to 0
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
21. Pulse Width Modulator
Reset Value
00h
RW
RW
RW
RW
RW
RW
Page 397 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents