Problem interfacing External I2C microchip EEPROM

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem interfacing External I2C microchip EEPROM

474 Views
saipriyasubrama
Contributor II

I am using the SKEAZ16NLC part and trying to interface it with an external EEPROM 24LC32A which communicates through I2C. I am using KDS and PE to make the write/read to work.There is a driver for EEPROm in Erich Styger's blog.

Driver for Microchip 24xx Serial EEPROM | MCU on Eclipse 

I have a screengrab of the scope lines on SDA and SCL on the chip.

I see that the ACK bit is not set as a result of which write/read is not happening.

DSC_1521.JPG

Scope image is attached. I am wondering what the issue is. I would like to know if there are any steps to debug this issues.

I stepped through the code and checked for PRIMASK register setting to check if interrupts are enabled and they are. Any help is much appreciated.

Thanks

#kds v3.1.0#s9keazn16‌ i2c eeprom ‌#externaleeprom#how to program nxp mcu

0 Kudos
1 Reply

267 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

What I get from the picture is you want to write to the EEPROM( bit7 is 0). EEPROM acked correctly. Then you send the address 0xff, and the EEPROM acked. Then you finished communication sequence.  It's not a complete sequence. You should send the command completely.

0 Kudos