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

Set ADC ACQTIME to 40us #2

Merged
merged 1 commit into from
Oct 30, 2021
Merged

Set ADC ACQTIME to 40us #2

merged 1 commit into from
Oct 30, 2021

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Oct 3, 2021

In the pinetime, the battery is connected with a 1MOhm resistor, so 3us
isn't enough to measure it.
The battery is the only place where the ADC is used in the pinetime, so
it's ok to hardcode the new value, but it'd be better to make it
configurable if contributing upstream.

Fixes wasp-os/wasp-os#254

For more details see the same issue in infinitime:
InfiniTimeOrg/InfiniTime#483

In the pinetime, the battery is connected with a 1MOhm resistor, so 3us
isn't enough to measure it.
The battery is the only place where the ADC is used in the pinetime, so
it's ok to hardcode the new value, but it'd be better to make it
configurable if contributing upstream.

Fixes wasp-os/wasp-os#254

For more details see the same issue in infinitime:
InfiniTimeOrg/InfiniTime#483

Signed-off-by: Francesco Gazzetta <[email protected]>
@daniel-thompson daniel-thompson merged commit f46ce0d into wasp-os:wasp-os Oct 30, 2021
@fgaz fgaz deleted the adc-acqtime branch October 31, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misconfigured ADC?
2 participants