Your pivot1 routine "Falls Thru" to the pivot2 routine.
So the pins will have a 50% dutycycle signal and your voltmeter is averaging them to read 2.7V.
Just add a goto after pivot1.
Originally Posted by yasky1
@ DEVICE pic16F627A, INTRC_OSC_NOCLKOUT
start:
if PORTA.0 = 0 then pivot1
if PORTA.0 = 1 then pivot2
Bookmarks