Problem interfacing External I2C microchip EEPROM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem interfacing External I2C microchip EEPROM

756 次查看
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 项奖励
1 回复

549 次查看
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 项奖励