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]
Message
Re: [AVR-Chat] Bitbanging SMBus
2007-02-26 by Ned Konz
Attachments
- No local attachments were found for this message.