I may be expecting too much of this platform. It seems like it should be a simple matter to do this, but it seems that I cannot indirectly address in/out pins.
In simplified terms, I need to read a number from the serial port then select which group (1 of 4) of three pins (out of 12 pins total) are used when a interrupt occurs. I didn't want to have to write 4 copies of the interrupt with specific pin numbers in each. I assigned symbols to the pin numbers but you can't say symbol1=symbol2 in the program.
What am I missing?
Some code:
In simplified terms, I need to read a number from the serial port then select which group (1 of 4) of three pins (out of 12 pins total) are used when a interrupt occurs. I didn't want to have to write 4 copies of the interrupt with specific pin numbers in each. I assigned symbols to the pin numbers but you can't say symbol1=symbol2 in the program.
What am I missing?
Some code:
Code:
'if b13="1" then rxa=b5rxa:let xvrt=b5xvrt:let pa=b5pa '1296M
'else if b14="4" then let rxa=b4rxa and let xvrt=b4xvrt and let pa=b4pa '432M
'else if b14="1" then let rxa=b2rxa and let xvrt=b2xvrt and let pa=b2pa '144M
'else if b15="5" then let rxa=b1rxa and let xvrt=b1xvrt and let pa=b1pa '50M
'else if b15="2" and b16="8" then let rxa=b2rxa and let xvrt=b2xvrt and let pa=b2pa '222M
'else
'endif