PIC12F/LF1822/16F/LF1823
23.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 23-8.
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.
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 23.4.3
“Enhanced PWM Auto-shutdown mode”. An auto-
shutdown event will only affect pins that have PWM
outputs enabled.
FIGURE 23-18:
STR1A
P1A Signal
CCP1M1
PORT Data
STR1B
SIMPLIFIED STEERING
BLOCK DIAGRAM
P1A pin
1
0
TRIS
CCP1M0
1
P1B pin
PORT Data
STR1C
0
TRIS
CCP1M1
PORT Data
STR1D
1
P1C pin(3)
0
TRIS
CCP1M0
1
P1D pin(3)
PORT Data
0
TRIS
Note 1:
2:
3:
Port outputs are configured as shown when
the CCP1CON register bits P1M<1:0> = 00
and CCP1M<3:2> = 11.
Single PWM output requires setting at least
one of the STR1 bits.
PIC16F/LF1823 only.
DS41413A-page 218
Preliminary
2010 Microchip Technology Inc.