Well the following code got rid of that strange error... now the LED blinks no matter what the variable number is. So another issue to tackle... whoa is me.
"'''''''''''''''''''''''''
Define OSC 4
''''''''''''' DEFINE Analog Stuff '''''
Define ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SEAMPLEUS 50
ADCON1= %10000010 'Set PortA analog and right justify
TRISB = %00000000 'set PortB to output
TRISA = %10111111 'set A.0-5,7 as input/ A.6 as output
'MAKE A VARIABLE TO HOLD THE NUMBER!
Selection var byte
Main:
adcin 1,selection
serout2 PortB.6,16468,[DEC Selection, 10, 13]
If Selection > 100 Then
Gosub BLINK
ENDIF
goto Main
BLINK:
High PortB.3
Pause 200
Low PortB.3
GOTO Main
'''''''''''''''''''''''
Bookmarks