Hi, Peter
isn't that a Typo ???
Cause the written code matches to what you describe ...
so, Try this one :
Code:
start:
adcin 1, instate
select case instate
case is>220 'actual is 248
portb = %00010000
case is>190 'actual is 201
portb = %00001000
case is>162 '178
portb = %00000100
case is> 139 '154
portb = %00000010
case is >132 '136
portb = %00000001
case ELSE '108
portb = %00000000
end select
pause 20
goto start
Here, leds will be off for Open input ... if divider present on input !
Alain
PS ... I suppose you mix "break" C statement with PbP " go to Finish " ... lol : PbP do not [no]need[no] have it !!!
************************************************** ***********************
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