Yahoo Groups archive

AVR-Chat

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

Thread

Bitbanging SMBus

Bitbanging SMBus

2007-02-25 by magzky02

Hello guys,

I made a code to communicate with i2c device and another SMBus device. 
I believe the protocol is thesame except for speed. I am doing it 
bitbang method. for the i2c, no problem. but i cont adopt my code for 
the smbus device. anyone can give me hint on bitbanging smbus? the 
device is LM95235 (temp sensor). 

thanks 

mago

Re: [AVR-Chat] Bitbanging SMBus

2007-02-26 by John Samperi

At 11:54 AM 26/02/2007, you wrote:
>I am doing it bitbang method.

Are you using the code from AVR300 for it? Don't know about SMbus :(


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Bitbanging SMBus

2007-02-26 by mago Umandam

SMBus is a protocol very similar to i2c. does anyone had implemented SMBus using i/o port? 
   
  regards 
   
  mago

John Samperi <samperi@ampertronics.com.au> wrote:
          At 11:54 AM 26/02/2007, you wrote:
>I am doing it bitbang method.

Are you using the code from AVR300 for it? Don't know about SMbus :(

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************



         

 
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.

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

Re: [AVR-Chat] Bitbanging SMBus

2007-02-26 by Ned Konz

magzky02 wrote:
> I made a code to communicate with i2c device and another SMBus device. 
> I believe the protocol is thesame except for speed. I am doing it 
> bitbang method. for the i2c, no problem. but i cont adopt my code for 
> the smbus device. anyone can give me hint on bitbanging smbus? the 
> device is LM95235 (temp sensor). 
>   

What problem are you having with your code and the SMBus? It's defined 
on top of I2C; if you have a working I2C library it should handle SMBus 
OK (though perhaps the timeouts etc. of SMBus wouldn't be handled 
exactly correctly).

Have you read the SMBus specs?

I did a Perl module to do Smart Battery stuff (which is what SMBus was 
designed for); it might help you with the application level. But the 
messaging is very much I2C compatible.

I'm attaching my code in hopes it'll help you.

Ned Konz



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

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.