When you do an operation like this you ar reading the value of the PIN, not the contents of the output data latch. You gotta understand how an I/O port works before you can actually use it.i have problem with port P0 in 89c51.
P0=0x01;
P0=P0<<1;
when i do this operation P0.1 become low.
what can i do
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | School problem | Homework Help | 3 | |
T | Problem with UA741CP OP-AMP | PCB Layout , EDA & Simulations | 12 | |
M2-ATX Power Supply problem | Power Electronics | 0 | ||
Y | problem controlling variable DC-DC LTC1261LCS8-4 | PCB Layout , EDA & Simulations | 10 | |
G | A Theremin sound problem | General Electronics Chat | 26 |