Hi Sir,
I am using NHS3100 kit and developped something based on the SDK project "app_demo_dp_tlogger".
I want to config the resolution of the temperature sensor to test and verify it.
I read the NHS3100 data sheet and user manual.
As my understanding, If I set the resolution(bit) to "TSEN_9BITS = 4, /*!< 9 bits resolution */", the resolution (℃) should be ±0.2℃. That is, the temperature will be a multiplier of 0.2.
It looks like the function "Chip_TSen_SetResolution" can use to config the resulution(bit).
I tried to modified the code and the code snippet is below:
--- original code snippet --
int TMeas_Measure(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, bool synchronous, uint32_t context)
{
//...
Chip_TSen_SetResolution(NSS_TSEN, resolution);
//...
}
-- modified code snippet ---
int TMeas_Measure(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, bool synchronous, uint32_t context)
{
//...
Chip_TSen_SetResolution(NSS_TSEN, TSEN_9BITS);
//...
}
I build, run the program to test but it looks the new resolution didn't work.
From my observation from the tlogger app (the status screen will show "Current temperature:"), the temperature was always a multiplier of 0.1, instead of 0.2.
I am confused.
Anyone can help to review if anything wrong?
Many thanks,
Arna
Hi Arna,
Did you run the application with a debugger? Have you checked the content in SP0 after you found the tlogger app still showed a data of a multiplier of 0.1? Please kindly clarify.
Thanks for your patience!
Best Regards,
Kan