hey can any body had used the computer parallel port connection with the P0 port on the controller to receive data from computer and do the processes
sir i simply connected the parallel port with the P0 port of 89c51 and i m confused now how to read the data sent by the parallel port.
so can you guide me how to read the port P0 by code.
can we connect USB with 89c51.
The printer port is not just 8 data lines. It also contains handshake signals to inform the printer when a byte is available.
When data is available, just read it from the port.
The easiest way is with something like this:
apple.clickandbuild.com/.../ftdichip:+TTL-232R
If you do use something like that, the 89c51 remains oblivious to that fact that USB is involved at all - it remains just a standard UART interface as far as the 89c51 is concerned