- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Tags:
- adc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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