MCP2150 Microchip Technology, Inc., MCP2150 Datasheet - Page 20

no-image

MCP2150

Manufacturer Part Number
MCP2150
Description
The MCP2150 Provides Irda Protocol Handling Plus Bit Encoding/decoding Functionality For Data Terminal Equipment (DTE) Applications in One Low Pincount Device
Manufacturer
Microchip Technology, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP2150-I/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
MCP2150-I/P
Manufacturer:
Microchip
Quantity:
129
Part Number:
MCP2150-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2150-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
MCP2150-I/SS
Manufacturer:
VISHAY
Quantity:
7 011
Part Number:
MCP2150-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2150T-I/SO
Manufacturer:
Microchip
Quantity:
4 656
Part Number:
MCP2150T-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2150T-I/SS
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP2150T-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
MCP2150
EXAMPLE 2-1:
DS21655B-page 20
;#define
;#define
;#define
;#define
;
;*****************************************************************
; String Table
; This table stores a string, breg is the offset.
; is terminated by a null character.
;*****************************************************************
string1 clrf
;
UpdateID
;
ctsLP1
movf
addwf
DT
DT
call
bcf
bsf
bcf
call
bsf
clrf
call
btfss
goto
decfsz LoopCnt, F
goto
goto
dtr
cts
rts
clr
PCLATH
breg, W
PCL, F
D'15'
"My IR ID String"
deviceInit
clr
dtr
rts
delay1mS
clr
LoopCnt
delay1mS
cts
ctsLow
ctsLP1
StuckReset
PIC16FXX Code to Program the Device ID
PORTx, Pinx
PORTx, Pinx
PORTx, Pinx
PORTx, Pinx
; this routine is on page 0
; get the offset
; add the offset to PC
; the first byte is the byte count
; Initialize the PIC16Fxxx
; place the MCP2150 in reset
; Force the DTR pin high for program mode
; Force the RTS pin low for program mode
; delay for 1 ms.
; allow the MCP2150 to come out of reset
; LoopCnt = 0
; delay for 1 ms.
; if cts=0 then we're ready to program
; MCP2150 is ready to receive data
;
; NO, wait for MCP2150 to be ready
; The MCP2150 did not exit reset, do your recovery
;
; Must specify which Port and Which Pin
; Must specify which Port and Which Pin
; Must specify which Port and Which Pin
; Must specify which Port and Which Pin
in this routine.
Preliminary
The string
2002 Microchip Technology Inc.

Related parts for MCP2150