Hi All,
Sorry to bother evryone for such a simple question. I tried to search the archives, but when I entered "16F88+PWM" I was told that "PWM" was too small or too common to be included in the search.
Anyway, while I have done it before, I can't get the PWM to work on a 16F88. Here is what I am trying:
@ DEVICE PIC16F88,HS_OSC,MCLR_ON,LVP_OFF,WDT_OFF,PROTECT_OF F
DEFINE OSC 20
TRISB = 255
CMCON = 0
ADCON0 = 0
ANSEL = 0
PR2 = 122
CCPR1L = 64
T2CON = %00000100
CCP1CON = %00001100
output portb.3
end
Any ideas why this isn't working? As far as I remember, this was a working snip.
Thanks,
Jonathan
Bookmarks