Re: TWI code example for two AVR
- From: "SioL" <Sio_spam_L@xxxxxxxx>
- Date: Fri, 8 Sep 2006 13:21:34 +0200
"pidy" <danpidal@xxxxxxxxx> wrote in message news:s5Sdnf3WSo4cvpzYnZ2dneKdnZydnZ2d@xxxxxxxxxxxxxxx
pidy wrote:
Will the master always be the master and the slave always the slave?
SioL
yes
Then you don't need to consider master-slave operation.
Graham
uhm... what u mean??
It means you just need to configure one of the AVR as a slave and
the other as a master. Should be pretty easy.
I suggest you setup the master first and than test it with a known working
slave, perhaps eeprom. Once that is working setup the other AVR as a slave
and work on it until the entire system is working.
It may be helpful to have storage scope or logic analyzer to check the bus,
if you get stuck.
C source for slave and master is available from atmel or avrfreaks, its the asm
code that's a bit harder to find from my experience (but it exists as well).
http://www.atmel.com/dyn/products/app_notes.asp?family_id=607
check avr310,avr311 and others
SioL
.
- Follow-Ups:
- Re: TWI code example for two AVR
- From: Eeyore
- Re: TWI code example for two AVR
- References:
- TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: SioL
- Re: TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: MK
- Re: TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: Eeyore
- Re: TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: Eeyore
- Re: TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: SioL
- Re: TWI code example for two AVR
- From: pidy
- Re: TWI code example for two AVR
- From: Eeyore
- Re: TWI code example for two AVR
- From: pidy
- TWI code example for two AVR
- Prev by Date: Re: LM741 with single end supply?
- Next by Date: Re: Flame detection
- Previous by thread: Re: TWI code example for two AVR
- Next by thread: Re: TWI code example for two AVR
- Index(es):
Relevant Pages
|