Hi Pic_User. Yes, I know that, but why cannot I connect the LEDs to + and pulse to ground? I changed the program, trying to zero in on the probem. Now GPIO.1 pulses to ground like I want but GPIO.0 pulses positive in phase with GPIO.1. I would not expect GPIO.0 to change at all.
high GPIO.0 'INITIAL CONDITIONS
high GPIO.1
START:
low GPIO.1
high GPIO.0
PAUSEUS 4168 ' ON TIME
high GPIO.1
PAUSEUS 4167 'DEAD TIME, BOTH high
high GPIO.1
PAUSEus 4168 'FOR 4.168 MILLISECONDS
high GPIO.1
PAUSEUS 4167 'DEAD TIME
GOTO START '60 HZ FREQUENCY
END
I will post the final circuit so you can see what I am trying to do. I want to replace the 555, flip flops and gate with the PIC.
Bookmarks