Linear DC101 manual Software Flowchart

Page 6

DEMO MANUAL DC101

SMART BATTERY CHARGER

OPERATIOU

INIT VARIABLES

12C DATA RECEIVED

START

YTURN RED LED ON FOR 2 SEC

RESET 12C POINTER

THERMISTOR OPEN

THERMISTOR TOO HOT

Y

Y

INTERRUPT

DISABLE INTERRUPTS

PUT 12C DATA ON THE 12C STACK INCREMENT POINTER

Y

A/D COUNTER = 0

 

MEASURE THERMISTOR

 

ALARM WARNING

Y

 

SET ERROR FLAG

 

SHUT DOWN CHARGER

ON STACK

 

 

 

 

ERASE COMMAND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

LOAD IPWM

CHARGING CURRENT

 

ERASE COMMAND

 

 

ON STACK

 

 

ENABLE CHARGER

 

 

 

 

 

ERASE ERROR FLAG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

LOAD VPWM

CHARGING VOLTAGE

 

ERASE COMMAND

ON STACK

 

 

ENABLE CHARGER

 

 

 

 

 

ERASE ERROR FLAG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

ERROR FLAG

 

SET FAST BLINKING

 

 

 

 

 

 

 

 

 

SET SLOW BLINKING

THERMISTOR

IN RANGE

THERMISTOR

TOO COLD

Li-Ion

THERMISTOR

SHORTED

SET TRICKLE CHARGE

SET ERROR FLAG

IF NO Li-Ion FLAG:

INIT Li-Ion MODE

ERASE ERROR FLAG

IF Li-Ion FLAG SET:

ERASE Li-Ion FLAG

ERASE ERROR FLAG

INIT Ni-MH MODE

Y

Y

Y

ENABLE INTERRUPTS

RETURN FROM

INTERRUPT

Figure 2. Software Flowchart

6

Image 6
Contents Parameter Conditions MIN TYP MAX DC101 Smart Battery ChargerBlock Diagraw AUD Board Photo Component SideSmart Battery Charger with SMBus Interface Reference Designator Parts ListPackage Diagraw Part Number Description Vendor TelephoneQuantity OperatiouPart Number Description Vendor TelephoneSystem Management Bus SMBus Software Flowchart PCB Layout AUD Filw Component Side SilkscreenComponent Side Solder Mask PC FAB Drawiug Solder SideSolder Side Solder Mask