The scale protocols do seem to be pretty straightforward - very much possible even bit-banging on a low-end Arduino.
That said, I went searching, and of course this is all integrated now, including the Hall sensor array and amplifiers:
https://ams.com/en/as5306
So there's nothing left to do, and I'm discharged from having to think about how to build one ;-) Unless I find myself short on projects.
Very interesting. Thanks for this Paul. I had wondered about a chip vs discrete components. This answers that. Of course, it's a Block Diagram of the AS5304/6 chip function. I will have to see if I can find an Applications Guide to go with it.
The accuracy and repeatability of my 1 uM scales is nothing short of hard to believe. It does tend to give one very high confidence in the output though.
My readout box can be programmed for different scale resolutions but not scale size. This makes me suspect that the AS5304/6 chip itself is in the read head and the read head is matched to the scales and the output is universal. But I don't know that for sure. The magnetic scales and magnetic heads might be interchangeable too.
The gain feedback explains the relatively high tolerance to the gap between the strip and the read head. It either works or it doesn't and no adjustment other than the gap itself is possible. I had wondered how that was possible if there were no smarts in the read head itself. Now I know that there probably is.
I assume that the purpose of the sine and cos functions in the chip is to calculate and linearize the phase of the input signals from the hall sensors.
I'm just guessing here from experience that the over-reaching objective was to always have access to a fast changing signal sensitive to displacement. This is much more easily done from a phase measurement than raw amplitude. But again I'm just volunteering an educated guess.
Like you, I'm not sure its really worth any more digging. I don't plan to make scales or read heads.
But if anyone finds additional info, I'm interested in learning.
Edit - never mind. All the application info is available at the link you provided above. Lots of reading. Thanks again Paul.