What is the best way to output the current “power status” for an Argon. I would like to know if the Argon is powered via USB or battery at a given time . When on battery, what is the current battery level and if it is charging or not?
It looks like the /CHG pin on the XC6802 charge controller is only a pull-down. When you read it via GPIO you probably need to enable a software pull-up on P1.09 as there does not appear to be a hardware pull-up on that line. It’s toggling because it’s just floating when fully charged.
Hi Rick, I'm using this code and for the most part it is working great. One thing I am not seeing is when I disconnect the battery, the CHG pin stays low. I only seem to get a change in status when i disconnect and reconnect the usb. Is this intentional?
Also, the CHG LED only seems to come on when charging and the battery voltage is less then 4.0V. Again, intentional?