PIC12F609/615/617/12HV609/615
REGISTER 11-3: PWM1CON: ENHANCED PWM CONTROL REGISTER
R/W-0
PRSEN
bit 7
R/W-0
PDC6
R/W-0
PDC5
R/W-0
PDC4
R/W-0
PDC3
R/W-0
PDC2
R/W-0
PDC1
R/W-0
PDC0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6-0
PRSEN: PWM Restart Enable bit
1 = Upon auto-shutdown, the ECCPASE bit clears automatically once the shutdown event goes
away; the PWM restarts automatically
0 = Upon auto-shutdown, ECCPASE must be cleared in software to restart the PWM
PDC<6:0>: PWM Delay Count bits
PDCn =Number of FOSC/4 (4 * TOSC) cycles between the scheduled time when a PWM signal should
transition active and the actual time it transitions active
TABLE 11-7: SUMMARY OF REGISTERS ASSOCIATED WITH PWM
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
Value on
all other
Resets
APFCON
—
—
—
T1GSEL
CCP1CON(1) P1M
—
DC1B1 DC1B0
CCPR1L(1) Capture/Compare/PWM Register 1 Low Byte
CCPR1H(1) Capture/Compare/PWM Register 1 High Byte
—
— P1BSEL P1ASEL ---0 --00 ---0 --00
CCP1M3 CCP1M2 CCP1M1 CCP1M0 0-00 0000 0-00 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
CMCON0 CMON COUT CMOE CMPOL
—
CMR
—
CMCH 0000 -0-0 0000 -0-0
CMCON1
—
—
—
T1ACS CMHYS
—
T1GSS CMSYNC ---0 0-10 ---0 0-10
ECCPAS(1) ECCPASE ECCPAS2 ECCPAS1 ECCPAS0 PSSAC1 PSSAC0 PSSBD1 PSSBD0 0000 0000 0000 0000
PWM1CON PRSEN PDC6
PDC5
PDC4
PDC3 PDC2 PDC1 PDC0 0000 0000 0000 0000
INTCON
GIE
PEIE
T0IE
INTE
GPIE
T0IF
INTF
GPIF 0000 0000 0000 0000
PIE1
—
ADIE(1) CCP1IE(1)
—
CMIE
— TMR2IE(1) TMR1IE -00- 0-00 -00- 0-00
PIR1
T2CON(1)
TMR2(1)
—
ADIF(1) CCP1IF(1)
—
CMIF
— TMR2IF(1) TMR1IF -00- 0-00 -00- 0-00
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
Timer2 Module Register
0000 0000 0000 0000
TRISIO
—
—
TRISIO5 TRISIO4 TRISIO3 TRISIO2 TRISIO1 TRISIO0 --11 1111 --11 1111
Legend: - = Unimplemented locations, read as ‘0’, u = unchanged, x = unknown. Shaded cells are not used by the PWM.
Note 1: For PIC12F615/617/HV615 only.
2010 Microchip Technology Inc.
DS41302D-page 105