any one knows how to multiplex ports to one verible.
i.e. I want to make a verible type int or long and then when i send data to the verible all prts will be changed.
Lets say
signed int ALLPorts = 0;
Then i will write:
ALLPorts = 0xFFFF;
This will be insted of:
PORTA = 0xFF;
PORTB = 0xFF;
Dont want to use a subrutine. Because i want to have the option to read and write to the same verible.
I thought of maybe to use a structure or an array and define the ports inside...
What do you think?