Ports
May 25, 2013, 12:38:02 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: how doesthe status&control pins of parallel port work another than Printer usage  (Read 2070 times)
keerth516
Member
*
Posts: 1


« on: March 29, 2012, 01:10:49 am »

how many functions in inpout32.dll..only input32 and output32 functions are there (or)
any other direct function to work with statsu pins and control pins.Here i cannot write the control pins function.Always it shows C0=1,even if changed the bit position values of control pins.Controlling data pins by decimal number is easy.How to read/write the control pins and reading of status pins..I can change only data pins not the control pins.As per the Printer concept the strobe pin(C0) will acts as invert position Suppose if we set to zero the resultant shows the value 1.After changing the bit position too the control pin (C0) remains unchanged(default value is 1).the status bit value is 127.How does these control and status pins works?? I could find only printer related concept of controla and status bits?? how could i use the status and control pins for the pCB board having 8 leds and 8 relays.
having SN74Ls244N,ULN2003AN fitted on PCB.how can i relate the control,data and status usage combinely So that i can communicate the PCB through my C# application by PC.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1631


WWW
« Reply #1 on: March 29, 2012, 08:42:44 am »

This FAQ explains the port bits:

http://www.lvr.com/files/ibmlpt.txt

Status port is base address + 1. Control port is base address + 2.

To use the control bits as inputs, first write C0,C1,C3=0; C2=1. (I'm not 100% sure this technique still works on modern ports.)

Then you will have 4 control inputs, 5 status inputs, and 8 data outputs.

To expand the I/0 capabilities further, you can use decoders, data selectors, and flip flops. My Parallel Port Complete book shows how.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!