![]() First we open AS5600 sensor's datasheet.By specifying the number of bits used in the MSB register and specifying the bit_resolution value the library can calculate how many bits are used in the LSB register and can reconstruct the complete angle value. ![]() To instantiate the I2C magnetic sensor you need to provide the MSB register address and tell the library how is the angle value separated in the two registers. How to find the MSB register values and used bits value?Since I2C registers are Byte(8-bit) registers they contain the 12-14 bit angle representation separated in two Byte addresses, MSB(most significant byte) and LSB(least significant byte). bits_used_msb - number of used bits in MSB register.angle_register_msb - register number containing the MSB part of the angle value. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |