7i52 and 7i43 strang2e/incoherent mapping of ports

More
21 Sep 2014 02:24 #51384 by ekacnet
Hello All,

I'm not sure if it's the right place to post this, if not please pardon me.

My father has an atom MB and also some Thinkpad with Linux CNC 2.5.1 installed on it and there is a 7i43 connected to the parallel port. He also has a 7i52 card in order to pilot a 8i20.
The configuration of the 7i43/7i52 was done in Pncconf and when we look at the the dmesg it didn't look correct: the mapping of the port seems not to match what the 7i52 is expecting (according the the PDF specs of the card):
[ 28.696386] groups: 0-1 (cpu_power = 1178)
[ 105.387247] I-pipe: Domain RTAI registered.
[ 105.387276] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 105.387288] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 105.387401] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 105.387413] PIPELINE layers:
[ 105.387425] f80e0e20 9ac15d93 RTAI 200
[ 105.387435] c085cb20 0 Linux 100
[ 105.493979] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 105.494537] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 105.494571] RTAI[sched]: hard timer type/freq = APIC/8312420(Hz); default timing: periodic; linear timed lists.
[ 105.494594] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1595868000 hz.
[ 105.494611] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 105.494877] RTAI[usi]: enabled.
[ 105.815539] RTAI[math]: loaded.
[ 106.180351] hm2: loading Mesa HostMot2 driver version 0.15
[ 106.199519] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
[ 106.202168] hm2_7i43.0: firmware: requesting hm2/7i43-2/SVST4_4.BIT
[ 106.545450] hm2/hm2_7i43.0: 48 I/O Pins used:
[ 106.545478] hm2/hm2_7i43.0: IO Pin 000 (P4-01): IOPort
[ 106.545498] hm2/hm2_7i43.0: IO Pin 001 (P4-03): IOPort
[ 106.545516] hm2/hm2_7i43.0: IO Pin 002 (P4-05): Encoder #0, pin B (Input)
[ 106.545532] hm2/hm2_7i43.0: IO Pin 003 (P4-07): Encoder #0, pin A (Input)
[ 106.545545] hm2/hm2_7i43.0: IO Pin 004 (P4-09): IOPort
[ 106.545560] hm2/hm2_7i43.0: IO Pin 005 (P4-11): Encoder #0, pin Index (Input)
[ 106.545574] hm2/hm2_7i43.0: IO Pin 006 (P4-13): IOPort
[ 106.545587] hm2/hm2_7i43.0: IO Pin 007 (P4-15): IOPort
[ 106.545599] hm2/hm2_7i43.0: IO Pin 008 (P4-17): IOPort
[ 106.545612] hm2/hm2_7i43.0: IO Pin 009 (P4-19): IOPort
[ 106.545625] hm2/hm2_7i43.0: IO Pin 010 (P4-21): IOPort
[ 106.545638] hm2/hm2_7i43.0: IO Pin 011 (P4-23): IOPort
[ 106.545651] hm2/hm2_7i43.0: IO Pin 012 (P4-25): IOPort
[ 106.545664] hm2/hm2_7i43.0: IO Pin 013 (P4-27): IOPort
[ 106.545676] hm2/hm2_7i43.0: IO Pin 014 (P4-29): IOPort
[ 106.545689] hm2/hm2_7i43.0: IO Pin 015 (P4-31): IOPort
[ 106.545702] hm2/hm2_7i43.0: IO Pin 016 (P4-33): IOPort
[ 106.545715] hm2/hm2_7i43.0: IO Pin 017 (P4-35): IOPort
[ 106.545728] hm2/hm2_7i43.0: IO Pin 018 (P4-37): IOPort
[ 106.545741] hm2/hm2_7i43.0: IO Pin 019 (P4-39): IOPort
[ 106.545753] hm2/hm2_7i43.0: IO Pin 020 (P4-41): IOPort
[ 106.545766] hm2/hm2_7i43.0: IO Pin 021 (P4-43): IOPort
[ 106.545779] hm2/hm2_7i43.0: IO Pin 022 (P4-45): IOPort
[ 106.545792] hm2/hm2_7i43.0: IO Pin 023 (P4-47): IOPort
[ 106.545806] hm2/hm2_7i43.0: IO Pin 024 (P3-01): StepGen #0, pin Step (Output)
[ 106.545822] hm2/hm2_7i43.0: IO Pin 025 (P3-03): StepGen #0, pin Direction (Output)
[ 106.545837] hm2/hm2_7i43.0: IO Pin 026 (P3-05): IOPort
[ 106.545849] hm2/hm2_7i43.0: IO Pin 027 (P3-07): IOPort
[ 106.545862] hm2/hm2_7i43.0: IO Pin 028 (P3-09): IOPort
[ 106.545875] hm2/hm2_7i43.0: IO Pin 029 (P3-11): IOPort
[ 106.545890] hm2/hm2_7i43.0: IO Pin 030 (P3-13): StepGen #1, pin Step (Output)
[ 106.545906] hm2/hm2_7i43.0: IO Pin 031 (P3-15): StepGen #1, pin Direction (Output)
[ 106.545920] hm2/hm2_7i43.0: IO Pin 032 (P3-17): IOPort
[ 106.545933] hm2/hm2_7i43.0: IO Pin 033 (P3-19): IOPort
[ 106.545946] hm2/hm2_7i43.0: IO Pin 034 (P3-21): IOPort
[ 106.545958] hm2/hm2_7i43.0: IO Pin 035 (P3-23): IOPort
[ 106.545973] hm2/hm2_7i43.0: IO Pin 036 (P3-25): StepGen #2, pin Step (Output)
[ 106.545989] hm2/hm2_7i43.0: IO Pin 037 (P3-27): StepGen #2, pin Direction (Output)
[ 106.546004] hm2/hm2_7i43.0: IO Pin 038 (P3-29): IOPort
[ 106.546016] hm2/hm2_7i43.0: IO Pin 039 (P3-31): IOPort
[ 106.546029] hm2/hm2_7i43.0: IO Pin 040 (P3-33): IOPort
[ 106.546042] hm2/hm2_7i43.0: IO Pin 041 (P3-35): IOPort
[ 106.546055] hm2/hm2_7i43.0: IO Pin 042 (P3-37): IOPort
[ 106.546068] hm2/hm2_7i43.0: IO Pin 043 (P3-39): IOPort
[ 106.546080] hm2/hm2_7i43.0: IO Pin 044 (P3-41): IOPort
[ 106.546093] hm2/hm2_7i43.0: IO Pin 045 (P3-43): IOPort
[ 106.546106] hm2/hm2_7i43.0: IO Pin 046 (P3-45): IOPort
[ 106.546119] hm2/hm2_7i43.0: IO Pin 047 (P3-47): IOPort
[ 106.546308] hm2/hm2_7i43.0: registered
[ 106.546323] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) found
[ 127.360069] hm2_7i43.0: releasing board
[ 127.360113] hm2/hm2_7i43.0: unregistered
[ 127.360223] hm2_7i43: driver unloaded
[ 127.371620] hm2: unloading
[ 127.593987] RTAI[math]: unloaded.
[ 127.809115] SCHED releases registered named ALIEN RTGLBH
[ 127.840915] RTAI[malloc]: unloaded.
[ 127.940064] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 127.951433] I-pipe: Domain RTAI unregistered.
[ 127.951592] RTAI[hal]: unmounted.
[ 139.887991] I-pipe: Domain RTAI registered.
[ 139.888159] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 139.888172] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 139.888289] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 139.888300] PIPELINE layers:
[ 139.888312] f9115e20 9ac15d93 RTAI 200
[ 139.888322] c085cb20 0 Linux 100
[ 139.988342] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 139.988919] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 139.988954] RTAI[sched]: hard timer type/freq = APIC/8312420(Hz); default timing: periodic; linear timed lists.
[ 139.988978] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1595868000 hz.
[ 139.988995] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 139.989274] RTAI[usi]: enabled.
[ 140.310223] RTAI[math]: loaded.
[ 140.573732] hm2: loading Mesa HostMot2 driver version 0.15
[ 140.592282] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
[ 140.594907] hm2_7i43.0: firmware: requesting hm2/7i43-2/SV8.BIT
[ 140.930945] hm2/hm2_7i43.0: 48 I/O Pins used:
[ 140.930968] hm2/hm2_7i43.0: IO Pin 000 (P4-01): Encoder #1, pin B (Input)
[ 140.930985] hm2/hm2_7i43.0: IO Pin 001 (P4-03): Encoder #1, pin A (Input)
[ 140.931000] hm2/hm2_7i43.0: IO Pin 002 (P4-05): Encoder #0, pin B (Input)
[ 140.931015] hm2/hm2_7i43.0: IO Pin 003 (P4-07): Encoder #0, pin A (Input)
[ 140.931031] hm2/hm2_7i43.0: IO Pin 004 (P4-09): Encoder #1, pin Index (Input)
[ 140.931046] hm2/hm2_7i43.0: IO Pin 005 (P4-11): Encoder #0, pin Index (Input)
[ 140.931063] hm2/hm2_7i43.0: IO Pin 006 (P4-13): PWMGen #1, pin Out0 (PWM or Up) (Output)
[ 140.931080] hm2/hm2_7i43.0: IO Pin 007 (P4-15): PWMGen #0, pin Out0 (PWM or Up) (Output)
[ 140.931106] hm2/hm2_7i43.0: IO Pin 008 (P4-17): PWMGen #1, pin Out1 (Dir or Down) (Output)
[ 140.931123] hm2/hm2_7i43.0: IO Pin 009 (P4-19): PWMGen #0, pin Out1 (Dir or Down) (Output)
[ 140.931140] hm2/hm2_7i43.0: IO Pin 010 (P4-21): PWMGen #1, pin Not-Enable (Output)
[ 140.931157] hm2/hm2_7i43.0: IO Pin 011 (P4-23): PWMGen #0, pin Not-Enable (Output)
[ 140.931171] hm2/hm2_7i43.0: IO Pin 012 (P4-25): IOPort
[ 140.931184] hm2/hm2_7i43.0: IO Pin 013 (P4-27): IOPort
[ 140.931197] hm2/hm2_7i43.0: IO Pin 014 (P4-29): IOPort
[ 140.931210] hm2/hm2_7i43.0: IO Pin 015 (P4-31): IOPort
[ 140.931223] hm2/hm2_7i43.0: IO Pin 016 (P4-33): IOPort
[ 140.931235] hm2/hm2_7i43.0: IO Pin 017 (P4-35): IOPort
[ 140.931248] hm2/hm2_7i43.0: IO Pin 018 (P4-37): IOPort
[ 140.931261] hm2/hm2_7i43.0: IO Pin 019 (P4-39): IOPort
[ 140.931274] hm2/hm2_7i43.0: IO Pin 020 (P4-41): IOPort
[ 140.931287] hm2/hm2_7i43.0: IO Pin 021 (P4-43): IOPort
[ 140.931300] hm2/hm2_7i43.0: IO Pin 022 (P4-45): IOPort
[ 140.931312] hm2/hm2_7i43.0: IO Pin 023 (P4-47): IOPort
[ 140.931325] hm2/hm2_7i43.0: IO Pin 024 (P3-01): IOPort
[ 140.931338] hm2/hm2_7i43.0: IO Pin 025 (P3-03): IOPort
[ 140.931351] hm2/hm2_7i43.0: IO Pin 026 (P3-05): IOPort
[ 140.931363] hm2/hm2_7i43.0: IO Pin 027 (P3-07): IOPort
[ 140.931376] hm2/hm2_7i43.0: IO Pin 028 (P3-09): IOPort
[ 140.931389] hm2/hm2_7i43.0: IO Pin 029 (P3-11): IOPort
[ 140.931402] hm2/hm2_7i43.0: IO Pin 030 (P3-13): IOPort
[ 140.931414] hm2/hm2_7i43.0: IO Pin 031 (P3-15): IOPort
[ 140.931427] hm2/hm2_7i43.0: IO Pin 032 (P3-17): IOPort
[ 140.931440] hm2/hm2_7i43.0: IO Pin 033 (P3-19): IOPort
[ 140.931453] hm2/hm2_7i43.0: IO Pin 034 (P3-21): IOPort
[ 140.931466] hm2/hm2_7i43.0: IO Pin 035 (P3-23): IOPort
[ 140.931478] hm2/hm2_7i43.0: IO Pin 036 (P3-25): IOPort
[ 140.931491] hm2/hm2_7i43.0: IO Pin 037 (P3-27): IOPort
[ 140.931504] hm2/hm2_7i43.0: IO Pin 038 (P3-29): IOPort
[ 140.931517] hm2/hm2_7i43.0: IO Pin 039 (P3-31): IOPort
[ 140.931530] hm2/hm2_7i43.0: IO Pin 040 (P3-33): IOPort
[ 140.931542] hm2/hm2_7i43.0: IO Pin 041 (P3-35): IOPort
[ 140.931555] hm2/hm2_7i43.0: IO Pin 042 (P3-37): IOPort
[ 140.931568] hm2/hm2_7i43.0: IO Pin 043 (P3-39): IOPort
[ 140.931581] hm2/hm2_7i43.0: IO Pin 044 (P3-41): IOPort
[ 140.931594] hm2/hm2_7i43.0: IO Pin 045 (P3-43): IOPort
[ 140.931606] hm2/hm2_7i43.0: IO Pin 046 (P3-45): IOPort
[ 140.931619] hm2/hm2_7i43.0: IO Pin 047 (P3-47): IOPort
[ 140.931807] hm2/hm2_7i43.0: registered
[ 140.931821] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) found
[ 142.354478] hm2_7i43.0: releasing board
[ 142.354522] hm2/hm2_7i43.0: unregistered
[ 142.354628] hm2_7i43: driver unloaded
[ 142.365959] hm2: unloading
[ 142.528414] RTAI[math]: unloaded.
[ 142.740384] SCHED releases registered named ALIEN RTGLBH
[ 142.772921] RTAI[malloc]: unloaded.
[ 142.872084] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 142.883417] I-pipe: Domain RTAI unregistered.
[ 142.883577] RTAI[hal]: unmounted.

So the 7i43 card is configured for having:
[ 140.930968] hm2/hm2_7i43.0: IO Pin 000 (P4-01): Encoder #1, pin B (Input)
[ 140.930985] hm2/hm2_7i43.0: IO Pin 001 (P4-03): Encoder #1, pin A (Input)
[ 140.931000] hm2/hm2_7i43.0: IO Pin 002 (P4-05): Encoder #0, pin B (Input)
[ 140.931015] hm2/hm2_7i43.0: IO Pin 003 (P4-07): Encoder #0, pin A (Input)
But the documentation of the documentation of 7i52 says: P4-01 is an ioport to the 7i43 and P4-07 is the Mux so it's obvioulsy not correct.

I suspect that that firmware is not the right one, where should we look for the right one ?

Also there a question of how to really power this card, page 2 on the guide says:
"CABLE POWER/P1 POWER SELECTION
The 7I52 can get its operating power from the flat FPGA cable or from P1. For
testing and with very low power encoders, cable power can be used. W3 selects whether
cable power connects to the 7I52s 5V supply. If W3 is in the "RIGHT" position, cable
power is selected. If W3 is in the "LEFT" position, external 5V power must be supplied via
P1.

But Page 9 it is said:
" If W3 is on the left hand position, the controller cable will supply both the logic and
I/O power and P1 can remain unconnected. This mode can be used for testing with
perhaps a single encoder and single RS-422 channel, but it is suggested that W3 be
placed in the right hand position and I/O power be supplied via P1 for most applications"

It sounds like the opposite.


Any suggestion would be welcome knowing that the goal is to drive the 8i20 at the end (but it seems less risky to just try to get info from the encoder first).
Attachments:

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

More
23 Sep 2014 09:52 - 23 Sep 2014 09:53 #51469 by PCW
You will need to have a bitfile for the 7I43 that has the correct I/O
pinout for a 7I52

This will likely have a name like svss6_6.bit or svss6_6_7i52.bit

If you dont have such a file I can make one up

I will take a look at the 7i52 manual and fix the cable power jumper information
Last edit: 23 Sep 2014 09:53 by PCW.

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

More
23 Sep 2014 11:57 #51472 by ekacnet
hello,

Thanks for the quick update, no I don't have the firmware, I hardly remember how we got the initial firmware actually. So it would be very nice to get the firmware.

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

More
24 Sep 2014 03:23 #51507 by PCW
freeby.mesanet.com/svss6_6s.bit
is a config for 7i43-200 with a 7I52 daughtercard on P4

The 7i52 manual has been updated (now V 1.5)
and the cable power jumper text fixed
The following user(s) said Thank You: ekacnet

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

More
25 Sep 2014 03:09 #51549 by ekacnet
ok thanks for the quick update. Let us try, and then come back with the result.

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

Moderators: PCWjmelson
Time to create page: 0.149 seconds
Powered by Kunena Forum