FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2006, 09:24 AM
[email protected]
Guest
 
Posts: n/a
Default I2C timing problem

hi!
i am developing i2c master in FPGA. suppose ia m transmitting 1.
i have doubt whether data transition should be at mid edge of
scl when it is low or at the falling edge as in the below waveform.

scl -------------- ----------------------
| |
|
/ here
| / or |
|
------------------
----------------------------
|-------------------
| here |
SDA ----------------------
|------------------------------------

Reply With Quote
  #2 (permalink)  
Old 02-08-2006, 03:12 PM
Gabor
Guest
 
Posts: n/a
Default Re: I2C timing problem

The timing spec you want in the I2C bus specification is called
tHD (data hold time after falling edge of SCL). Minimum spec is
0 ns (like your first picture) maximum depends on whether you are
driving SCL or not. For a master just be sure to meet the setup
time to the next rising edge of SCL. For a slave, you need to observe
the maximum for the clock rate used, because you can only control
the rising edge of SCL if you implement clock stretching. For 100 KHz
devices, the max is 3.45 uS. for 400 KHz it is 900 nS.

The best practice is usually to sense that the SCL line has fallen
using feedback from the pin, and then allowing the data to change.

Regards,
Gabor

[email protected] wrote:
> hi!
> i am developing i2c master in FPGA. suppose ia m transmitting 1.
> i have doubt whether data transition should be at mid edge of
> scl when it is low or at the falling edge as in the below waveform.
>
> scl -------------- ----------------------
> | |
> |
> / here
> | / or |
> |
> ------------------
> ----------------------------
> |-------------------
> | here |
> SDA ----------------------
> |------------------------------------


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cox of timing problem? Smith Verilog 5 04-11-2006 03:24 PM
problem with timing simulation (clear explanation of problem) [email protected] FPGA 1 12-06-2005 12:50 PM
problem with timing simulation [email protected] FPGA 0 12-03-2005 01:30 AM
register timing problem thomasc Verilog 0 03-31-2005 04:57 AM
register timing problem thomasc Verilog 0 03-31-2005 03:47 AM


All times are GMT +1. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved