Problem interfacing External I2C microchip EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem interfacing External I2C microchip EEPROM

742件の閲覧回数
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 返信

535件の閲覧回数
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 件の賞賛