SSI encoder on MESA 7i96s
- gardonvariety
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
30 Nov 2022 04:19 #258091
by gardonvariety
SSI encoder on MESA 7i96s was created by gardonvariety
A friend gave me some
AMS AS5311 absolute encoders
, which I'd like to use to add Z-axis feedback to my little lathe. I have an encoder attached to my spindle already, so I'm out of quadrature encoder inputs on my 7i96, but the AS5311 also has an SSI interface. I'm wondering if I can configure the 7i96 to use some GPIO pins or something to read the encoder's SSI interface. I've seen folks talking about flashing different firmware onto MESA cards, but I can't for the life of me figure out where all these firmware files live.
Is it possible to read an SSI interface with the 7i96 or will I need to buy another board from MESA to get another quadrature input and wire the Z encoder to that?
I thought about bit-banging an SSI interface but I think that would be quite slow. I also read in another thread about an existing SSI component, but I don't see anything in the component documentation .
I feel kind of clueless, but am slowly learning the ins and outs of Linux CNC. I appreciate anyone's advice, thanks in advance.
Is it possible to read an SSI interface with the 7i96 or will I need to buy another board from MESA to get another quadrature input and wire the Z encoder to that?
I thought about bit-banging an SSI interface but I think that would be quite slow. I also read in another thread about an existing SSI component, but I don't see anything in the component documentation .
I feel kind of clueless, but am slowly learning the ins and outs of Linux CNC. I appreciate anyone's advice, thanks in advance.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17948
- Thank you received: 4815
30 Nov 2022 14:48 #258127
by PCW
Replied by PCW on topic SSI encoder on MESA 7i96s
I don't think the firmware SSI encoder interface will work with the AS5311
as it does not have a standard SSI interface. Normal SSI encoders do not
have a CS signal, the get all timing information from their clock input.
as it does not have a standard SSI interface. Normal SSI encoders do not
have a CS signal, the get all timing information from their clock input.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
01 Dec 2022 16:44 #258229
by andypugh
It's hidden here.
linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html
As it is a sub-driver of the Mesa Hostmot2 driver.
But, as PCW says, that module might not work with your encoders.
Replied by andypugh on topic SSI encoder on MESA 7i96s
I also read in another thread about an existing SSI component, but I don't see anything in the component documentation.
It's hidden here.
linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html
As it is a sub-driver of the Mesa Hostmot2 driver.
But, as PCW says, that module might not work with your encoders.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
01 Dec 2022 16:48 #258230
by andypugh
Replied by andypugh on topic SSI encoder on MESA 7i96s
I wonder if they work OK on a single channel with Chip Select permanently low?I don't think the firmware SSI encoder interface will work with the AS5311
as it does not have a standard SSI interface. Normal SSI encoders do not
have a CS signal, the get all timing information from their clock input.
Please Log in or Create an account to join the conversation.
- gardonvariety
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
02 Dec 2022 18:11 #258341
by gardonvariety
Replied by gardonvariety on topic SSI encoder on MESA 7i96s
Ah, thank you for the pointer. Yeah, I think PCW is certainly right that the encoders won't work with the SSI firmware module. I think the documentation is incorrect in calling it an SSI interface. It seems like it's pretty clearly an SPI interface. I don't know if leaving CS permanently low would work, but based on how the documentation talks about selecting between magnetic strength mode and absolute position mode, I'm kind of doubtful.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17948
- Thank you received: 4815
02 Dec 2022 21:33 #258369
by PCW
Replied by PCW on topic SSI encoder on MESA 7i96s
It is likely fairly simple to ad a CS output to the SSI interface firmware
though its a bit awkward for a normal cabled interface
though its a bit awkward for a normal cabled interface
Please Log in or Create an account to join the conversation.
Time to create page: 0.063 seconds