Re: Select case function
just need to keep ONE GoTo P @ the end of your Select case's after the End Select
your syntax is " not so good " 
Code:
' prevent duplicate
IF PORTC = 1 THEN
TTLADD = 0
endif
IF PORTC = 2 THEN
TTLADD = 128
endif
IF PORTC = 4 THEN
TTLADD = 384
endif
One more good reason to use " select case " ...
I think you should read carefully the select case page of your Holy Manual ... ( not a C Compiler manual ... )
Last edited by Acetronics2; - 14th February 2025 at 21:00.
************************************************** ***********************
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