Kryten
New Member
Q1:
Do anyone here hav a "quick" code for making the BCD readout from ADC into a decimal number (kind of like Vref = 50A ) so it calculates for it self what to put in stead of BCD.
Q2: (In case anyone have a code)
If i have several different levels at the ADC
AN0: 5V = 50 A (enegry consumption)
AN1: 5V = 25 A (energy charging)
AN3: 5V = 14.4V (battery voltage)
Is it possibel to say that Vref is xx to AN0, yy to AN1 and zz to AN3
Do anyone here hav a "quick" code for making the BCD readout from ADC into a decimal number (kind of like Vref = 50A ) so it calculates for it self what to put in stead of BCD.
Q2: (In case anyone have a code)
If i have several different levels at the ADC
AN0: 5V = 50 A (enegry consumption)
AN1: 5V = 25 A (energy charging)
AN3: 5V = 14.4V (battery voltage)
Is it possibel to say that Vref is xx to AN0, yy to AN1 and zz to AN3