TTL and Parallel Port
I have another project in the works and I need to find out some information pertaining to the Basic Stamp.
My idea is a parallel port driven BS2 that can intercept and decode the pin states received from the parallel port connection on a PC. I know that the "E" pin (or STROBE on the parallel port) causes the LCD to read the pin states and print relevant information out on the serial port (Pin 16) such as line states and data, what the pin states do, etc. I can get the BS2 to do the same by using the following code, correct?
if (pin0='1') THEN
Read other pins here.
ENDIF
The serial output will be something like:
DDDDDDRR
01234567SW
1000000000 - Clear Screen
1111000000 - Enable Display, Turn Cursor On, Set cursor to blink.
...
...
etc.
My questions:
1: Is the code above a valid way of detecting the strobe pin state? Does anyone see any issue with this as far as speed is concerned? (this is going to be used to debug a LCD controller application on the PC.)
2: The voltages coming out of the parallel port are TTL, correct? Are there any safeguards I should be aware of before I attempt to interface to it? (aside from a common ground is required... (already been bit by that one.)
3: Anyone have any ideas or suggestions?
My idea is a parallel port driven BS2 that can intercept and decode the pin states received from the parallel port connection on a PC. I know that the "E" pin (or STROBE on the parallel port) causes the LCD to read the pin states and print relevant information out on the serial port (Pin 16) such as line states and data, what the pin states do, etc. I can get the BS2 to do the same by using the following code, correct?
if (pin0='1') THEN
Read other pins here.
ENDIF
The serial output will be something like:
DDDDDDRR
01234567SW
1000000000 - Clear Screen
1111000000 - Enable Display, Turn Cursor On, Set cursor to blink.
...
...
etc.
My questions:
1: Is the code above a valid way of detecting the strobe pin state? Does anyone see any issue with this as far as speed is concerned? (this is going to be used to debug a LCD controller application on the PC.)
2: The voltages coming out of the parallel port are TTL, correct? Are there any safeguards I should be aware of before I attempt to interface to it? (aside from a common ground is required... (already been bit by that one.)
3: Anyone have any ideas or suggestions?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com