I was reading the data Sheet of AMIS-30543 stepper motor driver and I was not able to understand how to combine the result of the Micro step position status register MSP[8:0]. I know that its a 9 bit value . Help me understand how to get the value.
In the data sheet it is given like
in SR3 -> MSP[8:2], and in SR4 -> MSP[6:0]. How I am I suppose to get the 9 bit out of these.
In the library I have seen that ,
(sr3<<2) | (sr4 & 3) . I don't understand why they are doing and
Please explain . also If there was no library how am I suppose to know how to combine these registers from the dataSheet .
Link to DataSheet