Hi, I was wondering if anyone cna help me with this piece of code that I am trying to generate, I am trying to do this in software but not getting the output that I really want. I am using the PIC16F777 as the pic of choice. and trying to generate a constant 120Hz PWM but it seems to not work. any help with this would be greatly appreciated. Thank you....
'========================'
here is the code that I have :
LOOP1:
duty = duty + 1
A = duty * 79
PortC.5 = 0
Pauseus 10033 - A
PortC.5 = 1
Pauseus A
if(duty < 127) then goto LOOP1
if(duty >= 127) then return
'======================='
Bookmarks