Section 9 8-Bit PWM Timer (PWM)
9.3.3
PWM Data Polarity Register B (PWDPRB)
PWDPR selects the PWM output phase.
• PWDPRB
Bit
Bit Name
Initial Value
7
OS15
0
6
OS14
0
5
OS13
0
4
OS12
0
3
OS11
0
2
OS10
0
1
OS9
0
0
OS8
0
9.3.4
PWM Output Enable Register B (PWOERB)
PWOER switches between PWM output and port output.
• PWOERB
Bit
Bit Name
Initial Value
7
OE15
0
6
OE14
0
5
OE13
0
4
OE12
0
3
OE11
0
2
OE10
0
1
OE9
0
0
OE8
0
[Legend]
x:
Don't care
Note:
n = 7 to 0
m = 15 to 8
Rev. 3.00 Jul. 14, 2005 Page 252 of 986
REJ09B0098-0300
R/W
Description
R/W
Output Select 15 to 8
R/W
These bits select the PWM output phase. Bits OS15 to
R/W
OS8 correspond to outputs PW15 to PW8.
R/W
0: PWM direct output (PWDR value corresponds to high
R/W
width of output)
R/W
R/W
1: PWM inverted output (PWDR value corresponds to
R/W
low width of output)
R/W
Description
R/W
Output Enable 15 to 8
R/W
These bits, together with P2DDR, specify the P2n/PWm
R/W
pin state. Bits OE15 to OE8 correspond to outputs
R/W
PW15 to PW8.
R/W
P2nDDR OEn: Pin state
R/W
R/W
0x: Port input
R/W
10: Port output or PWM 256/256 output
11: PWM output (0 to 255/256 output)