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

usage of sbit

<

struct{

bit open; bit close;

}door[2];

sbit door[0].open = P1^0;
sbit door[0].close = P1^1;
sbit door[1].open = P1^2;
sbit door[1].close = P1^3;

>

Here when I compile/build this code at sbit lines C141 error is thrown. Any one verify this sbit Initialization and suggest me the various ways to use sbit.

0