I am using Atollic. This is the link to the datasheet of the memory - http://www.atmel.in/Images/Atmel-5165-SEEPROM-AT25512-Datasheet.pdf I have some doubts - can you please resolve them?
1. When I check the clock on the Oscilloscope - I don't get a square wave (it's something like a square wave with it's upper part curved), why is that happening? Is it OK to not to have a perfectly square wave?
2. What's wrong with the code below, I am trying to read the status register of the EEPROM. received_val remains 0 even after completely executing the code (I am debugging step by step)