I want to make like a following code
// the port definitons
RA3=my_ports(0)
RB2=my_ports(1)
RA1=my_ports(2)
RB7=my_ports(3)
RB0=my_ports(4)
Rxx=my_ports(x)
...
//then use in loop
....
for(i=0;i<10;i++)
{
my_ports(i)=1;
.....
my_ports(i)=0;
.....
}
Thank you Mike for reply, i am using 16F877 and 16F628.
You replied solution for only one port. Can i define PORTA, PORTB, PORTC ports are together in ports structure?