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

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.
timerh
timerl
;bits used in the flag variable
new_mode
timer_ena
;GPIO pins
button
pwm
;other
TO
PD
GPWU
GPPU
COUTEN
CMPT0CS
CWU
reset
init_ports
init_vars movlw 0xFF
PWM period
org 0x00
org 0x10
nop
movlw 0x01
OPTION
00016R1.ASM (CONTINUED)
= 0x17
= 0x18
= 7
= 6
= 3
= 0
EQU
EQU
EQU
EQU
EQU
EQU
EQU
goto reset
nop
bcf OSCCAL, FOSC4
movwf mode
;
movlw b’00001111’
;
movlw b’01010011’
movwf 0x07
;
clrf GPIO
movlw 0x0E
tris GPIO
;
bcf STATUS, GPWUF
btfsc STATUS, CWUF
goto wake
btfsc STATUS, GPWUF
goto wake
btfss STATUS, TO
goto wake
btfss STATUS, PD
goto wake
goto init_vars
movwf timerh
movwf timerl
;
movlw led_hi_on
;on timer high byte
;on timer low byte
;when set a debounced user keypress has been detected
;when clear the debounce timer will not increment
;mode select button
;pwm output
H’0004’
H’0003’
H’0007’
H’0006’
H’0006’
H’0004’
H’0000’
;initalize mode, upon wake up led will be at low intensity
; GP2/T0CKI/COUT applied to GP2 pin
;configure for wake on port change
;disable the comparator
;write to CMCON0
;configure port
;test for wake up or reset
;initialize vars
;calculate off times based on time remaining in
00016R1.asm Source Code
DS51551A-page 21

Related parts for MCP1252DM-BKLT