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

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.
led_med
led_low
led_off
delay
loop
bounce
bounce1
released yet
cycling though modes by holding debounce
bounce00
end
movwf counter
decfsz counter, f
bsf GPIO, pwm
bsf GPIO, pwm
movlw 0x20
btfss GPIO, button
retlw 0x00
btfss flag, timer_ena
00016R1.ASM (CONTINUED)
retlw 0x00
movlw led_med_on
call delay
bcf GPIO, pwm
movf led_med_off, w
call delay
call bounce
btfss flag, new_mode
goto led_med
goto mode_select
;low brightness routine
movlw led_low_on
call delay
bcf GPIO, pwm
movf led_low_off, w
call delay
call bounce
btfss flag, new_mode
goto led_low
goto mode_select
;led off
call delay
bcf GPIO, pwm
movf GPIO, w
sleep
;delay loop for on and off time
goto loop
retlw 0x00
;check for button press
goto bounce1
bsf flag, timer_ena ; No, allow timer to start
clrf debounce
retlw 0x00
incfsz debounce, f
retlw 0x00
bsf flag, new_mode
incf mode, f
bcf flag, timer_ena ;prevent timer from incrementing to prevent
;do not increment as we have not seen the debounce
;turn on LED(s) for a set time
;turn off LED(s) fo a set time
;turn on LED(s) for a set time
;turn off LED(s) for a set time
;turn off LED(s)
;read port before entering sleep mode
; Delay = (3 + (3 * counter) + 2) Tcy
; Is Button Depressed?
; Yes, go to “bounce1”
; no user entry, reset debounce timer
;
;inc debounce timer
;not yet
;a valid press has been detected
00016R1.asm Source Code
DS51551A-page 24

Related parts for MCP1252DM-BKLT