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
sunish, please reveal to us what you want to do - if you want to send the data to the outside world, maybe you want to interface your UART. Other options are to transmit your byte using "bit-banging" (by dedicating at least one bit for communication with another device), but for that you need masks and shifting. good luck.
I meant, of course, "by dedicating at least one pin for ..."
View all questions in Keil forum