My Mesa 5i25 board has a problem with GPIO.
- thang
- Offline
- Elite Member
-
Less
More
- Posts: 196
- Thank you received: 11
13 Apr 2018 04:55 #108930
by thang
My Mesa 5i25 board has a problem with GPIO. was created by thang
Hi,
Today when i had checked my mesa 5i25, i saw a weird thing. I just check gpio and see some pins are not pull-up.
here is my hal command:
loadrt hostmot2
loadrt hm2_pci
loadrt threads name2=test2 period2=1000000
addf hm2_5i25.0.write test2
addf hm2_5i25.0.read test2
loadusr halshow
start
And my bitfile and vhd file:
these pins were used to read encoders.
now i still can read signal by these pins.
Today when i had checked my mesa 5i25, i saw a weird thing. I just check gpio and see some pins are not pull-up.
here is my hal command:
loadrt hostmot2
loadrt hm2_pci
loadrt threads name2=test2 period2=1000000
addf hm2_5i25.0.write test2
addf hm2_5i25.0.read test2
loadusr halshow
start
And my bitfile and vhd file:
these pins were used to read encoders.
now i still can read signal by these pins.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18855
- Thank you received: 5208
13 Apr 2018 13:22 #108943
by PCW
Replied by PCW on topic My Mesa 5i25 board has a problem with GPIO.
If you read this with nothing connected to the 5I25, its likely means that either the FPGA or the bus switch
has been damaged by excessive input voltages, that is, voltages outside of the range -0.5V to +7V.
This is _very_ easy to do of you wire noisy devices directly to FPGA pins.
has been damaged by excessive input voltages, that is, voltages outside of the range -0.5V to +7V.
This is _very_ easy to do of you wire noisy devices directly to FPGA pins.
The following user(s) said Thank You: thang, DoWerna
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
-
Less
More
- Posts: 196
- Thank you received: 11
13 Apr 2018 15:49 #108949
by thang
Replied by thang on topic My Mesa 5i25 board has a problem with GPIO.
i didnt notice that, i thought everything are fine
, should i leave these pins or still use it to read encoders?

Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18855
- Thank you received: 5208
13 Apr 2018 15:59 #108950
by PCW
Replied by PCW on topic My Mesa 5i25 board has a problem with GPIO.
Are you connecting the pins of external encoder directly to the 5I25 pins?
The problem with encoder pins is that the encoders are connected to servo motors and may carry several volts of high energy noise coupled from the servo drives high voltage PWM, This not an issue when you use a daughtercard/breakout board intended for encoder signals since they are designed to deal with this, but if you wire encoder signals directly to FPGA inputs you are likely to cause damage, At the minimum if you want to do this is to add about 100 Ohm series resistors, these will at least protect the input clamp diodes from excessive current.
The problem with encoder pins is that the encoders are connected to servo motors and may carry several volts of high energy noise coupled from the servo drives high voltage PWM, This not an issue when you use a daughtercard/breakout board intended for encoder signals since they are designed to deal with this, but if you wire encoder signals directly to FPGA inputs you are likely to cause damage, At the minimum if you want to do this is to add about 100 Ohm series resistors, these will at least protect the input clamp diodes from excessive current.
The following user(s) said Thank You: thang, DoWerna
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
-
Less
More
- Posts: 196
- Thank you received: 11
14 Apr 2018 05:44 #108987
by thang
Replied by thang on topic My Mesa 5i25 board has a problem with GPIO.
Is 7i75 board enough safe to solve this ? I'm not sure 12V enough safe for an AC servo because i dont have much experience. I also look into another daughtercards but they have some functions that i dont need
Please Log in or Create an account to join the conversation.
- suraj9735
-
- Offline
- Senior Member
-
Less
More
- Posts: 77
- Thank you received: 1
05 Jul 2025 23:39 #331355
by suraj9735
Replied by suraj9735 on topic My Mesa 5i25 board has a problem with GPIO.
I have a similar problem, and the input pins of the Mesa 7i95 are randomly active. I have supplied a voltage of 24 volts to these pins mistakenly. I have to use some input output functionality in real-time. what is another way to use some input output?
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18855
- Thank you received: 5208
05 Jul 2025 23:43 #331356
by PCW
Replied by PCW on topic My Mesa 5i25 board has a problem with GPIO.
Which inputs pins?
The isolated inputs TB6 + TB5 pins 1..12 will accept from 5 to 36V
The isolated inputs TB6 + TB5 pins 1..12 will accept from 5 to 36V
Please Log in or Create an account to join the conversation.
- suraj9735
-
- Offline
- Senior Member
-
Less
More
- Posts: 77
- Thank you received: 1
05 Jul 2025 23:57 #331358
by suraj9735
Replied by suraj9735 on topic My Mesa 5i25 board has a problem with GPIO.
Thank you for the quick reply.
I am trying to use input pin 0 on the TB6 tab of the Mesa 7i95 board. I am supplying 5 volts on and off, but the status of the input pin (hm2_7i95.0.gpio.000.in) is not changing in the Halshow monitor window, but the LED of the mesa board of the 0 input pin is getting on and off.
[img]blob:https://web.whatsapp.com/4e39dfa6-8d10-42c3-af3d-452f787f1698[/img]
I want to add an emergency stop and feed override button.
I have asked the same question ("Adding external switch for emergency stop and feed override") in my thread posted one day before, requesting you to look at that also if possible.
I am trying to use input pin 0 on the TB6 tab of the Mesa 7i95 board. I am supplying 5 volts on and off, but the status of the input pin (hm2_7i95.0.gpio.000.in) is not changing in the Halshow monitor window, but the LED of the mesa board of the 0 input pin is getting on and off.
[img]blob:https://web.whatsapp.com/4e39dfa6-8d10-42c3-af3d-452f787f1698[/img]
I want to add an emergency stop and feed override button.
I have asked the same question ("Adding external switch for emergency stop and feed override") in my thread posted one day before, requesting you to look at that also if possible.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18855
- Thank you received: 5208
06 Jul 2025 00:06 - 06 Jul 2025 01:29 #331359
by PCW
Replied by PCW on topic My Mesa 5i25 board has a problem with GPIO.
How is the input wired?
The 7I95/7I95T input pairs have an input common
so if you are supplying +5V to the input, the input common
must connect to 5V common (negative)
Note the you have to have 5V to reliably activate the input
4V is marginal (the input threshold is about 3.9V)
Make sure you are using the "WATCH" tab in halshow
not "SHOW"
Also note that the 7I95/7I95T isolated inputs are not hal GPIO
pins but rather hal Inmux pins (0..23).
The 7I95/7I95T input pairs have an input common
so if you are supplying +5V to the input, the input common
must connect to 5V common (negative)
Note the you have to have 5V to reliably activate the input
4V is marginal (the input threshold is about 3.9V)
Make sure you are using the "WATCH" tab in halshow
not "SHOW"
Also note that the 7I95/7I95T isolated inputs are not hal GPIO
pins but rather hal Inmux pins (0..23).
Last edit: 06 Jul 2025 01:29 by PCW.
Please Log in or Create an account to join the conversation.
- suraj9735
-
- Offline
- Senior Member
-
Less
More
- Posts: 77
- Thank you received: 1
06 Jul 2025 02:11 #331361
by suraj9735
Replied by suraj9735 on topic My Mesa 5i25 board has a problem with GPIO.
Thanks for the "inmux" hint, it's so true that the 7i95 board has inmux-type input and output pins. Now I have connected the right input pin, and my external emergency stop button is working fine. I have added the following hal command line in my .hal file...
net estop-out iocontrol.0.user-enable-in
net external-estop-in hm2_7i95.0.inmux.00.input-00 => iocontrol.0.emc-enable-in
Let me know if it can be further simplified.
Kindly do me another favor by giving the piece of hal command line to do the x-axis feed override control using an external analog DC power supply from 0 to 10 volts
net estop-out iocontrol.0.user-enable-in
net external-estop-in hm2_7i95.0.inmux.00.input-00 => iocontrol.0.emc-enable-in
Let me know if it can be further simplified.
Kindly do me another favor by giving the piece of hal command line to do the x-axis feed override control using an external analog DC power supply from 0 to 10 volts
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.118 seconds