Continue to Site

Multiplaxing ports on a PIC

Status
Not open for further replies.

gidimiz

Advanced Member level 1
Advanced Member level 1
Joined
Feb 3, 2005
Messages
427
Helped
125
Reputation
250
Reaction score
41
Trophy points
1,308
Activity points
5,158
multiplaxing

Hi,

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;

Any idea?
 

Hi,

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?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top