Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] I2C Communicaton via Codevison

Re: [AVR-Chat] I2C Communicaton via Codevison

2008-03-22 by dilipsilga

Chech ddrx for sda/scl also check i/o define at startup c file #asm{}

Sent from my iPhone

On Mar 20, 2008, at 12:24 AM, "Benny Smith" <benny@inch-worm.com> wrote:



I have written a short program using the Codevision AVR C-compiler (version
1.25.8a) to communicate between an ATMega128 and an electronic compass chip
using the I2C (inter-integrated-circuit) functions in Codevision.

So far, no luck. I have followed the example shown in the CV-AVR Help file.
Using an oscilloscope, I do not see any activity at either of the Mega128
ports that I have designated for I2C communication.

Has anyone else used the Codevision compiler's I2C functions and been
successful?

I have described my problem in an email to Pavel Haiduc at HPInfoTech
(author of Codevision) but he has not yet responded.

Benny Smith

Santa Rosa, CA

_._,___ 

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






      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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

RE: [AVR-Chat] I2C Communicaton via Codevison

2008-03-22 by Benny Smith

Thanks for the input, everyone.

 

I added an additional start command (in CodeVision AVR, this is: i2c_start()
) and that did the trick.

 

I also made the connections between the ATMega128 and the i2c slave chip as
short as possible.

 

It works perfectly now.

 

The Codevision i2c functions are pretty slick.

 

Benny Smith
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of dilipsilga
Sent: Saturday, March 22, 2008 4:33 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] I2C Communicaton via Codevison

 

Chech ddrx for sda/scl also check i/o define at startup c file #asm{}

Sent from my iPhone

On Mar 20, 2008, at 12:24 AM, "Benny Smith" <benny@inch-worm.
<mailto:benny%40inch-worm.com> com> wrote:

I have written a short program using the Codevision AVR C-compiler (version
1.25.8a) to communicate between an ATMega128 and an electronic compass chip
using the I2C (inter-integrated-circuit) functions in Codevision.

So far, no luck. I have followed the example shown in the CV-AVR Help file.
Using an oscilloscope, I do not see any activity at either of the Mega128
ports that I have designated for I2C communication.

Has anyone else used the Codevision compiler's I2C functions and been
successful?

I have described my problem in an email to Pavel Haiduc at HPInfoTech
(author of Codevision) but he has not yet responded.

Benny Smith

Santa Rosa, CA

_._,___ 

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

__________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. Try it now. http://mobile.
<http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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

 



[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.