If your laptop(model?) has a parallel port for a LP-printer then it should support that specification ( https://en.wikipedia.org/wiki/IEEE_1284 ), then it should be defined. Newer laptops/notebooks have a USB-port which is also well specified. What do you want to drive from the laptop?
I want to drive opto couplers (perhaps 10 mA) and switch some power transistors. This will form the basis of a security alarm which will also be able to manipulate a mobile phone (to send TXT messages) and a camera to take photos when intruders trigger motion detectors.
That specification link yo gave still didn't specify the current capability of these port pins although I did look at one of the refernces that said it can vary from 4 mA to 20 mA.
Do you think my (old) laptop parallel port will have this information specified anywhere?
I think you could assume that your (old) laptop has the standard TTL-specification. If you can identify the type of output driver on your Laptop PCB you could find out if it is TTL, LSTTL or CMOS. If not you could check the output voltage by connecting a defined resistor to ground (output driver set to logic HIGH) or to 5V (output driver set to logic LOW). Standard LS-Driver can drive -0.4mA on High-level and 8mA on Low Level. Buffer could go to -3mA/24mA. Std-CMOS bus buffer could be +/-8mA. If you are not sure it is better to use an interface buffer or some universal I/O for harsh environment (here are some examples for that: https://www.ichaus.biz/wp1_mcu_interface ).
Assuming it is TTL. what kind of output current can it source and sink?
Would it be safe to just work on 1 mA?
Second. By checking the output voltage as you describe, what exactly am I doing?
- Am I measuring the current from an output pin set HIGH to the point where the output voltage starts to drop?
Or say I connect a HIGH pin to CROUND via a 10K resistor to see if it can source 0.5 mA, and if it can't then I know they are Standard LS-Driver?
Most like likely it is not TTL(due to power consumption). So maybe LS-TTL or CMOS. If it is LS-TTL the typical push-pull output can source (resister on the output to Ground) -0.4mA und sink (resistor from the output to 5V) 8mA. If it is CMOS it should be +/-4mA or more. In this data sheet **broken link removed** you find in table 1 the different technologies and it output drive listed. Fig. 3 of this shows the output stage of CMOS. LSTTL is similar but have bipolar transistors.
In measuring the output voltage under resistor load you check the drive capability. With the clearly define voltage level by technology (see table 1) you get a glue about the output drive capability. Mostly they are better than the specification at room temperature an nominal supply voltage.
If the chip is LS TTL and I try to source more than 0.4 mA from a HIGH output pin, I will see the voltage between that pin and GND begin to drop from 5.0 V to say 4.5 V. Right?
So how much current can this pin source before it does irrepairable damage to the chip?
In order to protect the parallel port driver chip:
- Could I move data to and from the parallel port via multiplexing chips? This would be useful and if anything went wrong these chips will probably die first.
- Would 74HC42 (TTL BCD to Decimal decoder) and 74LS157 (Quad 2-1 multiplexer) chips be suitable for this?
Could I safely connect the outputs of these chips directly to my parallel port input pins (and vice-versa) or would I need to put series resistors between?
I just found a complete report on the printer port design/application: http://content.imamu.edu.sa/Scholars/it/VisualBasic/Parallel_Port_Complete_Programming,_Interfacing_and_Using_the_PCs_Parallel_Printer_Port.pdf .
I see, there are some problems around Google seach. Maybe just try to Google seach "Parallel_Port_Complete_Programming,_Interfacing_an d_Using_the_PCs_Parallel_Printer_Port.pdf" . You might get the full document.