My Mesa 5i25 board has a problem with GPIO.

More
13 Apr 2018 04:55 #108930 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:

File Attachment:

File Name: firmware.tar.gz
File Size:80 KB


these pins were used to read encoders.
now i still can read signal by these pins.
Attachments:

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

More
13 Apr 2018 13:22 #108943 by PCW
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.
The following user(s) said Thank You: thang, DoWerna

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

More
13 Apr 2018 15:49 #108949 by thang
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.

More
13 Apr 2018 15:59 #108950 by PCW
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 following user(s) said Thank You: thang, DoWerna

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

More
14 Apr 2018 05:44 #108987 by thang
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.

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