CH201 CH101

By imanaboelnagae… , 16 June 2021

Hello,

I have a question in the CHx01 proximity sensor’s example project driver ā€œHello Chirp Example for SmartSonicā€, in the (ch_common.c) file, (ch_common_get_locked_state) function, there is a check (if (ready_value & lock_mask)), the example project gives an error in this function as the value of (ready_value) is always zero.
This function reads the (ready_value) from (ready_reg) and as written in the function description this value is set by hardware when the sensor finishes the execution of an internal start-up and self-test sequence and this (ready_value) always gives me zero.

Could you help please?

phpbb Topic ID
39046