MCP1252DM-BKLT Microchip Technology, MCP1252DM-BKLT Datasheet - Page 26

BOARD DEMO FOR MCP1252

MCP1252DM-BKLT

Manufacturer Part Number
MCP1252DM-BKLT
Description
BOARD DEMO FOR MCP1252
Manufacturer
Microchip Technology
Datasheets

Specifications of MCP1252DM-BKLT

Current - Output / Channel
120mA
Outputs And Type
1, Non-Isolated
Features
Short-Circuit and Thermal Protection, Shutdown
Voltage - Input
2 ~ 5.5V
Utilized Ic / Part
MCP1252
Processor To Be Evaluated
MCP1252
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Voltage - Output
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
TABLE C-1:
© 2005 Microchip Technology Inc.
PWM period
time
PWM period
PWM period
wake
inc_mode
mode_select bcf flag, new_mode
sleep
btfss GPIO, button
incf mode, f
00016R1.ASM (CONTINUED)
movwf led_hi_off
comf led_hi_off, f
movlw period
addwf led_hi_off, f
;
movlw led_medhi_on
movwf led_medhi_off
comf led_medhi_off, f
movlw period
addwf led_medhi_off, f
;
movlw led_med_on
movwf led_med_off
comf led_med_off, f
movlw period
addwf led_med_off, f
;
movlw led_low_on
movwf led_low_off
comf led_low_off, f
movlw period
addwf led_low_off, f
;
movf GPIO, w
goto inc_mode
movlw 0x20
call delay
movf GPIO, w
sleep
;
;determine current mode
;
movlw 0x01
subwf mode, w
btfsc STATUS, Z
goto led_off
;
movlw 0x02
subwf mode, w
btfsc STATUS, Z
goto led_low
;
movlw 0x03
subwf mode, w
btfsc STATUS, Z
goto led_med
;
;add the complement of on time to the window time
;calculate off times based on time remaining in
;add the complement of on time to the window time
;calculate off times based on time remaining in
;add the complement of on time to the window time
;read port before entering sleep mode
;only allow a low to bring PIC out of sleep
;it was a pin change, determine new mode
;clear new mode flag
;calculate off times based on time remaining in
;add the complement of on time to the window
00016R1.asm Source Code
DS51551A-page 22

Related parts for MCP1252DM-BKLT