better visual results ...
DEFINE OSCCAL_1K 1
ADCON0 = 0
ANSEL = 0
CMCON = 7
VRCON = 0
TRISIO = %00001000
led var GPIO.0
i var byte
y var word
up:
Pause 200
For i = 0 to 127
y = SIN i
Led = 1
Pauseus (y*y)
Led = 0
Pauseus ( 16129 -(y*y) )
next i
GOTO up
END
************************************************** ***********************
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