This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

P2 does not change

I am trying to interface a P89C662 with an LCD. I am using the example in Mazidi's book.
The RS, R/W, E pins of the LCD are attached to P2.0, P2.1, P2.2 respectively.
When I try to use the Keil Monitor-51 driver to do on chip debugging, P2 never changes so I cannot even initialize the LCD.
The P89C662 has 32K flash so I am not using any external memory. So I should be able to use P2 and P0 as I/O ports. But for some reason I can't!!!