vos/ambiq-hal-sys/ambiq-sparkfun-sdk/boards/apollo3_evb/examples/adc_vbatt/README.txt
2022-10-23 23:45:43 -07:00

24 lines
559 B
Plaintext

Name:
=====
adc_vbatt
Description:
============
Example of ADC sampling VBATT voltage divider, BATT load, and temperature.
Purpose:
========
This example initializes the ADC, and a timer. Two times per second it
reads the VBATT voltage divider and temperature sensor and prints them.
It monitors button 0 and if pressed, it turns on the BATT LOAD resistor.
One should monitor MCU current to see when the load is on or off.
Printing takes place over the ITM at 1M Baud.
******************************************************************************