| Electronic Components Datasheet Search |
|
MCP2150 Datasheet(PDF) 21 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP2150 Datasheet(HTML) 21 Page - Microchip Technology |
|
21 / 52 page ![]() 2002 Microchip Technology Inc. Preliminary DS21655B-page 21 MCP2150 EXAMPLE 2-1: PIC16FXX Code to Program the Device ID (Continued) ctsLow clrf breg ; clear the offset call string1 ; get the byte count ; (ID length byte + # bytes in string) movwf creg ; use creg as the loop counter incf creg, f ; add 1 to the loop count since ; we're jumping into the middle movwf areg ; save the count in areg to send it goto sndwt ; start sending the count + ID string ; sndlp call string1 ; get the byte movwf areg ; save the byte sndwt btfsc cts ; check the cts input goto sndwt ; wait if cts=1 call txser ; send the byte using the Transmit Routine incf breg,f ; increment the table pointer decfsz creg, f ; more bytes to send? goto sndlp ; YES, send more bytes ; bcf clr ; NO, place the MCP2150 in reset bcf dtr ; Force the DTR pin low for normal mode bsf rts ; Force the RTS pin high for normal mode call delay1mS ; delay for 1 ms. bsf clr ; allow the MCP2150 to come out of reset ; ctsLP2 btfss cts ; if cts=1 then MCP2150 is in Normal mode goto ctsLP2 ; NO, wait for MCP2150 to be ready goto NormalOperation ; The MCP2150 in now programmed with new ID, ; and is ready to establish an IR link |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |