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
THERMISTOR
SHORTED
SET TRICKLE CHARGE
SET ERROR FLAG
IF NO
INIT
ERASE ERROR FLAG
IF
ERASE
ERASE ERROR FLAG
INIT
Y
Y
Y
ENABLE INTERRUPTS
RETURN FROM
INTERRUPT
Figure 2. Software Flowchart
6