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

Enable VREF for battery level monitoring #3

Open
cracked-machine opened this issue Apr 21, 2023 · 0 comments
Open

Enable VREF for battery level monitoring #3

cracked-machine opened this issue Apr 21, 2023 · 0 comments
Labels

Comments

@cracked-machine
Copy link
Owner

cracked-machine commented Apr 21, 2023

LED should flash when low battery threshold is reached.

  • The internal voltage reference (V REFINT ) provides a stable (bandgap) voltage output for the
    ADC and comparators. V REFINT is internally connected to the ADC V IN[17] input channel.

  • VREFEN bit must be set to enable the conversion of ADC V IN[17] (V REFINT).

  • During the manufacturing process, the calibration data of the temperature sensor and the
    internal voltage reference are stored in the system memory area. The user application can
    then read them and use them to improve the accuracy of the temperature sensor or the
    internal reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant