What is the clock generating diagram I2C protocol while sending Data & Address from mater to slave.

Thread Starter

shetsachin

Joined Jul 5, 2017
23
I need to communicate between Micro controller & FPGA(frame grabber card) using I2C protocol.
I want to know if data 5 has been sent from Master (Controller) what will be the clock generation.
Using clock generation i can set frame grabber card as readable.

Is this possible or can we determine the I2C clock cycle generated?
 

Thread Starter

shetsachin

Joined Jul 5, 2017
23
Did you read the document I provided? For example Fig. 6 on p. 10. Do I really need to hold your hand or can you do this on your own.
upload_2017-9-21_17-31-35.png
I know that, the red marked data clock pulse i need to know.
For ex: If i need to send 5 what will be data clock pulse diagram.
I tried in several manuals & application note, didn't get.
 

Attachments

Papabravo

Joined Feb 24, 2006
22,058
I understand now. You need to send data in groups of 8 bits because the I2C state machine in the peripheral will send an ACK on the 9th bit. If your data does not require all 8 bits then you pad with zeros on the left. For Example is you want to send 5 = 0b101, the you must send 0b00000101. Do you get the picture?
 

LesJones

Joined Jan 8, 2017
4,511
My understanding of the significance of the 5 bit question is the TS does not realise that the diagram is just saving space by not showing bits 3 to 8 in full. I don't even know if he plans to use a microcontroller with no hardware support for I2C and so all the work is done in software and just use IO port bits. I used a PIC12F1840 which has a master synchronous serial port which does a lot of the work.

Les.
 

Papabravo

Joined Feb 24, 2006
22,058
My understanding of the significance of the 5 bit question is the TS does not realise that the diagram is just saving space by not showing bits 3 to 8 in full. I don't even know if he plans to use a microcontroller with no hardware support for I2C and so all the work is done in software and just use IO port bits. I used a PIC12F1840 which has a master synchronous serial port which does a lot of the work.

Les.
I've got to admit there was not a great deal of useful details in the original post, and it was certainly short on the actual requirements.
 
Top