- Posts: 44
- Thank you received: 0
5i25 + 7i85s +....
I think i have wired it correctly. Now i´m messing with the HAL file.
The thing is that i dont have a specific PIN for the TX6 and TX7, these are the phisical outputs of my 7i85s that i want to use for the ENABLE and PWM purpose of the SPIN1X.
How are they labeled in the HAL configuration?? There appear position-cmd and velocity-cmd for example, but i guess they aren´t the PINS i have to use.
Any advice??
Thank you again!
EDIT= In the manual of the 7i85s i´ve seen the GPIO´s of the card. It works nice. Thank you!!
Please Log in to join the conversation.
what FPGA configuration are you using?
You can read out the FPGA pinout with:
sudo mesaflash --device 5i25 --readhmid
Please Log in to join the conversation.
My FPGA system is 5i25+7i85s. I have connected to it 3 encoders and 3 motors. So i have DIF OUT 6,7 free.
I have run the command :
sudo mesaflash --device 5i25 --readhmid
and it returns
sudo : mesaflash : command not found
The LED´s of the ENABLE and DIR are lighting in the SPIN1X. I have wired the ENABLE PIN of the SPIN1X to the PIN TX7 of the 7i85s. In the manual says that this TX7 PIN is the IO19, but i switch on off this pin and the LED doesnt switch off, so i guess that this PIN is always 0.
What am i doing wrong??
Thank you!
Please Log in to join the conversation.
Configuration pin-out:
IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort SSerial 0 RXData1 (In)
14 1 IOPort SSerial 0 TXData1 (Out)
2 2 IOPort StepGen 3 Step/Table1 (Out)
15 3 IOPort StepGen 3 Dir/Table2 (Out)
3 4 IOPort StepGen 2 Step/Table1 (Out)
16 5 IOPort StepGen 2 Dir/Table2 (Out)
4 6 IOPort StepGen 1 Step/Table1 (Out)
17 7 IOPort StepGen 1 Dir/Table2 (Out)
5 8 IOPort StepGen 0 Step/Table1 (Out)
6 9 IOPort StepGen 0 Dir/Table2 (Out)
7 10 IOPort MuxedQCountSel 0 MuxSel0 (Out)
8 11 IOPort MuxedQCount 0 MuxQ-A (In)
9 12 IOPort MuxedQCount 0 MuxQ-B (In)
10 13 IOPort MuxedQCount 0 MuxQ-IDX (In)
11 14 IOPort MuxedQCount 1 MuxQ-A (In)
12 15 IOPort MuxedQCount 1 MuxQ-B (In)
13 16 IOPort MuxedQCount 1 MuxQ-IDX (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 RXData2 (In)
14 18 IOPort SSerial 0 TXData2 (Out)
2 19 IOPort StepGen 7 Step/Table1 (Out)
15 20 IOPort StepGen 7 Dir/Table2 (Out)
3 21 IOPort StepGen 6 Step/Table1 (Out)
16 22 IOPort StepGen 6 Dir/Table2 (Out)
4 23 IOPort StepGen 5 Step/Table1 (Out)
17 24 IOPort StepGen 5 Dir/Table2 (Out)
5 25 IOPort StepGen 4 Step/Table1 (Out)
6 26 IOPort StepGen 4 Dir/Table2 (Out)
7 27 IOPort MuxedQCountSel 4 MuxSel0 (Out)
8 28 IOPort MuxedQCount 2 MuxQ-A (In)
9 29 IOPort MuxedQCount 2 MuxQ-B (In)
10 30 IOPort MuxedQCount 2 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 3 MuxQ-A (In)
12 32 IOPort MuxedQCount 3 MuxQ-B (In)
13 33 IOPort MuxedQCount 3 MuxQ-IDX (In)
As i understand im trying to use the IO19 for P2 and IO2 for P3, which is the HAL name for these PINS?? Which do i have to use??
Thank you!!
EDIT--> In the HAL file do i have to put num_stepgens=4 to activate these PINS? or do i let as it is num_stepgens=3??
Please Log in to join the conversation.
casetero wrote: 1 17 IOPort SSerial 0 RXData2 (In)
14 18 IOPort SSerial 0 TXData2 (Out)
2 19 IOPort StepGen 7 Step/Table1 (Out)
15 20 IOPort StepGen 7 Dir/Table2 (Out)
As i understand im trying to use the IO19 for P2 and IO2 for P3, which is the HAL name for these PINS??
Assuming you mean 19 and 20:
setp hm2_5i25.0.gpio.019.is-output 1
setp hm2_5i25.0.gpio.020.is-output 1
net signalname some.hal.pin => hm2_5i25.0.gpio.019.out
net anothersignalname another.hal.pin => hm2_5i25.0.gpio.020.out
In the HAL file do i have to put num_stepgens=4 to activate these PINS? or do i let as it is num_stepgens=3??
4. Otherwise 0 would mean 1.
Please Log in to join the conversation.
Please Log in to join the conversation.
FPGA PRIM I/0 -->IO2
FPGA SEC I/0 -->IO19
For the function TX7. In my system the SPIN1X is wired to the 7i85s so i guess the GPIO IO19 is the HAL PIN i have to use. But maybe im guessing too much.
The question of the num_stepgens=4 or 3, is because i have 3 motors in my system so i have always had num_stepgens=3, but i dont know if have to change to 4 in order to activate this PIN, but as my purpose is to use this PIN as GPIO i dont know if i have to add another stepgen to my HAL file.
Thank you!!
Please Log in to join the conversation.
Where do you want the SPINX1 to connect (P2 or P3)
In any case, the firmware you have will not work with the SPINX1 because the SPINX1 requires a PWM generator
so you must use 5i25_7i85sspx2.bit or something like it that has both stepgens and PWMgens
Please Log in to join the conversation.
I guess i need to use the the hm2_5i25.0.gpio.019.out, but im not sure. Do i have to activate another stepgen in the HAL file to make it usable??
I have downloaded the 5i25_7i85sspx2.bit file. How can i install it?
Thank you!
Please Log in to join the conversation.
casetero wrote: I guess i need to use the the hm2_5i25.0.gpio.019.out, but im not sure. Do i have to activate another stepgen in the HAL file to make it usable??
No, you have to specifically _disable_ the stepgen to make the pin available as GPIO.
So, with num_stepgens = 3 the pins allocated to stepgens 4,5,6 and 7 become available as GPIO pins.
Please Log in to join the conversation.
