Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm/tlsr82: optimize the adc driver. #6311

Merged
merged 1 commit into from May 22, 2022

Conversation

CV-Bowen
Copy link
Contributor

@CV-Bowen CV-Bowen commented May 22, 2022

Summary

  1. Add vbat mode for chip internal voltage sample;
  2. Add adc channel config;
  3. Using DFIFO2 to get the sample value, follow telink sdk.
  4. Add calibration function and config;

Impact

tlsr82 chip

Testing

local test with adc example

  1. vbat mode sample voltage 3.253mV (actual voltage is 3.3V);
  2. base mode sample error (no calibration) < 50mV in range 0~3.5V;

@CV-Bowen CV-Bowen force-pushed the tlsr82_adc branch 2 times, most recently from 140500c to b65dc34 Compare May 22, 2022 12:13
arch/arm/src/tlsr82/tlsr82_adc.c Outdated Show resolved Hide resolved
arch/arm/src/tlsr82/tlsr82_adc.c Outdated Show resolved Hide resolved
1. Add vbat mode for chip internal voltage sample;
2. Add adc channel config;
3. Using DFIFO2 to get the sample value, follow telink sdk.
4. Add calibration function and config;

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 200109f into apache:master May 22, 2022
@CV-Bowen CV-Bowen deleted the tlsr82_adc branch June 14, 2022 02:05
@jerpelea jerpelea added this to To-Add in Release Notes - 11.0.0 Aug 30, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 11.0.0 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants