Have somebody working with PIC12CE673 EEPROM? This 8-pin device has internal 16 bytes EEPROM. My MPLAB (v4.99) do not support EEPROM, so I cant verify my code with simulator. Also I can't measure because the code in inside the PIC. Who knows if newer MPLAB versions support pic12CE672/EEPROM? EEPROM in like external 8-byte address I2C device inside PIC.=20 External port GPIO in address 5 because Microchip ADC us PORTA. EEPROM is in port 6 (i.e. PORTB). I use a standard I2c routines to read and write I2C. PICC definitions for CCS/PCM/PCW=20 ------ #define EEPROM_SDA PIN_B6 #define EEPROM_SCL PIN_B7 #use i2c(master,sda=3DEEPROM_SDA, scl=3DEEPROM_SCL) void init_12CE67x_eeprom(void ); byte read_12CE67x_eeprom(byte address);=20 -------- I can't initialize the portb because there is no TRIS register for PORTB in PIC12CE763. Any way I can't get response from EEPROM for first command byte during reading. =20 Is there something what I have missed? I try to use Microchip recommended code for I2C but same result. =20 Pekka=20 --=20 =A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8 Pekka Ritamaki, Probyte Oy Microprocessor software & hardware design Nirvankatu 31, 33820 TAMPERE, FINLAND http://www.sci.fi/~pri tel: Int. 358-3-2661885 fax: Int. +358-3-2661886 email:pri@sci.fi -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu