![Microchip Technology MCP1252 User Manual Download Page 23](http://html1.mh-extra.com/html/microchip-technology/mcp1252/mcp1252_user-manual_1785980023.webp)
MCP1252 CHARGE PUMP BACKLIGHT
LED DEMO BOARD USER’S GUIDE
©
2005 Microchip Technology Inc.
DS51551A-page 19
Appendix C. 00016R1.asm Source Code
C.1
DEVICE FIRMWARE
FIGURE C-1:
Firmware Flowchart – Page 1.
Software License Agreement
The software supplied herewith by Microchip Technology Incorporated (the “Company”) is intended
and supplied to you, the Company’s customer, for use solely and exclusively with products manu-
factured by the Company.
The software is owned by the Company and/or its supplier, and is protected under applicable copy-
right laws. All rights are reserved. Any use in violation of the foregoing restrictions may subject
the user to criminal sanctions under applicable laws, as well as to civil liability for the breach
of the terms and conditions of this license.
THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR
STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE
FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Power-Up
Initialize:
OSCCAL, Port,
PWM registers
Is this a
Initialize
PWM period
variables
Yes
Has button
been pressed?
No
Yes
No
Power-On
Reset?
Go To
SLEEP
Wake-Up on
No
pin change?
Yes
Determine
New Mode
Adjust
Light Intensity
Shutdown
No
Mode?
Yes
Wake-Up
on pin change?
Yes
No
Is this
Is this