I have been reading up on this and finding that everybody has there two cents to this. The code to follow is what I assume to use:
' I am using this program to see if I can get a PWM to work on channel 1
CMCON = 7 ' Turns the Ports to Digital
TRISB = 0
pause 500
loop:
HPWM 1,128,721 'This command is to try and get the PWM to modulate.
goto loop
But the thing to it is that I am not getting anything to work. I would like to use this for something more complex of course and I thought that if I could generate frequencies between 700 and 750 I would be good, but I can not even get one out of that range to work. The pic that I am using is the 16f648a and I have changed it out frequently to get nothing. is there any help out there.
Bookmarks