Yahoo Groups archive

AVR-Chat

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

Thread

I2C

I2C

2005-09-01 by aila_alizadeh

hi to all
I want to connect 3 or more avr mcu's to another avr that is master.I 
think that I2C protocol can help me ,but I am not sure .
I work with bascom.
I see some things in the help of this program that I can't know.e.g.
"the chips that t0 pin & int0 pin is not in the same port don't work 
probably with software I2C slave .these chips have build in hardware 
I2C(slave) support ".but don't give any information about hardware 
I2C .
if anyone have any information about this help me ,plz .
other problem : I2C slave use T0 .is it mean that another 
application ,e.g. GETRC5 that use t0 ,can not work with this?
plz help me on this & tell me is I2C right answer for my problem or 
not I should useanother application?!
thanks

Re: I2C

2005-09-11 by behrooz_hariri

Apparently there is no simple way to connect two or more AVRs 
together using I2C protocol in BASCOM, since they are configured as 
masters internally. If you find a solution (Bascom), pls let me know.

Don Kinzer kindly answered to this question of mine, yet I couldn't 
getuse of it, lack of info., like always. See his reply on the list 
under the subject:
[AVR-Chat] Re: I2C between two AVR MCUs

Behrooz.










--- In AVR-Chat@yahoogroups.com, "aila_alizadeh" 
<aila_alizadeh@y...> wrote:
> hi to all
> I want to connect 3 or more avr mcu's to another avr that is 
master.I 
> think that I2C protocol can help me ,but I am not sure .
> I work with bascom.
> I see some things in the help of this program that I can't 
know.e.g.
> "the chips that t0 pin & int0 pin is not in the same port don't 
work 
> probably with software I2C slave .these chips have build in 
hardware 
> I2C(slave) support ".but don't give any information about hardware 
> I2C .
> if anyone have any information about this help me ,plz .
> other problem : I2C slave use T0 .is it mean that another 
> application ,e.g. GETRC5 that use t0 ,can not work with this?
> plz help me on this & tell me is I2C right answer for my problem 
or 
> not I should useanother application?!
> thanks

Re: [AVR-Chat] Re: I2C

2005-09-12 by John Samperi

At 04:15 AM 12/09/2005, you wrote:

>Apparently there is no simple way to connect two or more AVRs
>together using I2C protocol in BASCOM, since they are configured as
>masters internally. If you find a solution (Bascom), pls let me know.

Interesting!! I have never used I2C (used SPI) but I was going
to look at it for a new projects where I could have up to 10
M8535 on the buss. I thought it would be nice to use just 2 wires.
I guess if they are configured as masters then they will be such
in any other programming language.

So I'll go back to my original idea of simply using my everyday
RS485 link internally, even if it is only half a metre in distance.

Regards

John Samperi

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

RE: [AVR-Chat] Re: I2C

2005-09-12 by Q boll

Hi There,

It's possible in Bascom. There is a Lib that an avr can be used as I2C 
slave.

http://www.mcselec.com/i2cslave.htm

Good Luck

Pascal
Show quoted textHide quoted text
>From: "behrooz_hariri" <behrooz_hariri@yahoo.com>
>Reply-To: AVR-Chat@yahoogroups.com
>To: AVR-Chat@yahoogroups.com
>Subject: [AVR-Chat] Re: I2C
>Date: Sun, 11 Sep 2005 18:15:36 -0000
>
>
>Apparently there is no simple way to connect two or more AVRs
>together using I2C protocol in BASCOM, since they are configured as
>masters internally. If you find a solution (Bascom), pls let me know.
>
>Don Kinzer kindly answered to this question of mine, yet I couldn't
>getuse of it, lack of info., like always. See his reply on the list
>under the subject:
>[AVR-Chat] Re: I2C between two AVR MCUs
>
>Behrooz.
>
>
>
>
>
>
>
>
>
>
>--- In AVR-Chat@yahoogroups.com, "aila_alizadeh"
><aila_alizadeh@y...> wrote:
> > hi to all
> > I want to connect 3 or more avr mcu's to another avr that is
>master.I
> > think that I2C protocol can help me ,but I am not sure .
> > I work with bascom.
> > I see some things in the help of this program that I can't
>know.e.g.
> > "the chips that t0 pin & int0 pin is not in the same port don't
>work
> > probably with software I2C slave .these chips have build in
>hardware
> > I2C(slave) support ".but don't give any information about hardware
> > I2C .
> > if anyone have any information about this help me ,plz .
> > other problem : I2C slave use T0 .is it mean that another
> > application ,e.g. GETRC5 that use t0 ,can not work with this?
> > plz help me on this & tell me is I2C right answer for my problem
>or
> > not I should useanother application?!
> > thanks
>
>
>
>
>
>

RE: [AVR-Chat] Re: I2C

2005-09-12 by John Samperi

At 03:23 PM 12/09/2005, you wrote:
>Hi There,
>
>It's possible in Bascom. There is a Lib that an avr can be used as I2C
>slave.


'The Slave library will only work for chips that have T0 and INT0 
connected to the same PORT.
'These chips are : 2313,2323, 2333,2343,4433,tiny22, tiny12,tiny15, M8
'The other chips have build in hardware I2C(slave) support.

So the library seems to be a software I2C for chips that do not
have I2C, but it seems that other chips with I2C built in (M8535?)
can be used as master or slave devices. If anyone with I2C experience
would care to comment......or else I'll have to read the manual :-)


Regards

John Samperi

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

RE: [AVR-Chat] Re: I2C

2005-09-12 by Alex Shepherd

> Apparently there is no simple way to connect two or more AVRs 
> together using I2C protocol in BASCOM, since they are configured as 
> masters internally. If you find a solution (Bascom), pls let me know.

Most I2C libraries I've seen only do Master or Slave but not both.

AFAICT the main BASCOM library is a Master only, but they do also have a
software based Slave I2C library that you have to purchase separately, which
allows any AVR with I2C hardware or not to be a Software I2C Slave. I
brought it for US$ 1, but never used it.

The only library I have seen that is supposed to handle Master to Master I2C
comms as well as Master to Slave is the Procyon AVRlib by Pascal Stang. See:

http://hubbard.engr.scu.edu/embedded/avr/avrlib/docs/html/i2c_8c.html 

Cheers

Alex

Re: [AVR-Chat] Re: I2C

2005-09-14 by Thomas Keller

Maybe you should lokk at the so-called "TWI (Two Wire interface)
supported by a number of the AVRs, including, IIRC, the 8535.

Tom
Show quoted textHide quoted text
On Mon, 2005-09-12 at 13:55 +1000, John Samperi wrote:
> At 04:15 AM 12/09/2005, you wrote:
> 
> >Apparently there is no simple way to connect two or more AVRs
> >together using I2C protocol in BASCOM, since they are configured as
> >masters internally. If you find a solution (Bascom), pls let me know.
> 
> Interesting!! I have never used I2C (used SPI) but I was going
> to look at it for a new projects where I could have up to 10
> M8535 on the buss. I thought it would be nice to use just 2 wires.
> I guess if they are configured as masters then they will be such
> in any other programming language.
> 
> So I'll go back to my original idea of simply using my everyday
> RS485 link internally, even if it is only half a metre in distance.
> 
> Regards
> 
> John Samperi
> 
> ******************************************************
>                          Ampertronics Pty. Ltd.
>    11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
>           Tel. (02) 9674-6495       Fax (02) 9674-8745
>                 Email: samperi@ampertronics.com.au
>                   Website  http://www.ampertronics.com.au
> * Electronic Design   * Custom Products   * Contract Assembly
> ******************************************************
> 
> 
> 
> 
> ______________________________________________________________________
> YAHOO! GROUPS LINKS
> 
>      1.  Visit your group "AVR-Chat" on the web.
>           
>      2.  To unsubscribe from this group, send an email to:
>          AVR-Chat-unsubscribe@yahoogroups.com
>           
>      3.  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>         Service.
> 
> 
> ______________________________________________________________________
>

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.