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 |
|---|---|---|---|---|
| A | How do I solve this problem using Kirchhoff's laws, everyone? | Homework Help | 15 | |
|
|
Bosch oven problem | Technical Repair | 4 | |
|
|
Problem with powering DIY boost converter | Power Electronics | 7 | |
|
|
Toy car circuit problem | General Electronics Chat | 17 | |
| R | Just having a bit of a current control problem. | Power Electronics | 57 |