Re: TWI code example for two AVR



"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



.



Relevant Pages

  • Re: Replikations Frage
    ... vom Master auf den Slave kopiert hast und dabei die Permissions auf ... Die Datenbanken auf den Slave Server laufen ohne Probleme. ... # If you want to know which options a program support, ...
    (de.comp.datenbanken.mysql)
  • Re: When caveman Uhg invented fire
    ... be a business owner. ... But even the smallest "ownership" makes one a slave. ... Any "slave" can become the master. ...
    (alt.lang.asm)
  • Re: One-sided authentication for small micros?
    ... The master has a lookup table of all 'known' slave id's. ... This would reset all the slave keys to their lookup values. ... decides that it is a valid slave and starts to communicate with the slave. ...
    (sci.crypt)
  • Re: FIXMBR redux
    ... William, I did the best I could for you under the circumstances and I did ... >> "To remove the recovery console, delete the cmdcons folder from the root ... > drive as Master and formatted it anew, as Active and Primary, ... I then jumpered it as Slave, ...
    (microsoft.public.windowsxp.basics)
  • Re: Buffered IO and pipes
    ... master with as little waiting around as possible, ... when another slave would actually be ready to write. ... create a 64kB shared memory buffer for every ... "X" to the slave's pipe. ...
    (comp.unix.solaris)

Quantcast