Hostmot2 sserial_port_N=xxxxxxxx

More
06 Feb 2013 21:31 #29701 by gandalf69
I have a 7i77. I want to set it to MODE 2 per the 7i77 manual.

The man page for Hostmot2 sserial_port doesn't make sense to me. I think there is a typo where the word port has been used instead of channel and ...device 0.0 to mode 0... is confusing.

It seems I need to know which channel is which in order to put the 2 in the correct location.
Could someone please tell me how to find out?

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

More
07 Feb 2013 04:50 #29732 by PCW
sserial_port_0=20xxxx is what you want

This is because the numbers in the string set the modes of each sserial channel from 0 to up to 7 (0 is the leftmost character)
The string above sets the 7I77 digital section (channel 0) to mode2, the analog section (channel 1) to mode 0, and
disables the other 4 channels (the 7I77x2 config has 6 sserial channels total)

The port number (0 here) is one sserial controller. Each controller can have up to 8 channels.
There is only one controller (0) in the 7I77X2 config, but there are configurations with up to 4
controllers (sserial 0,1,2,3) and 32 channels

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

More
07 Feb 2013 09:54 #29749 by gandalf69
PCW, thankyou., that is all quite clear.

What I don't understand is what defines the channels?
E.g. you say the digital section is ch 0 and analog section is ch 1, where is that documented?

In the Basic 5i25/7i77 config 7i77.hal file it uses ...sserial_port_0=002xxx
So channel 2 is set set to mode 2, but what is channel 2?

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

More
07 Feb 2013 10:32 #29750 by PCW
Its not documented directly as It depends on the host configuration but
you can tell which channel is which by looking at the HAL pins, as all
sserial HAL pins have the port and channel number in their name.

For a standard 7I77X2 5i25 configuration and 7I77 on 5I25 P3, channel 0 is the digital I/O,
channel 1 is the analog I/O, and channel 2 is the expansion connector.

If i get a chance I will add the host interface pinout to the 7I77 manual,
this in conjunction with appropriate 5i25. pin file would allow you to figure
out the channels.
The following user(s) said Thank You: gandalf69

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

Moderators: HansU
Time to create page: 0.207 seconds
Powered by Kunena Forum