A particular sequence of steps are to be followed to perform WRITE operation to EEPROM. Below are the steps.
- Communication starts with START condition
- SDA is pulled low by MASTER when SCL is HIGH
- Followed by START bit the ADDR of the slave is to be sent by MASTER
- ACK has to sent by the SLAVE after receiving it's address
- MASTER has to share the Higher ADDR Byte of EEPROM to which data has to be written
- SLAVE has to send ACK for this Byte
- MASTER has to share the Lower ADDR Byte of EEPROM to which data has to be written
- SLAVE has to send ACK for this Byte
- MASTER then has to send data Byte of data to be written to EEPROM
- SLAVE has to send ACK for this Byte
- If the MASTER wants it might send STOP condition which releases the bus
One important point we notice is that communication happens Byte by Byte between the MASTER and the SLAVE.
1 Comments
Embedded System Interview Questions and Answers
ReplyDelete