Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Re: Strange issue with I2C master

2013-05-19 by Dave McLaughlin

OK. I have it working now.

 

I was calling i2c_start_wait and this for some reason was generating a clock
because it was looping around.

 

Changing to i2c_start it now works.

 

:)

 

 

Cheers

Dave.

 

 

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of englsprogeny1
Sent: 19 May 2013 20:54
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: Strange issue with I2C master

 

  

Hi Dave,

Can you give us a code example?

I see that this library is to be used with GCC.

I always use external pullup resistors on my I2C lines.

Is something else trying to write to the DIO used for SDA?

--- In AVR-Chat@yahoogroups.com <mailto:AVR-Chat%40yahoogroups.com> , "Dave
McLaughlin" <dave_mclaughlin@...> wrote:
>
> Hi all,
> 
> 
> 
> I have an ATMega328P and trying to use the I2C Master interface but when I
> send the start bit I am seeing a series of what appears to be clocks on
the
> SCL line and nothing on the SDA.
> 
> 
> 
> I would expect SDA to be high at the same time as SCL goes hi and then SDA
> goes low but all I see is a clock output on SCL.
> 
> 
> 
> 
> 
> I am using the library from this website.
> 
> 
> 
> http://homepage.hispeed.ch/peterfleury/group__pfleury__ic2master.html
> 
> 
> 
> 
> 
> Any ideas what I am missing?
> 
> 
> 
> Dave.





[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.