Is it possible to have same signal name to two microcontroller pins in Atmel microcontroller.
I have a code that works with a single pin defined as sbit name = P1^1;
I want to run the same code so that i should be able to see the code on the other pin P1^2;
It would not be possible to use same pin name for two pins.Firstly, the compiler won't accept.
what is your application?
If your applications allows, you make a external provision in hardware by dividing the same signal between two paths.
There are several ways you can do this. If your hardware can accept delays of a few microseconds then you can just address each pin in sequence. Example P1_1 =a; P1_2 =a. You could address the port directly if no other pins were used, P1=6. If other port pins were used, you can use bit masking so no other bits were altered. No real reason to give 2 pins the same name.
Check out https://www.scribd.com/doc/6560415/Keil-Basics