Dear friends
i would like to know how to send any bit of a char to any port pin ie. unsigned char a = 0xAA; now at memory location for a will contains 10101010b can i send the bit 0 of "a" to P1_0? i don't want to send the entire a to P1
thanking you
sunish
One way is:
bdata char aByte;
P0^0 = aByte^0;
OR
char aByte;
P0^0 = aByte & 0x01;
Note you may have to use:
P0^1 = (aByte & 0x02) != 0; I am not sure how the compiler handles this