how to use ADC in CYBT-343026-01

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AkJa_4647796
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

hello, Is there any document related to how to use ADC. I am using CYBT_343026-01 and want to use two adc fro temperature and battery services. is there any example?

0 Likes
1 Solution

Hi AkJa_4647796 ,

CYBT-343026-01 uses 10 bit for DC measurements & 12 bit for Audio channels.

The full scale count   is the supplied voltage (3.3V)

There are two APIs :

wiced_hal_adc_read_raw_sample   This will read a 16 bit in 1 sample directly from the register. In this case the full scale value is in signed 16 bits

wiced_hal_adc_read_voltage will do averaging and from the first 10 bits and give an averaged value of say 7 samples. This is done by firmware internally .

So if you wants to sample at very high rate, then you  can use raw samples (wiced_hal_adc_read_raw_sample   ) but that may have noise. So you have to get few samples and then take an average.

Regards,

Anjana

View solution in original post

5 Replies