This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pointer to SFR

How to define a pointer to the SFR,
e.g.
I want to define a pointer to a Port0

unsigned char data *Sensor_Port = (unsigned char data * )0x80;

void main()

{

while(1)

{

                           *Sensor_Port    =       0xFF;

                           *Sensor_Port    =       0x00;
}
                }


0