Datasheet

2010-2012 Microchip Technology Inc. DS41413C-page 225
PIC12(L)F1822/PIC16(L)F1823
24.4.6 PWM STEERING MODE
In Single Output mode, PWM steering allows any of the
PWM pins to be the modulated signal. Additionally, the
same PWM signal can be simultaneously available on
multiple pins.
Once the Single Output mode is selected
(CCP1M<3:2> = 11 and P1M<1:0> = 00 of the
CCP1CON register), the user firmware can bring out
the same PWM signal to one, two, three or four output
pins by setting the appropriate STR1 bits of the
PSTR1CON register, as shown in Table 24-9.
While the PWM Steering mode is active, the
CCP1M<1:0> bits of the CCP1CON register determine
the polarity of the output pins.
The PWM auto-shutdown operation also applies to
PWM Steering mode as described in
Section 24.4.3
“Enhanced PWM Auto-shutdown mode”
. An auto-
shutdown event will only affect pins that have PWM
outputs enabled.
FIGURE 24-18: SIMPLIFIED STEERING
BLOCK DIAGRAM
Note: The associated TRIS bits must be set to
output (0’) to enable the pin output driver
in order to see the PWM signal on the pin.
1
0
TRIS
P1A pin
PORT Data
P1A Signal
STR1A
1
0
TRIS
P1B pin
PORT Data
STR1B
1
0
TRIS
P1C pin
(3)
PORT Data
STR1C
1
0
TRIS
P1D pin
(3)
PORT Data
STR1D
Note 1: Port outputs are configured as shown when
the CCP1CON register bits P1M<1:0> = 00
and CCP1M<3:2> = 11.
2: Single PWM output requires setting at least
one of the STR1 bits.
3: PIC16(L)F1823 only.
CCP1M1
CCP1M0
CCP1M1
CCP1M0