Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 54
MCP1631HV MULTI-CHEMISTRY
BATTERY CHARGER
REFERENCE DESIGN
© 2009 Microchip Technology Inc.
DS51791A-page 23
Appendix C. Software
C.1
DEVICE SOFTWARE FLOWCHART
C.1.1
Software Functions
C.1.1.1
INTERRUPT()
Timer 1?
+
Reload PWM Timer 
High/Low Count
Clear Timer 1 Interrupt 
Flag
Y
Timer 0?
Update LED's
Update One Second flag
Clear Timer 0 Interrupt Flag
Y
Interrupt ()
Ret