I want to do some I/O testing with a few pins of my AT89C2051 microcontroller using the parallel port of my PC in standard mode (not bi-directional). Why standard? because I configured it as that for other projects and I don't want to change it.
The microcontroller can output high-impedance or logic low on its pins. This means I can't send a logic high output to the microcontroller without it blowing up unless it doesn't output a logic low.
So lets say for example I want the LSB of the parallel port output as data entering one GPIO pin of the micro and the output of the same GPIO pin going to let's say the parallel port busy line.
Seeing that busy line is port pin 11 and LSB of port data is pin 2, I can't just connect pin 2 to pin 11 to GPIO without having either or both items blown up.
Only idea I have in mind is to use resistors between all connections but if that's an ok approach, then what values should I use?
And if there's a better approach (even if it means using a simple IC) then tell me.
The microcontroller can output high-impedance or logic low on its pins. This means I can't send a logic high output to the microcontroller without it blowing up unless it doesn't output a logic low.
So lets say for example I want the LSB of the parallel port output as data entering one GPIO pin of the micro and the output of the same GPIO pin going to let's say the parallel port busy line.
Seeing that busy line is port pin 11 and LSB of port data is pin 2, I can't just connect pin 2 to pin 11 to GPIO without having either or both items blown up.
Only idea I have in mind is to use resistors between all connections but if that's an ok approach, then what values should I use?
And if there's a better approach (even if it means using a simple IC) then tell me.