It should be even simpler:
#define light P2_0

When you write just use: light = val;

Ori Idan

On 2/22/07, Raphael Neider <> wrote:

> 2. sbit light = P2_0 (instead of P2^0 for keil)

This line creates a new sbit variable, initialized with P2_0, you
probably want something like
        sbit __at(P2_0) light;

I am no mcs51 expert, but this is a common error. Maybe you need to use
__at(&P2_0), but I am not so sure.


Take Surveys. Earn Cash. Influence the Future of IT
Join 's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Sdcc-user mailing list