Parallel port problems on new build; pins 14 and 16 not working for spindle

More
04 Jul 2019 12:55 #138621 by PCW
"epp" mode is in the hal_parport manual page, and works for me ( it loads anyway... )
The following user(s) said Thank You: trebuchetguy

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

More
04 Jul 2019 13:18 #138624 by andypugh
So it does!

linuxcnc.org/docs/2.8/html/man/man1/hal_parport.1.html

I suspect that it might still need to be set in the BIOS?
The following user(s) said Thank You: trebuchetguy

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

More
04 Jul 2019 14:18 #138625 by PCW
Setting it in the BIOS only works on built-in motherboard ports.

If the parallel port follows the standard register map, its possible to set
the mode with direct port access. Not sure how hal_parport does it.
I'm wondering if it uses a linux parport driver call which would fail
if the parallel port was not detected by the linux parport driver

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

More
04 Jul 2019 14:36 #138626 by andypugh

If the parallel port follows the standard register map, its possible to set
the mode with direct port access. Not sure how hal_parport does it.


Direct port output (outb)
github.com/LinuxCNC/linuxcnc/blob/master...s/hal_parport.c#L595

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

More
04 Jul 2019 15:19 #138628 by PCW
Yeah so why the error message?
I'll try to duplicate this but will need to buy a couple PP cards
Pretty sure I've thrown all the ones I had out when we moved

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

More
04 Jul 2019 16:51 #138633 by andypugh
Can you try loading just one p-port, then the other?

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

More
04 Jul 2019 17:05 #138635 by trebuchetguy
Will do! It will probably be tomorrow before I get a chance to.

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

More
05 Jul 2019 02:32 #138661 by trebuchetguy
Same error message when setting a single parallel port with epp mode, except that it only shows the error message once.

I'll work on putting on some pull up resistors on those pins now.

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

More
05 Jul 2019 04:56 #138672 by PCW

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

More
06 Jul 2019 00:39 #138713 by trebuchetguy

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

Time to create page: 0.082 seconds
Powered by Kunena Forum