Searching \ for ' [PIC] ECP paralell port interfacing :-)' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=port
Search entire site for: 'ECP paralell port interfacing :-)'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [PIC] ECP paralell port interfacing :-)'
2001\06\02@220045 by Kyrre Aalerud

flavicon
face
Hi, I am currently working on a ECP-paralell interface routine.  This simply because I am tired of my 16F84 based thermometer having comm problems on serial.

I find that I need the whole B-register as the data-channels.  Then I can use the five A-ports as follows:

HostAck PORTA, 0  ;  RA0 is HostAck input (pin 14)
nReverseRequest PORTA, 1 ;  RA1 is nReverseRequest input (pin 16)
nAckReverse PORTA, 2 ;  RA2 is nAckReverse output (pin 12) = HIGH
PeriphAck PORTA, 3  ;  RA3 is PeriphAck output (pin 11) = LOW
PeriphClk PORTA, 4  ;  RA4 is PeriphClk output (pin 10) = HIGH

PeriphRequest output (pin 15)  Where do i put this then :-(

I was thinking of harw-wiring it to low, but that might be a mistake.  I don't want the comp to poll for a value before I have measured one...  The measuring takes too long to be done on a hardware request level.

Any genious ideas ?

Here is a "pseudo" of the routine:
---------------------------------------------
PeriphRequest => LOW        (Causes the comp to sense that there might be data for it)
wait for nReverseRequest => LOW        (Waiting for the comp to poll the data)
ack by nAckReverse => LOW        (Ack the poll)
Place data    (duh!)
PeriphAck => HIGH        (Tell host that data is OK)
PeriphClk => LOW        (Ready the clock for host)
wait for HostAck => HIGH        (Wait for host ack)
PeriphClk => HIGH           (Clock data in on host)
wait for HostAck => LOW        (Wait for  host ack)
PeriphRequest => HIGH        (Stop reverse request)
---------------------------------------------

Nice isn't it ?

The good thing about this is that it will work as long as it uses a fast enough clock.  It will let one transfer data at a rather nice rate too.  (1 MB/sec is not a problem if needed)

Hope to get some nice ideas :-)
   KreAture

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\06\02@220653 by Kyrre Aalerud

flavicon
face
Arrgh!  In my eagerness to get this to work, I also forgot that I need 2 pins for the temp measuring too :-(((
Enyone have some code that works ?  I guess I can live with serial if nothing else :-(
BTW: I want to run the PIC at either 4 or 10 MHz...

   KreAture

{Original Message removed}

2001\06\02@232557 by James Lee Williams

flavicon
face
Have you gotten the basic interface to work yet?  What OS environment
are you using to read and send the data and what API's.  Are you using
the negotiation protocol to establish the ECP mode transfer?

Regards,

James


{Original Message removed}

2001\06\02@233229 by James Lee Williams

flavicon
face
Pin 15(nError,nFault) is user defineable for ECP and can be used to
indicate that data is available for the host.  The host can then
periodically check this pin (Status3).  If programming in windows
environment, the you use DeviceIoControl to get access to this bit.

{Original Message removed}

2001\06\03@100628 by Kyrre Aalerud
flavicon
face
So, in other words... I can have the software tell the port to poll for data ?

----- Original Message ----- From: "James Lee Williams" <spam_OUTjlwTakeThisOuTspamCREDITVIEW.NET>
To: <.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU>
Sent: Sunday, June 03, 2001 5:30 AM
Subject: Re: [PICLIST] [PIC] ECP paralell port interfacing :-)


Pin 15(nError,nFault) is user defineable for ECP and can be used to
indicate that data is available for the host.  The host can then
periodically check this pin (Status3).  If programming in windows
environment, the you use DeviceIoControl to get access to this bit.

{Original Message removed}

2001\06\03@101046 by Kyrre Aalerud

flavicon
face
I am going to work within w2k and w98.
I haven't tested the interface, but the software for the pic is all done.  (Atleast the stage for testing the comm-protocol)
The code is not much longer than the pseudo :-)
And, it too is frequency independent :-)

To tell the host that i got data for it, is why i need that PeriphRequest... (15)
This will allow my circuit to tell the comp that "hey, there's data for you, come and get it!"


----- Original Message ----- From: "James Lee Williams" <jlwspamKILLspamCREDITVIEW.NET>
To: <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>
Sent: Sunday, June 03, 2001 5:26 AM
Subject: Re: [PICLIST] [PIC] ECP paralell port interfacing :-)


Have you gotten the basic interface to work yet?  What OS environment
are you using to read and send the data and what API's.  Are you using
the negotiation protocol to establish the ECP mode transfer?

Regards,

James


{Original Message removed}

2001\06\04@084403 by Edson Brusque

face
flavicon
face
Hello Kyrre,

> Arrgh!  In my eagerness to get this to work, I also forgot that I need 2
pins for the temp measuring too :-(((
> Enyone have some code that works ?  I guess I can live with serial if
nothing else :-(
> BTW: I want to run the PIC at either 4 or 10 MHz...

   have you thought about using a PIC16F627? Think of it as a 16F84 on
esteroids. :) It does have built-in USART among other things and it's
cheaper than a F84.

   Best regards,

   Brusque

-----------------------------------
Edson Brusque
Research and Development
C.I.Tronics Lighting Designers Ltda
(47) 323-2138  /  (47) 9993-6453
Blumenau  -  SC  -  Brazil
http://www.citronics.com.br
-----------------------------------

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2001\06\04@102259 by Kyrre Aalerud

flavicon
face
Hmm, how big is it ?

----- Original Message ----- From: "Edson Brusque" <ebrusquespamspam_OUTTERRA.COM.BR>
To: <@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
Sent: Monday, June 04, 2001 2:28 PM
Subject: Re: [PICLIST] [PIC] ECP paralell port interfacing :-)


{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2001\06\05@104756 by Edson Brusque

face
flavicon
face
> Hmm, how big is it ?

   18 pins, as an F84.

   Regards,

   Brusque

-----------------------------------
Edson Brusque
Research and Development
C.I.Tronics Lighting Designers Ltda
(47) 323-2138  /  (47) 9993-6453
Blumenau  -  SC  -  Brazil
http://www.citronics.com.br
-----------------------------------

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...