Sign in

username:

password:



Not a member?

Search AT91SAM



Search tips

Subscribe to AT91SAM



Ads

Discussion Groups

Discussion Groups | AT91SAM ARM | [at91sam7x-ek] more TWI?

For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU. This group is to exchange information to help users get started and learn how to use the devices.

[at91sam7x-ek] more TWI? - dawido85 - Jul 21 8:54:21 2008

Hi,
I'm wondering, if it's possible to implement more than one TWI
interface? Can I use predefined registers? Can I control more then one
peripheral at once?
------------------------------------



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )


Re: [at91sam7x-ek] more TWI? - Tony Brenke - Jul 21 12:24:02 2008

twi is set to run 128 devices all connected to the same bus.
if you need more then that, there are buss switches that will parallel your lines and give you 126 addresses per.

----- Original Message -----
From: dawido85
To: A...@yahoogroups.com
Sent: Monday, July 21, 2008 1:00 AM
Subject: [AT91SAM] [at91sam7x-ek] more TWI?
Hi,
I'm wondering, if it's possible to implement more than one TWI
interface? Can I use predefined registers? Can I control more then one
peripheral at once?



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: [at91sam7x-ek] more TWI? - Charles Manning - Jul 22 0:53:37 2008

On Tuesday 22 July 2008 04:23:20 Tony Brenke wrote:
> twi is set to run 128 devices all connected to the same bus.
> if you need more then that, there are buss switches that will parallel your
> lines and give you 126 addresses per.

Electrical fanout means that you will unlikely be able to achieve anywhere
near 128 devices unless you use some sort of redriving circuitry.

> Hi,
> I'm wondering, if it's possible to implement more than one TWI
> interface? Can I use predefined registers? Can I control more then one
> peripheral at once?

As well as using more than 1 device on the TWI bus you can also implement a
bit-bashed I2C interface, as is done on the Lego NXT.
------------------------------------



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: [at91sam7x-ek] more TWI? - dawido85 - Jul 22 8:06:12 2008

--- In A...@yahoogroups.com, Charles Manning wrote:
>
> On Tuesday 22 July 2008 04:23:20 Tony Brenke wrote:
> > twi is set to run 128 devices all connected to the same bus.
> > if you need more then that, there are buss switches that will
parallel your
> > lines and give you 126 addresses per.
>
> Electrical fanout means that you will unlikely be able to achieve
anywhere
> near 128 devices unless you use some sort of redriving circuitry.
>
> > Hi,
> > I'm wondering, if it's possible to implement more than one TWI
> > interface? Can I use predefined registers? Can I control more
then one
> > peripheral at once?
>
> As well as using more than 1 device on the TWI bus you can also
implement a
> bit-bashed I2C interface, as is done on the Lego NXT.
>

Yes, I know i can connect more devices to TWI interface, depending on
line capacitance. But can I use e.g. at91sam7x to drive simultaneous
few slave devices? I'm wondering if I should implement more than one
master TWI device in at91sam7x (use different registers and PIOs) or
i should try to write information in delay time between each byte
being write (before I get transmission complete confirmation)?

------------------------------------



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: [at91sam7x-ek] more TWI? - Rick Collins - Jul 22 8:21:54 2008

--- In A...@yahoogroups.com, "dawido85" wrote:
>
> Yes, I know i can connect more devices to TWI interface, depending on
> line capacitance. But can I use e.g. at91sam7x to drive simultaneous
> few slave devices? I'm wondering if I should implement more than one
> master TWI device in at91sam7x (use different registers and PIOs) or
> i should try to write information in delay time between each byte
> being write (before I get transmission complete confirmation)?

There is also a limitation based on address duplication. Some devices
have a single address, others have a small, limited number of
addresses they can use. So you can only put the full number of
devices on a single TWI bus if there is a lot of diversity. If you
want to connect even just 16 of the same device, you will need
multiple buses, possibly a lot of them.

Rick
------------------------------------



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: Re: [at91sam7x-ek] more TWI? - Tony Brenke - Jul 22 10:16:29 2008

I supose you could, but why?
if you need to talk to something that fast then the twi buss was the wrong interface to get the chip in.

see if you other item comes in SPI, that at least can run 1Mhz on some chips.

----- Original Message -----
From: dawido85
To: A...@yahoogroups.com
Sent: Tuesday, July 22, 2008 12:10 AM
Subject: [AT91SAM] Re: [at91sam7x-ek] more TWI?
--- In A...@yahoogroups.com, Charles Manning wrote:
>
> On Tuesday 22 July 2008 04:23:20 Tony Brenke wrote:
> > twi is set to run 128 devices all connected to the same bus.
> > if you need more then that, there are buss switches that will
parallel your
> > lines and give you 126 addresses per.
>
> Electrical fanout means that you will unlikely be able to achieve
anywhere
> near 128 devices unless you use some sort of redriving circuitry.
>
> > Hi,
> > I'm wondering, if it's possible to implement more than one TWI
> > interface? Can I use predefined registers? Can I control more
then one
> > peripheral at once?
>
> As well as using more than 1 device on the TWI bus you can also
implement a
> bit-bashed I2C interface, as is done on the Lego NXT.
>

Yes, I know i can connect more devices to TWI interface, depending on
line capacitance. But can I use e.g. at91sam7x to drive simultaneous
few slave devices? I'm wondering if I should implement more than one
master TWI device in at91sam7x (use different registers and PIOs) or
i should try to write information in delay time between each byte
being write (before I get transmission complete confirmation)?



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: Re: [at91sam7x-ek] more TWI? - Tony Brenke - Jul 22 10:18:52 2008

try reading this.
it may help with your problem.
http://www.nxp.com/acrobat_download/various/philips_i2c_handbook.pdf
----- Original Message -----
From: Rick Collins
To: A...@yahoogroups.com
Sent: Tuesday, July 22, 2008 5:21 AM
Subject: [AT91SAM] Re: [at91sam7x-ek] more TWI?
--- In A...@yahoogroups.com, "dawido85" wrote:
>
> Yes, I know i can connect more devices to TWI interface, depending on
> line capacitance. But can I use e.g. at91sam7x to drive simultaneous
> few slave devices? I'm wondering if I should implement more than one
> master TWI device in at91sam7x (use different registers and PIOs) or
> i should try to write information in delay time between each byte
> being write (before I get transmission complete confirmation)?

There is also a limitation based on address duplication. Some devices
have a single address, others have a small, limited number of
addresses they can use. So you can only put the full number of
devices on a single TWI bus if there is a lot of diversity. If you
want to connect even just 16 of the same device, you will need
multiple buses, possibly a lot of them.

Rick



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )

Re: [at91sam7x-ek] more TWI? - dawido85 - Jul 23 6:20:59 2008

--- In A...@yahoogroups.com, "Tony Brenke" wrote:
>
> I supose you could, but why?
> if you need to talk to something that fast then the twi buss was the
wrong interface to get the chip in.
>
> see if you other item comes in SPI, that at least can run 1Mhz on
some chips.
>

I use SPI too, but I need to use TWI to program devices that are
already in use... and my task is to program more than 1 device at the
same time, anyway, thanks for the link
------------------------------------



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )