Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] I2C Communicaton via Codevison

2008-03-20 by David Kelly

On Mar 19, 2008, at 5:52 PM, Benny Smith wrote:

[...]

> The documentation of these functions is scant, and limited to just  
> what is
> in the Help file. The i2c Help file mentions nothing about data  
> direction
> nor does it say anything about initialization of the AVR.

Thats why I hate canned code. CodeVision's trademark feature is this  
sort of hand holding.

Heck, until recently I used my own EEPROM access routines rather than  
use those provided in avr-libc. Still use my own UART and SPI code.  
Easier to write my own than to understand and/or conform to what  
others did.

> There is a function called "i2c_init()" , which the Help file  
> documents as
> follows:

Linking with other threads, "do you have a debugger?" Set a breakpoint  
before and after i2c_init() and see what the DDR bits look like before  
and after.

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

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.