These module docs are in beta and may be incomplete.
modm:driver:ad7280a: AD7280A Lithium Ion Battery Monitoring System¶
The AD7280A is monitor for lithium ion battery packs with up to six cells. It contains six 12-ADCs with 1µs conversion per channel and a cell balancing interface. Up to 7 devices can be added through a Daisy-Chain interface (chain of 8 devices).
- cell voltage accuracy of ±1.6 mV.
- Supply voltage 8-30V
- six auxiliary ADC input channels
Recommended SPI Clk frequency is 1 MHz. With a 1 MHz Clk, it takes approximately 1.54 ms to read back the voltage conversions on 48 channels.
When addressing devices in the chain directly the frequency needs to be lower than 1 MHz because delays introduced in each stage of the chain.
// Class class modm::Ad7280a< typename Spi , typename Cs , typename Cnvst , int N >; // Struct struct modm::ad7280a::ConversionValue; struct modm::ad7280a::RegisterValue; // Function IOStream& modm::operator<<(IOStream &os, const ad7280a::ConversionValue &c); IOStream& modm::operator<<(IOStream &os, const ad7280a::RegisterValue &c); // Enum enum Average; enum Cell; enum Channel; enum Device; enum Register;