asimov_18
Member level 2
- Joined
- Sep 25, 2006
- Messages
- 45
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- London---UK
- Activity points
- 1,816
Hello Users,
I have a very basic question about I2C.
I am interfacing a micro(any micro) to an I2c memory device.
If i wish to read only 1 byte from a particular memory address
I would send the following commands.
1) Start condition
2) device address+ write command bit active
3) Check if acknowledgement received
4) Write address of the memory location
5) Check if acknowledgement received
6) Generate a repeated start condition
7) Give device address+read command bit active
8) Check if acknowledgement received
9) generate the clock and read the first byte
10) Generate the acknowledgement or not?
11) Generate the stop condition
I just wish to know is the 10 step correct or not. Do I give an acknowledgment
or not after reading my 1st (and only byte to be read)?
Asimov
I have a very basic question about I2C.
I am interfacing a micro(any micro) to an I2c memory device.
If i wish to read only 1 byte from a particular memory address
I would send the following commands.
1) Start condition
2) device address+ write command bit active
3) Check if acknowledgement received
4) Write address of the memory location
5) Check if acknowledgement received
6) Generate a repeated start condition
7) Give device address+read command bit active
8) Check if acknowledgement received
9) generate the clock and read the first byte
10) Generate the acknowledgement or not?
11) Generate the stop condition
I just wish to know is the 10 step correct or not. Do I give an acknowledgment
or not after reading my 1st (and only byte to be read)?
Asimov