i was using the ins. sbit x=0xA4; i realise that 0xA4 is not a multiple of 8.please suggest me if there is a method to access the each bit of register with Base address 0xA4. will bdata work thanks
sbit x=0xA4; defines bit 4 of P2
please suggest me if there is a method to access the each bit of register with Base address 0xA4. see a lawyer :) they use and/or
it is clear to me that you need some "bible time"
Erik
here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
WHY?
for the predefined Registers P2^4 = 1;
if you have bdata char X;
X^2 = 1;
It is in the manual. Do not fight the compiler.