Forum : 8051
Original Post
Post Information | Post |
---|---|
February 7, 2019 - 5:02pm
|
Dear compiler experts, I want to define a variable to be a single bit on an output port. I tried doing "#define MotorOutputBit P1.1" but when I use MotorOutputBit I get syntax errors. I looked in the manual and couldn't find it. In the compiler I am porting from it is written as "bit MotorOutputBit@0x91;" but when I tried to specify the address using "at 0x91 bit MotorOutputBit;" I got error C165, absolute specifier illegal. Thanks for any help, Lloyd |
I found the sbit command, so this issue is closed
Thanks,
Lloyd