BANKSEL I2C_Addr ; The \"BANKSEL\" may not necessary if I2C_Addr is @ the same bank with SSPBUF movf I2C_Addr,W ; The Address you wish to \"READ\" from BANKSEL SSPBUF movwf SSPBUF call WaitI2C call RstartI2C ; Restart Condition !! call WaitI2C ; Wait Until Restart OK !! BANKSEL SSPBUF movlw B\'10100001\' ; Write Read Command movwf SSPBUF call WaitI2C call RecI2C ; Enable I2C Receive call WaitI2C ; Wait Until Buffer Received BANKSEL SSPBUF movf SSPBUF,W ; Save to I2C_Data First !!
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore