well i just tried that one...
Code:
@ DEVICE MCLR_ON, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF, CCPMX_ON
OSCCON=$60 ' use internal 4MHZ osc
PAUSE 100 ' start-up delay
TRISB=0
DEFINE CCP1_REG PORTB
DEFINE CCP1_BIT 3
HPWM 1,128,1000
HERE: GOTO HERE
no big difference on the previous,just correcting the way i wrote HPWM, enable the MCLR and remove CodeProtect... it's working on RB3 as it's suppose to.
BTW i'd attach the .HEX file to dump on your PIC. Let's assume that it could be a compiler problem... maybe.
let us know.
PS just rename .txt to .hex
Bookmarks