RE: (slightly OT:) Parallel port question

ncoplin_at_orbeng.com
Date: 2003-10-10 07:34:19

Hello All,

-----Original Message-----
From: Davison, Lee 
>> There must be a way to protect the parallel port using simple components.
>There is, simply connect a resistor in series >with each bi-directional
line
>you wish to protect. A value of 180 to 220 
>ohms should work.

I would agree with this method as the simple approach, however my experience
so far is with software handshaking only and make sure your routines are
robust. The problem with a tri-stating buffer etc is it will either be under
software control (on the PC side) or reset control on the "gadget" side.

I've been through the issue recently for 64HDD/Pro/GEOS/DriveGhost code
(Commodore specific details below):

Whilst developing /debugging the new Bi-Directional PwrLoad support I'm sure
I had bus contentions at various stages (due to development bugs). However,
I never fried the LPT or the userport CIA - lucky perhaps... The
recommendation for Commodore users trying this is always reset the C64 first
as it will put the CIA into input mode. If your software doesn't hang (and
any "good" product should not) the bus contention will never arise if the
handshaking confirms (not just tells) what the other side is doing. To be on
the safer side, only momentarily switch the CIA into output mode, then
switch it back... simple dec$dd03/inc$dd03

And.... check that the LPT supports input mode... if it doesn't the PC must
tell the C64 to abort!!!

In the beginning I thought about connecting the ATN line (also available on
the userport) to a 74xxx buffer chip... but didn't take it further.

- Nick


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Your Engineering Solutions Provider
http://www.orbeng.com.au/orbital/engineeringServices/engServices.htm
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PLEASE TAKE NOTE:

The contents of this email (including any attachments) may be
privileged and confidential. Any unauthorised use of the contents
is expressly prohibited. If you have received this email in error,
please advise us immediately (you can contact us by telephone
on +61 8 9441 2311 by reverse charge) and then permanently
delete this email together with any attachments. We appreciate
your co-operation.

Whilst Orbital endeavours to take reasonable care to ensure
that this email and any attachments are free from viruses or other
defects, Orbital does not represent or warrant that such is explicitly
the case

(C) 2003: Orbital Engine Company (Australia) PTY LTD and its
affiliates



       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.