Datasheet
PIC16F785/HV785
DS41249E-page 96 © 2008 Microchip Technology Inc.
REGISTER 13-4: PWMPH2: PWM PHASE 2 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
POL C2EN C1EN PH4 PH3 PH2 PH1 PH0
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 POL: PH2 Output Polarity bit
1 = PH2 Pin is active low
0 = PH2 Pin is active high
bit 6 C2EN: Comparator 2 Enable bit
When COMOD<1:0> =
00
(1)
1 = PH2 is reset when C2OUT goes high
0 = PH2 ignores Comparator 2
When COMOD<1:0> = 1X or X1
(1)
C2EN has no effect
bit 5 C1EN: Comparator 1 Enable bit
When COMOD<1:0> = 00
(1)
1 = PH2 is reset when C1OUT goes high
0 = PH2 ignores Comparator 1
When COMOD<1:0> = 1X or X1
(1)
C1EN has no effect
bit 4-0 PH<4:0>: PWM Phase bits
When COMOD<1:0> = 00
(1)
00000 = PH2 starts 1 pwm_clk period after falling edge of SYNC pulse. All other PH2 delays are
expressed relative to this time.
00001 = PH2 is delayed by 1 pwm_clk pulse
••••• =• • •
11111 = PH2 is delayed by 31 pwm_clk pulses
When COMOD<1:0> =
1X
(1)
00000 = Complementary drive terminates 1 pwm_clk period after falling edge of SYNC pulse.
All other PH2 delays are expressed relative to this time.
00001 = Complementary drive termination is delayed by 1 pwm_clk pulse
••••• =• • •
11111 = Complementary drive termination is delayed by 31 pwm_clk pulses
When COMOD<1:0> =
01
(1)
PH<4:0> has no effect.
Note 1: See PWMCON1 register (Register 13-5).