MCP2150DM Microchip Technology, MCP2150DM Datasheet - Page 21

BOARD DEMO FOR MCP2150

MCP2150DM

Manufacturer Part Number
MCP2150DM
Description
BOARD DEMO FOR MCP2150
Manufacturer
Microchip Technology
Datasheets

Specifications of MCP2150DM

Main Purpose
Interface, IrDA
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP2150
Primary Attributes
IrDA Controller with PIC18F MCU
Secondary Attributes
USB Interface
Processor To Be Evaluated
MCP2150, MCP2155
Processor Series
MCP215x
Interface Type
USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
EXAMPLE 2-1:
ctsLow
;
sndlp
sndwt
;
;
ctsLP2
2002 Microchip Technology Inc.
clrf
call
movwf
incf
movwf
goto
call
movwf
btfsc
goto
call
incf
decfsz
goto
bcf
bcf
bsf
call
bsf
btfss
goto
goto
breg
string1
creg
creg, f
areg
sndwt
string1
areg
cts
sndwt
txser
breg,f
creg, f
sndlp
clr
dtr
rts
delay1mS
clr
cts
ctsLP2
NormalOperation ; The MCP2150 in now programmed with new ID,
PIC16FXX Code to Program the Device ID (Continued)
; clear the offset
; get the byte count
;
; use creg as the loop counter
; add 1 to the loop count since
;
; save the count in areg to send it
; start sending the count + ID string
; get the byte
; save the byte
; check the cts input
; wait if cts=1
; send the byte using the Transmit Routine
; increment the table pointer
; more bytes to send?
; YES, send more bytes
; NO, place the MCP2150 in reset
; Force the DTR pin low for normal mode
; Force the RTS pin high for normal mode
; delay for 1 ms.
; allow the MCP2150 to come out of reset
; if cts=1 then MCP2150 is in Normal mode
; NO, wait for MCP2150 to be ready
; and is ready to establish an IR link
(ID length byte + # bytes in string)
Preliminary
we're jumping into the middle
MCP2150
DS21655B-page 21

Related parts for MCP2150DM