Hi,
Thanks for your reply, i have tried following simple code but getting error for I2Cwrite (I2cRead is OK), please check whats wrong with this code. is there something missing......?
'*********************
Device 16F689
Config FCMEN_ON, IESO_OFF, CPD_OFF, CP_OFF, MCLRE_ON, PWRTE_ON, WDT_OFF, INTRC_OSC_NOCLKOUT,BOR_OFF
TRISC=%00000000
Declare All_Digital = True
Xtal=8
Symbol Dpin PORTC.4
Symbol Cpin PORTC.6
DelayMS 100
main:
I2CWRITE Dpin,Cpin,$72,$80,[$3]
I2CREAD Dpin,Cpin,$72,$80,[$3]
End
Bookmarks