Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - I2C "SCL" line problem

 
Thread Tools Search this Thread
Old 09-02-2005, 05:28 AM   #1
Default I2C "SCL" line problem


Hi all,

I faced the following problem with my I2C slave code(VHDL).

I was incrementing a counter on the negative edge of SCL(this clock is
coming from the processor's I2C port , 100 KHz frequency).
But what i observed on the CRO was that my bit counter which was
running on the "negative edge" of SCL , was incrementing on "positive
edge" also and this was not happening always.

The solution to this problem was i inverted the incomimg clock "SCL"
and used the rising edge to increment my counter now it was fine.

Can any I2C experts clarify what is the problem with working on
"negative edge of "SCL" clock.


Regards,
Prav



praveen.kantharajapura@gmail.com
  Reply With Quote
Old 09-02-2005, 10:33 AM   #2
woko
 
Posts: n/a
Default Re: I2C "SCL" line problem
Hi Praveen,

I would say that you disturbance on your SCL falling edge. If your
device see a short falling peak on the rising edge it could be falsely
interpreted as falling edge. See for the xilinx article "Two Simple
Solutions for Tricky Problems", solution "B" could help you.

Its interesting that you have trouble on I2C with the falling edge.
Because the devices pull to low level and let it float to high, I
thought you should have trouble on the rising edge.

cheers,

Wolfgang Kopp



woko
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 2501 serail Port Line Protocol problem bongo6 Hardware 0 03-01-2008 10:17 PM
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 10:36 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46