SLAA476B February 2011 – July 2019 BQ2040 , BQ2040 , BQ2060A , BQ2060A , BQ2063 , BQ2063 , BQ2083-V1P3 , BQ2083-V1P3 , BQ2084-V143 , BQ2084-V143 , BQ2084-V150 , BQ2084-V150 , BQ2085-V1P3 , BQ2085-V1P3 , BQ20Z40-R1 , BQ20Z40-R1 , BQ20Z70-V160 , BQ20Z70-V160 , BQ20Z80A-V110 , BQ20Z80A-V110 , BQ28400 , BQ28400 , BQ78PL114 , BQ78PL114 , BQ78PL116 , BQ78PL116 , LM5145 , LM5145 , MSP430F5500 , MSP430F5500 , MSP430F5501 , MSP430F5501 , MSP430F5502 , MSP430F5502 , MSP430F5503 , MSP430F5503 , MSP430F5504 , MSP430F5504 , MSP430F5505 , MSP430F5505 , MSP430F5506 , MSP430F5506 , MSP430F5507 , MSP430F5507 , MSP430F5508 , MSP430F5508 , MSP430F5509 , MSP430F5509 , MSP430F5510 , MSP430F5510 , TPS40057 , TPS40057 , TPS40170 , TPS40170
This section describes the organization of the software code file structure.
Name | Brief Description |
---|---|
Battery_Charger_Controller() | Implements the demo reference design software flow chart. |
Initialize_Battery_Definitions() | Initializes the hardware to charge two smart batteries simultaneously. |
Get_Battery_Charger_SMBus_ Parameters() | Interrogates the battery fuel gauge for the desired charging voltage, desired charging current, and other parameters. |
Safety_Checks_Primary_SMBus() | Compares the parameters received through SMBus against a set of limits to check whether the nominal operating values have been exceeded or not. |
Safety_Checks_Secondary_ADC() | Compares the parameters received through ADC conversions against a set of limits to check whether the nominal operating values have been exceeded or not. |
Set_LED_Indicator_Status() | Set the hardware LEDs to indicate status such as charging, fully charged or error condition. |
Interrupt Service Routines (ISRs) | ISRs for Timer, I2C/SMBus USCI, ADC10, and other peripherals |
Name | Brief Description |
---|---|
UCS_Init() | Initializes the clock system within the MSP430F5510. |
Timer_Init() | Initializes the timer. |
PWM_Init() | Initializes the PWM outputs. |
ADC_Init() | Initializes the ADC for voltage/current conversions. |
Name | Brief Description |
---|---|
LED_Init() | Initializes the LEDs on the board. |
LED_Control() | Set the LEDs to a steady on/off state or set the LEDs to blink with an adjustable period. |
Name | Brief Description |
---|---|
SMBus_Initialize() | Initializes the SMBus communication lines with the option to configure the MSP430F5510 in master or slave mode. |
SMBus_Access() | Configures the MSP430F5510 in master mode and interrogates the battery fuel gauge with the user-specified command. |
SMBus_Access_PEC() | Configures the MSP430F5510 in master mode and interrogates the battery fuel gauge with the user-specified command with packet-error-checking (PEC). |
SMBus_Select() | Selects which battery channel to send the SMBus commands to. |
crc8MakeBitwise() | Implements the CRC-8 algorithm to compute the PEC byte. |
Name | Brief Description |
---|---|
Fan_Init() | Initializes the fan structure. |
Fan_Control() | Turns the fan on or off. |
VI_ADC_Read() | Reads the voltage or current using the ADC. |
Calibrate_Battery() | Turns on or off the calibration resistor circuitry. |
Delay_Timer() | Generic delay function. |
NOTE
The files demo.c and demo.h should be excluded from the project settings when compiling/building the sample application software. These files are provided for example purposes only.