Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: AT91RM9200 TWI/I2C compatibility.
PostPosted: Wed Jan 05, 2005 12:30 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
in AT91RM9200 is TWI two wire interface compatible with I2C standard ?

If yes, I wonder why this was not declared in the datasheet ?

Thanks for your attention.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 1:00 pm 
Offline

Joined: Thu Mar 25, 2004 12:10 am
Posts: 126
Location: Germany
Hi Misha,
as far as i know the TWI and the I2C are compatible. Perhaps they are the same.

But it is "cheaper" to say TWI as I2C (trademark). :)

Best regards,
Edi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 3:56 pm 
Offline

Joined: Wed Apr 07, 2004 5:47 pm
Posts: 52
Location: Scotland
Misha

I use the TWI interface on a number of I2C devices with no problem. I usually run at 400kHz but also on one device (old) at 100kHz.

The TWI interface needs pulling high via a couple of 2.2k resistors and I found that the addition of two 10pF caps to load the lines helped with an occasional power on problem.

I believe the term I2C is a copyright to Philips. Hence atmels term TWI.

Hope this helps.

Simon


Top
 Profile  
 
 Post subject: Replay to TWI/I2C compatibility question.
PostPosted: Wed Jan 05, 2005 5:54 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
This sure will help me - Thank you again.

Simon wrote:
Misha

I use the TWI interface on a number of I2C devices with no problem. I usually run at 400kHz but also on one device (old) at 100kHz.

The TWI interface needs pulling high via a couple of 2.2k resistors and I found that the addition of two 10pF caps to load the lines helped with an occasional power on problem.

I believe the term I2C is a copyright to Philips. Hence atmels term TWI.

Hope this helps.

Simon


Top
 Profile  
 
 Post subject: Replay to TWI/I2C compatibility
PostPosted: Wed Jan 05, 2005 5:56 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
Thanks for your prompt replay.... :D

edi wrote:
Hi Misha,
as far as i know the TWI and the I2C are compatible. Perhaps they are the same.

But it is "cheaper" to say TWI as I2C (trademark). :)

Best regards,
Edi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 1:48 pm 
Offline

Joined: Wed Jun 16, 2004 1:25 pm
Posts: 12
Location: Sophia Antipolis, France
Simon wrote:
Misha

I use the TWI interface on a number of I2C devices with no problem. I usually run at 400kHz but also on one device (old) at 100kHz.

The TWI interface needs pulling high via a couple of 2.2k resistors and I found that the addition of two 10pF caps to load the lines helped with an occasional power on problem.

Simon


Simon,

Are you sure it is possible to use both speeds on the bus ?
In my opinion you have to choose the speed of the slower device unless it will be 'disturbed' by faster messages on the bus.
I have currently a problemm similar to yours.
I had 2 fast devices (EEPROM, RTC) on the bus and I had to add another old slow one (IO expander Philips PCF8574). I had (too) strongs pullups on the bus : 1kO.
I configured the bus to 100kHz. The IO expander didn't respond. I had to change the pullups to 4.7kO in order to soften the timings to make the expander work. It seems a little bit bizare to me for the moment ...

Jean-Jacques


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 11:43 am 
Offline

Joined: Wed Apr 07, 2004 5:47 pm
Posts: 52
Location: Scotland
Jack

It did work for me !. It took me a long time to sort it all out though and the bus termination was critical. I also found the order on the bus was important, or rather in one arrangement it worked (slower device very close to master) and in another case (slower device on end of bus next to terminators) it didn't.

I added a checksum to my memory so for every read I made sure it had worked. All a bit messy.

I also found that if I power cycled too fast (didn't let the 3.3v decay to 0) then the TWI bus would fail completely on next reset.

As soon as possible I changed to all 400kHz and wont do it again. :D

Hope it helps and you find a work around.

Simon


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: