Datasheet

2010 Microchip Technology Inc. DS41302D-page 105
PIC12F609/615/617/12HV609/615
TABLE 11-7: SUMMARY OF REGISTERS ASSOCIATED WITH PWM
REGISTER 11-3: PWM1CON: ENHANCED PWM CONTROL REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PRSEN PDC6 PDC5 PDC4 PDC3 PDC2 PDC1 PDC0
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7 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
bit 6-0 PDC<6:0>: PWM Delay Count bits
PDCn =Number of F
OSC/4 (4 * TOSC) cycles between the scheduled time when a PWM signal should
transition active and the actual time it transitions active
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 P1BSEL P1ASEL
---0 --00 ---0 --00
CCP1CON
(1)
P1M DC1B1 DC1B0 CCP1M3 CCP1M2 CCP1M1 CCP1M0
0-00 0000 0-00 0000
CCPR1L
(1)
Capture/Compare/PWM Register 1 Low Byte
xxxx xxxx uuuu uuuu
CCPR1H
(1)
Capture/Compare/PWM Register 1 High Byte
xxxx xxxx uuuu uuuu
CMCON0
CMON COUT CMOE CMPOL —CMR—CMCH
0000 -0-0 0000 -0-0
CMCON1
T1ACS CMHYS —T1GSSCMSYNC
---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
ADIF
(1)
CCP1IF
(1)
CMIF —TMR2IF
(1)
TMR1IF
-00- 0-00 -00- 0-00
T2CON
(1)
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0
-000 0000 -000 0000
TMR2
(1)
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.