Pwm Control Register 1 (Pwmcon1) - Renesas M16C/64A Series User Manual

Table of Contents

Advertisement

M16C/64A Group
21.2.4

PWM Control Register 1 (PWMCON1)

PWM Control Register 1
b7
b6 b5 b4
b3
b2
b1
0 0 0
0
PWMEN0 (PWM0 output enable bit) (b0)
PWMEN1 (PWM1 output enable bit) (b1)
Set these bits to start PWM output. See Table 21.4 "PWM Pin and Bit Setting" for details.
PWMPORT0 (PWM0 port switch bit) (b2)
PWMPORT1 (PWM1 port switch bit) (b3)
Set these bits to select a PWM output pin. See Table 21.4 "PWM Pin and Bit Setting" for details.
Table 21.4
PWM Pin and Bit Setting
Bit Setting
PWMCON0 register
PWMSELi bit
0
1
i
= 0, 1
Notes:
1.
Set the direction bit corresponding to the selected pin to 1 (output mode).
2.
Even if the PWMENi bit is set from 1 to 0 during PWMi output, the PWMi output remains
unchanged. The PWM output signal is low immediately after the MCU is reset.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
b0
Symbol
PWMCON1
Bit Symbol
Bit Name
PWMEN0
PWM0 output enable bit
PWMEN1
PWM1 output enable bit
PWMPORT0
PWM0 port switch bit
PWMPORT1
PWM1 port switch bit
Reserved bits
(b7-b4)
PWMCON1 register
PWMPORTi
PWMENi bit
bit
0
0 or 1
0
(1)
1
1
0
0 or 1
0
(1)
1
1
Address
0376h
Function
0: Output disabled
1: Output enabled
0: Output disabled
1: Output enabled
0: I/O port
1: PWM0 output
0: I/O port
1: PWM1 output
Set to 0
Pin Function or State
P9_3
P9_4
I/O port or pin for other
peripheral function
PWMi output level
(2)
maintained
PWMi pulse output
I/O port or pin for other
peripheral function
21. Pulse Width Modulator
Reset Value
00h
RW
RW
RW
RW
RW
RW
P4_6
P4_7
I/O port or pin for other
peripheral function
I/O port or pin for other
peripheral function
PWMi output level
(2)
maintained
PWMi pulse output
Page 397 of 800

Advertisement

Table of Contents
loading

Table of Contents