THE PARALLEL PORT
........................................................................................................Spanish press here
![]() |
||||||
On the DB-25 connector can found 25 pins, 8 of them are to data out ,this your only can modified by software, they are pin 2 (data 0) to pin 9 (data 1). Another 5 pins are input data, only can modified by external hardware, they are pin 11,10,12,13 and 15 (the pin 15 are inverted). Remember, when you use the state bits your get a 8 bits the 3 more little are system reserves. And the ping 15 are inverted the correct values is inverted too. 4 pins are a control pins 1,14,16,17, they have two directions, your can modified they by hardware or software. The pins 17,14 and 1 are inverted, have a negative logical and his real value is inverted too. And the 18 to 25 pins are ground, we always use 25 pins, but you can use some of them. The memory parallel port direction can by found
in $40: $008, the result is, the Data bus direction, are 3 result typical.
When your get the Data bus direction, plus
+1 to get the State bus and +2 to get the Control bus.
|
||||||
The output Voltage is 5V c.c and
0,5 mA. This characteristiques is the better to use the TTl technologic
to made external hardware controller by this port.
-Schemes to DATA bus ![]() - SALIDAS.PAS program
|
||||||||||||||||
-Schemes to STATE bus - ENTRADAS.PAS program
-Schemes to CONTROL bus - ControlS.pas program
- ControlE.pas program ![]() Uses crt ; Var Salida,Control,DatoEntradaControl: Integer; Begin Salida:=MenW [$040:$008] ; Control:=Salida +2 ; Repeat DatoEntradaControl:= Port [Control]; {get data} Write (DatoEntradaControl);{Remenber inverted bits} Until Keypresset; End. by Necro_ |