I am working with FRDM-KL25Z EVM.with this controller i interfaced M95M02-DR EEPROM using SPI communication.As per datasheet of this EEPROM to write in EEPROM first we have to send WREN(Write Enable) command so i send this command and i also attached waveform of this in Figure_1.jpg(in attachment).
Then i follow the waveform given in datasheet of this EEPROM for writting and its waveform is given in Figure_2.jpg(in attachment).
After writting data in address i read the data from same address but i am not getting the data which i have written instead i am getting 0x00 only.Detailed read cycle's waveform is given in Figure_3.jpg(in attachment).
By observing waveform of read cycle i see that in MISO pin i am getting data which i was written but in SPI0_D(SPI Data Register) i am not getting data which i see in MISO pin's waveform.so why SPI0_D register not getting update value?
As per the Oscilloscope waveform's observation all the waveforms are correct as per the datasheet of EEPROM.i also attached my code for your reference.
Please help me so that i can read data from EEPROM.Any help in this will be appreciated more.
Original Attachment has been moved to: Code_and_Waveforms.zip