AnsweredAssumed Answered

vrf AW: parallel port

Question asked by VRFuser on Feb 15, 2004
Hello Luigi,

I did some data transfer using the parallel port under VEE. May be I can
give you some hints.
The parallel port is divided in some different parts, s. attached picture
(hopefully you got it).
Assuming a standard configured PC with its LPT1 port (configured as standard
LPT1, no bi-directional transfer), we have the data port (D0-D7) at address
378H (used for writing), the state register (S0-S7) is located at 379H (used
for reading), and finally the control register (C0-C7) is at address 37aH
(this can be used for reading and writing).
This works well, without setting C2. To my understanding, it is not
necessary to set C2 for reading the state or control registers.
For reading the bit S3 you can use the peekpoke utility to read the address
379H and look for the bit C2. The writing should work with the peekpoke
utility using port 37aH.
Please note, that the given addresses are valid for a standard lpt1 port.
Hope this helps.
Regards,

Martin

<<...OLE_Obj...>>

> -----Ursprngliche Nachricht-----
> Von:     Luigi Cervato [SMTP:LuigiCervato@calearo.com]
> Gesendet am:     Freitag, 13. Februar 2004 19:10
> An:     VRF
> Betreff:     [vrf] parallel port
>
> Hi. I'm trying to use some pin of the parallel port to interface with a
> little board (mounting a microprocessor).
> I think that, using correctly the control register and the status register
> (look at website www.logix4u.net and follow the link to tutorial) , it is
> possible to use some pin as input and some pin as output.
> According to the tutorial, if I set the bit C2 in the control register, I
> can use the port in bidirectional mode.
> But, I don't want to use the port in bidirectional mode; I would only use
> the pin C0, C1 and C3 as output and S3 as input.
> How does it work?
> Who can me help?
> Thank you.
> Luigi
>
>
> Ing. Luigi Cervato
> R&D Department
> CALEARO ANTENNE SRL
> Via Bacchiglione, 49
> 36033 Isola Vicentina (Vi) - Italy
> Tel:  +39 0444 901 301 (centralino)
> Fax: +39 0444 901 375
> E-mail: LuigiCervato@calearo.com
>
>
> ---
> You are currently subscribed to vrf as: Martin.Alles@hno.atmel.com
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list,  email "vrf@agilent.com". 
> If you need help with the mailing list send a message to
> "owner-vrf@it.lists.it.agilent.com".
> Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible
> inclusion in VEE 7.0!

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0!

Outcomes