Parallel Port trying EPP mode Chipset: SUN1989

More
08 Jan 2015 21:07 - 08 Jan 2015 21:08 #54769 by Daniel_Mueller
I an trying to set up the parallel port card in mode EPP to comunicate it with a FPGA. I got the parallel port:
Digitus parallel port. Chipset: 4037T-SUN1989 IC

Here is the output using the command lspci -v :

01:0f.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
Subsystem: SUNIX Co., Ltd. Device 0100
Flags: medium devsel, IRQ 15
I/O ports at cc00
I/O ports at c880
I/O ports at c800
Capabilities: [40] Power Management version 3

It does not say what mode is activated. I have tried the Willians code to set the ECP to EPP mode.

sudo ./epp cc00 c880 e
~~~~~
Base @ 0xcc00
Extended @ 0xc880
DPR: 0
DSR: 213
DCR: 4
EPPA: 162
EPPD: 162

CFA: 251
CFB: 0
ECR: 129
~~~~~
Setting mode to EPP
ECR: 129
_________________________

It doesnt work. Nor with: sudo ./epp cc00 c800 e
The result of lspci -v is the same.

This is unter LinuxCnC. I have tried also linux 8. Too many problems and it doesnt recognize the card and the driver doesnt work....Of course i have tried LinuxCnC and the FPGA card. Perhaps I have luck but not in any way. EPP mode fail.

Can this PCI work in EPP mode? I read this datasheet of other card ( Web-page ) and says no. Only on windows could the EPP mode work and it has the same ChipSet like my card.
Last edit: 08 Jan 2015 21:08 by Daniel_Mueller.

Please Log in or Create an account to join the conversation.

More
08 Jan 2015 22:20 - 08 Jan 2015 22:20 #54779 by ArcEye

Here is the output using the command lspci -v :

01:0f.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
Subsystem: SUNIX Co., Ltd. Device 0100
Flags: medium devsel, IRQ 15
I/O ports at cc00
I/O ports at c880
I/O ports at c800
Capabilities: [40] Power Management version 3


What does lspci -vv show? (2 v's)

I have a Sun 1888 card somewhere (the dualport one). It used to work fine under mach many years ago and I continued using until recently with LCNC but not in EPP mode, just to run a pendant controller.

The ports / registers are obviously set out differently to other cards like the NetMos

The standard method to trigger EPP is to write 0x80 to the port address + 0x402
The extended address (register) is 0x400 above the port

This is similar, but the extended address is obviously not fixed, so requires a specific second address then write 0x80 at that address + 2

Normally the port address is lower than the register, so it is more likely that the port is c800 or c880 than cc00
You also have 3 addresses on a single port card, so 1 will be irrelevant

Try sudo ./epp c800 c880 e and sudo ./epp c880 cc00 e

regards
Last edit: 08 Jan 2015 22:20 by ArcEye.

Please Log in or Create an account to join the conversation.

More
08 Jan 2015 22:58 #54782 by Daniel_Mueller
Nothing new after your sugestions. I will buy a Sun 1888 card. Thanks anyway!

Same output in both versions for sudo lspci -vv

01:0f.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
Subsystem: SUNIX Co., Ltd. Device 0100
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 15
Region 1: I/O ports at cc00
Region 2: I/O ports at c880
Region 3: I/O ports at c800
Capabilities: [40] Power Management version 3
Flags: PMEClk+ DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

Please Log in or Create an account to join the conversation.

More
08 Jan 2015 23:09 - 08 Jan 2015 23:58 #54784 by ArcEye

I will buy a Sun 1888 card.


I would contact whoever makes your FPGA card and see what they recommend (PCW, Jon or whoever)

As you will see from my FAQ, www.linuxcnc.org/index.php/english/forum...-parallel-port-cards
the Oxprom chipset was recommended ( I think by PCW for Mesa cards)

I added the windoze utility to set that to EPP at the foot of the page.

regards
Last edit: 08 Jan 2015 23:58 by ArcEye.

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum