DC2343A  FW 1.0.2 / GUI 1.0.10
LTC3335 Nanopower Buck-Boost DC/DC with Integrated Coulomb Counter
 All Data Structures Namespaces Files Functions Variables Enumerations Macros Pages
Namespaces | Functions | Enumerations | Variables
LTC3335.vb File Reference

GUI Software File for LTC3335 Nanopower Buck-Boost DC/DC with Integrated Coulomb Counter. More...

Go to the source code of this file.

Detailed Description

GUI Software File for LTC3335 Nanopower Buck-Boost DC/DC with Integrated Coulomb Counter.

This file contains functions for the more complex mathematical functions that would not fit in the DC2343A firmware due to Program Memory limitations in the PIC16F1459.

The functions provided in this file:

  1. Calculates the range and resolution represented by the LTC3335 accumulator in Ah.
  2. Calculates the optimal LTC3335 prescaler for a given IPeak and Battery Capacity.
  3. Translates the Counter Test results in edges/second into a battery current estimate in Amps.
  4. Corrects the coulomb count and battery current estimate for the typical error at a given IPeak, VBAT, and VOUT.

Definition in file LTC3335.vb.

Namespaces

package  LTC3335
 Namespace containing constants and functions for the LTC3335 Nanopower Buck-Boost DC/DC with Integrated Coulomb Counter.
 

Functions

float LTC3335.Get_Vout_V (VOLTAGE_SELECTION_OPTIONS vout)
 Returns the VOUT value in V for a voltage setting. More...
 
int LTC3335.Get_IPeak_MA (LTC3335.IPEAK_SELECTION_OPTIONS ipeak)
 Returns the Ipeak value in mA for an ipeak setting. More...
 
float LTC3335.Get_Charge_Range (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, int prescaler)
 Returns the charge range in Ah for an ipeak setting and prescaler. More...
 
float LTC3335.Get_Charge_Resolution (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, int prescaler)
 Returns the charge resolution in Ah for an ipeak setting and prescaler. More...
 
int LTC3335.Get_Prescaler (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, float capacity, bool use_software_correction=False, double software_correction_factor=0.0)
 Returns the recommended prescaler for an IPEAK setting and a capacity value in Ah. More...
 
float LTC3335.Get_Max_VOUT_Current (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, float vbat, float vout)
 Returns the theoretical maximum output current available for a given IPEAK, VOUT, and VBAT. More...
 
float LTC3335.Convert_Counter_Test_Results (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, float edges_per_sec, bool use_software_correction=False, float software_correction_factor=0.0)
 Converts the LTC3335 Counter Test results in /IRQ edges per second into mA of battery current. More...
 
double LTC3335.Get_Software_Correction_Factor (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, float vout, float vbat)
 Returns typical coulomb count error for a given IPEAK, VOUT, and VBAT. More...
 
double LTC3335.Get_Software_Correction_Factor (LTC3335.IPEAK_SELECTION_OPTIONS ipeak, LTC3335.VOLTAGE_SELECTION_OPTIONS vout_setting, float vbat)
 Returns typical coulomb count error for a given IPEAK, VOUT, and VBAT. More...
 

Enumerations

enum  LTC3335.VOLTAGE_SELECTION_OPTIONS {
  HARDWARE_CONTROL,
  SOFTWARE_CONTROL_1_8V,
  SOFTWARE_CONTROL_2_5V,
  SOFTWARE_CONTROL_2_8V,
  SOFTWARE_CONTROL_3_0V,
  SOFTWARE_CONTROL_3_3V,
  SOFTWARE_CONTROL_3_6V,
  SOFTWARE_CONTROL_4_5V,
  SOFTWARE_CONTROL_5_0V,
  NUM_VOLTAGE_SELECTION_OPTIONS
}
 Voltage Selection Options for the LTC3335 More...
 
enum  LTC3335.IPEAK_SELECTION_OPTIONS {
  IPEAK_5MA,
  IPEAK_10MA,
  IPEAK_15MA,
  IPEAK_25MA,
  IPEAK_50MA,
  IPEAK_100MA,
  IPEAK_150MA,
  IPEAK_250MA,
  NUM_IPEAK_SELECTION_OPTIONS
}
 IPeak Selection Options for the LTC3335 More...
 
enum  LTC3335.EN_CONFIGURATION_OPTIONS {
  EN_CONFIGURATION_ON,
  EN_CONFIGURATION_EXT,
  EN_CONFIGURATION_OFF,
  NUM_EN_CONFIGURATIONS
}
 Possible states of the EN pin on the DC2343A demo board for the LTC3335. More...
 

Variables

double LTC3335.IQ = 0.00000068
 LTC3335 Input Quiescent Current in A More...
 
const float LTC3335.tFS = 0.00001174
 LTC3335 full scale ON time in seconds More...
 
const int LTC3335.PRESCALER_SELECTION_MIN = 0
 Allowable range for the LTC3335 Prescaler. More...
 
const int LTC3335.PRESCALER_SELECTION_MAX = 15
 
string[] LTC3335.IPEAK_INDICIES
 IPEAK Indicies into COULOMB_COUNTER_CORRECTION_TABLE More...
 
float[] LTC3335.VOUT_INDICIES
 VOUT Indicies into COULOMB_COUNTER_CORRECTION_TABLE More...
 
float[] LTC3335.VBAT_INDICIES
 VBAT Indicies into COULOMB_COUNTER_CORRECTION_TABLE More...
 
double[] LTC3335.COULOMB_COUNTER_CORRECTION_TABLE
 TYP Coulomb Counter Error for a given IPEAK, VOUT, and VBAT as shown in Datasheet Figures G37 - G44 More...