CMOS battery level

This forum is for general developer support questions.
Post Reply
User avatar
Spektro
Beta Tester
Beta Tester
Posts: 122
Joined: Sat Jun 18, 2011 6:55 am
Location: Finland
Contact:

CMOS battery level

Post by Spektro »

Hello,
Just out of interest, does any of the PPC Amiga platforms support reading the motherboard's CMOS battery status? A CMOS battery status indicator would be very useful especially in AmigaOne XE that becomes unstable when the battery level is too low.
- Janne Peräaho
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 525
Joined: Sat Jun 18, 2011 4:06 pm
Location: North Florida, near the Big Bend

Re: CMOS battery level

Post by LyleHaze »

As I understand it, there are two possible approaches:
An analog input can read actual voltage, and make decisions based on the reading.
A Comparator circuit can switch a digital input when the voltage falls below a pre-set level.

finding a spare GPIO pin (digital) is easy enough, analog inputs are a lot less available.

Other considerations:
Want to make it universal? design it to interface by USB.

What should you worry about? Your new device causing battery drain.

Since you are designing electronics any way you go.. How about a re-chargeable battery replacement? Might require some isolation tricks since the board is not expecting charge voltage, but it would be less complicated than monitoring for failure.

One other related note: There is a variant of the "standard cell", a bit harder to find, that holds the voltsge at peak much longer, then eventually falls steeper. But this is a good fit for our issues.. I THINK it's a "BR" instead of "CR" battery number.. no notes in front of me right now.
Post Reply