Yahoo Groups archive

AVR-Chat

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

Message

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]

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.