You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're getting 13-bit resolution: max(read_val[0] & 0x1F) + max(read_val[1]) = 7936 + 255.
Since 0x1F = 0b11111, you're missing one bit. You need 6 bits from read_val[0], as the status takes 2 bits. Thus I believe 0x3F = 0b111111 is needed.
https://github.com/MikroElektronika/Click_Manometer_HSCMAND060PA3A3/blob/master/library/src/manometer_hw.c#L117
0x1F should be changed to 0x3F to correctly read 14-bit pressure that HSC offers.
Regards,
Josip
The text was updated successfully, but these errors were encountered: