:idea: Then I am thinking that to use PORT B as the input. This input is for the user to input the address they wish to turn on a particular device.
Then I was thinking that can I move the device ID address(3 bit RB0,RB1,RB2) in the PORT B which is the new ID, to the PORT A(RA0,RA1,RA2) so that the next time...when i need to switch on the device, PORT A will output the address to the comparator.
The moving of data from PORT B to PORT A is programmed at the beginning?And is it mean that the PIC itself will automatic move the data from PORT B to PORT A whenever PORT B had received the data?
:?: Is it posibble to have such an idea. And, also, can u give me the example code for that function?