We get issues when reading out the temperature and voltage using the dwt_readtempvbat.
We use it with the fastSPI enabled, the deca_sleep(1) inside works as expected.
After transmitting we consistently read out the correct values.
After receiving a frame, we sometimes read out incorrect values.
After waking up the DW1000 and then using the dwt_readtempvbat we also sometimes read incorrect values.
In our data it seems the leftmost bit to be wrong.
0x8d which gives the assumed correct value of 47.5 degrees C
0x0d which gives the wrong value of -97.2 degrees C
0xa8 which gives the assumed correct value of 3.26V
0x28 which gives the wrong value of 2.53V
The faulty temperature and faulty voltage don’t happen consistently together.
We get the following readings:
- both values are correct
- only the temperature is incorrect
- only the voltage is incorrect
- both the temperature and voltage is incorrect