How can I read the analog input 0-3 from Mesa 7I77

More
03 Jun 2016 02:02 #75373 by reliantkill
I have look on the forum previous question but I have not find "How can I read the analog input 0-3 from Mesa 7I77" I have probably missed it, can someone point me in the right direction. I looked on the gpio, and on the pins derived out of the 7I77.0 but I only can see the digital true or false state. How I supposed to see the voltage level?

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

More
03 Jun 2016 03:54 #75381 by Todd Zuercher
I think to be able to read the inputs as analog you have to have the smart serial mode for that part of the card set to 1 or 2. (the default is 0). So unless you've changed that you won't see it.

I've never done this myself, but I think you need to change this line in your hal file
loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=000xxxxx "
to something like this
loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=020xxxxx "
I am not sure which of the 3 zeros need to be changed to a 2.
The following user(s) said Thank You: lois

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

More
03 Jun 2016 08:50 #75391 by reliantkill
Thanks A lot!
I tried it by shifting the 2 through the zeros and it works
when I have: "sserial_port_0=200xxxxx "

loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=000xxxxx "
So it's

changed to:
loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=200xxxxx "

Attachments:
The following user(s) said Thank You: lois

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

Time to create page: 0.079 seconds
Powered by Kunena Forum