Unix Technical Forum

Configure 2nd Parallel Port - how?

This is a discussion on Configure 2nd Parallel Port - how? within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm running Fedora Core 2 (i686), kernel 2.67-1.494.2.2. The PC has a motherboard Parallel Port at I/O port 0x378. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:28 AM
Charles Sullivan
 
Posts: n/a
Default Configure 2nd Parallel Port - how?

I'm running Fedora Core 2 (i686), kernel 2.67-1.494.2.2.

The PC has a motherboard Parallel Port at I/O port 0x378.

I installed a PCI Parallel Port add-on card for some control
(not printing) applications. Kudzu automatically
configured parport1 at I/O port 0x9800 per the following
output from '/sbin/lspci -v':

02:02.0 Communication controller: NetMos Technology: Unknown device 9805 (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
Flags: medium devsel, IRQ 9
I/O ports at 9800
I/O ports at 9c00 [size=8]
I/O ports at a000 [size=8]
I/O ports at a400 [size=8]
I/O ports at a800 [size=8]
I/O ports at ac00 [size=16]

Port 0x9800 works fine for some apps, but other apps require an
I/O port address below 0x3FF.

How can I configure parport1 for I/O port 0x278 (as it would be
jumper-configured if this card were on an ISA bus)?

Thanks for your help.

Regards,
Charles Sullivan



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:28 AM
Randy McLaughlin
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

"Charles Sullivan" <cwsulliv@triad.rr.com> wrote in message
newsan.2005.04.21.00.17.35.610273@triad.rr.com.. .
> I'm running Fedora Core 2 (i686), kernel 2.67-1.494.2.2.
>
> The PC has a motherboard Parallel Port at I/O port 0x378.
>
> I installed a PCI Parallel Port add-on card for some control
> (not printing) applications. Kudzu automatically
> configured parport1 at I/O port 0x9800 per the following
> output from '/sbin/lspci -v':
>
> 02:02.0 Communication controller: NetMos Technology: Unknown device 9805
> (rev 01)
> Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
> Flags: medium devsel, IRQ 9
> I/O ports at 9800
> I/O ports at 9c00 [size=8]
> I/O ports at a000 [size=8]
> I/O ports at a400 [size=8]
> I/O ports at a800 [size=8]
> I/O ports at ac00 [size=16]
>
> Port 0x9800 works fine for some apps, but other apps require an
> I/O port address below 0x3FF.
>
> How can I configure parport1 for I/O port 0x278 (as it would be
> jumper-configured if this card were on an ISA bus)?
>
> Thanks for your help.
>
> Regards,
> Charles Sullivan


You follow the exact same proceedure as if it was windoze: You don't, it's
a plug and pray device - you get a parallel port that's all you don't get
the ISA options.

Randy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 08:28 AM
Tim
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

On Thu, 21 Apr 2005 00:17:40 GMT,
Charles Sullivan <cwsulliv@triad.rr.com> posted:

> The PC has a motherboard Parallel Port at I/O port 0x378.
>
> I installed a PCI Parallel Port add-on card for some control
> (not printing) applications. Kudzu automatically
> configured parport1 at I/O port 0x9800 per the following
> output from '/sbin/lspci -v':
>
> 02:02.0 Communication controller: NetMos Technology: Unknown device 9805 (rev 01)
> Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
> Flags: medium devsel, IRQ 9
> I/O ports at 9800
> I/O ports at 9c00 [size=8]
> I/O ports at a000 [size=8]
> I/O ports at a400 [size=8]
> I/O ports at a800 [size=8]
> I/O ports at ac00 [size=16]
>
> Port 0x9800 works fine for some apps, but other apps require an
> I/O port address below 0x3FF.
>
> How can I configure parport1 for I/O port 0x278 (as it would be
> jumper-configured if this card were on an ISA bus)?


Can you reconfigure the motherboard port for what you need, and use the
ports the other way around?

I should have thought, that by now, only assembly language programming
would be addressing hardware correctly. Other things would be using the
operating system to access *the port*, and let the OS worry about how that
works.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:28 AM
Charles Sullivan
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

On Thu, 21 Apr 2005 21:06:59 +0930, Tim wrote:

> On Thu, 21 Apr 2005 00:17:40 GMT,
> Charles Sullivan <cwsulliv@triad.rr.com> posted:
>
>> The PC has a motherboard Parallel Port at I/O port 0x378.
>>
>> I installed a PCI Parallel Port add-on card for some control
>> (not printing) applications. Kudzu automatically
>> configured parport1 at I/O port 0x9800 per the following
>> output from '/sbin/lspci -v':
>>
>> 02:02.0 Communication controller: NetMos Technology: Unknown device 9805 (rev 01)
>> Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
>> Flags: medium devsel, IRQ 9
>> I/O ports at 9800
>> I/O ports at 9c00 [size=8]
>> I/O ports at a000 [size=8]
>> I/O ports at a400 [size=8]
>> I/O ports at a800 [size=8]
>> I/O ports at ac00 [size=16]
>>
>> Port 0x9800 works fine for some apps, but other apps require an
>> I/O port address below 0x3FF.
>>
>> How can I configure parport1 for I/O port 0x278 (as it would be
>> jumper-configured if this card were on an ISA bus)?

>
> Can you reconfigure the motherboard port for what you need, and use the
> ports the other way around?
>
> I should have thought, that by now, only assembly language programming
> would be addressing hardware correctly. Other things would be using the
> operating system to access *the port*, and let the OS worry about how that
> works.


Thanks for your response Tim.

Yes, I could use the motherboard parallel port, but I need direct
port access and I'm connecting some experimental circuitry to the
port. I'm willing to risk smoking this (relatively inexpensive)
add-on card but am reluctant to risk my motherboard.

Regards,
Charles Sullivan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:28 AM
Charles Sullivan
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

On Wed, 20 Apr 2005 19:47:07 -0500, Randy McLaughlin wrote:

> "Charles Sullivan" <cwsulliv@triad.rr.com> wrote in message
> newsan.2005.04.21.00.17.35.610273@triad.rr.com.. .
>> I'm running Fedora Core 2 (i686), kernel 2.67-1.494.2.2.
>>
>> The PC has a motherboard Parallel Port at I/O port 0x378.
>>
>> I installed a PCI Parallel Port add-on card for some control
>> (not printing) applications. Kudzu automatically
>> configured parport1 at I/O port 0x9800 per the following
>> output from '/sbin/lspci -v':
>>
>> 02:02.0 Communication controller: NetMos Technology: Unknown device 9805
>> (rev 01)
>> Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
>> Flags: medium devsel, IRQ 9
>> I/O ports at 9800
>> I/O ports at 9c00 [size=8]
>> I/O ports at a000 [size=8]
>> I/O ports at a400 [size=8]
>> I/O ports at a800 [size=8]
>> I/O ports at ac00 [size=16]
>>
>> Port 0x9800 works fine for some apps, but other apps require an
>> I/O port address below 0x3FF.
>>
>> How can I configure parport1 for I/O port 0x278 (as it would be
>> jumper-configured if this card were on an ISA bus)?
>>
>> Thanks for your help.
>>
>> Regards,
>> Charles Sullivan

>
> You follow the exact same proceedure as if it was windoze: You don't, it's
> a plug and pray device - you get a parallel port that's all you don't get
> the ISA options.
>
> Randy


Thanks for your response Randy.

I guess I don't understand how this Plug 'N Pray stuff works.

In any event, I'm very surprised to find that Linux isn't powerful
enough to remap the port address to another unused address.

Regards,
Charles Sullivan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 08:28 AM
Randy McLaughlin
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

"Charles Sullivan" <cwsulliv@triad.rr.com> wrote in message
newsan.2005.04.21.18.22.44.288823@triad.rr.com.. .
<snip>
>> You follow the exact same proceedure as if it was windoze: You don't,
>> it's
>> a plug and pray device - you get a parallel port that's all you don't get
>> the ISA options.
>>
>> Randy

>
> Thanks for your response Randy.
>
> I guess I don't understand how this Plug 'N Pray stuff works.
>
> In any event, I'm very surprised to find that Linux isn't powerful
> enough to remap the port address to another unused address.
>
> Regards,
> Charles Sullivan



There is no such ability in PC's. No OS gives that ability.

If you have an ISA slot you can go that route otherwise you must use Plug
and Pray.

As per your other post stating that you don't want to fry your MB you have
two easy choices:

Add a buffer to your circuit (always smart).

Buy an 8051 USB adapter which is designed for design work ($40 and up).


Randy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 08:29 AM
Tim
 
Posts: n/a
Default Re: Configure 2nd Parallel Port - how?

On Thu, 21 Apr 2005 18:23:22 GMT,
Charles Sullivan <cwsulliv@triad.rr.com> posted:

> Yes, I could use the motherboard parallel port, but I need direct
> port access and I'm connecting some experimental circuitry to the
> port. I'm willing to risk smoking this (relatively inexpensive)
> add-on card but am reluctant to risk my motherboard.


If it's an experiment (i.e. something temporary), can you try disabling the
motherboard port, and seeing if your port card ends up with the addressing
that you need to play way?

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com