just simplify ...
Hi, Malc
Try this ... and do not forget I/Os and clock defining ...
DEFINE OSCCAL_1K 1
ADCON0 = 0
ANSEL = 0
' Define YOUR I/Os Here !!! TRISIO = % ?????1
led var GPIO.0
i var byte
up:
For i = 1 to 254
Pwm GPIO.0,i,1
next i
for i = 254 to 1 step-1
pwm GPIO.0,i,1
next i
GOTO up
END
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks