yet still another pointless snippet , with nothing defined
I2CREAD DPIN,CPIN,$A0,B0,X
you persist in using incorrect syntax , it should be
I2CREAD DPIN,CPIN,$A0,B0,[X ]
proper code, not snippet with undefined rubbish, its not hard
what a write looks likeCode:#CONFIG __config _CONFIG1, _FOSC_INTOSC & _CP_OFF & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CLKOUTEN_OFF __config _CONFIG2, _PLLEN_ON & _LVP_OFF #ENDCONFIG ;pic16f1825 DEFINE OSC 32 OSCCON=$70 ANSELA=0 ANSELC=0 trisa.0=0 DEFINE I2C_SLOW 1 ANSELA = 0 a Var Byte addr Var word ar Var Byte SCL var Porta.2 SDA var Porta.1 lata.0=1 DEFINE DEBUG_REG PORTA DEFINE DEBUG_BIT 0 ; if not used for pwr DEFINE DEBUG_BAUD 9600 DEFINE DEBUG_MODE 0 pause 2000 Debug 13,10,"Start",13 ,10 a=20 addr=$200 I2cwrite Sda,SCL,$a0 ,addr,[a] pause 10 addr=$200 I2CREAD Sda,SCL,$a0 ,addr,[ar ] debug 13,10,sdec ar end
what a read looks like
![]()




Bookmarks