EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

AT91SAM9263 TWI (I2C) interface to RTC......

Started by Kiran February 13, 2009
Dear All,

Any one tried working with TWI (I2C) in AT91SAM9263.

I have interface TWI to RTC (DS1338).

If TWI is enbled there no O/P from these pins(PB4 & PB5),
how ever if these pins are configured as GPIO & I2C run in software, it is working fine.

Can any one tell me about H/W TWI (I2C).

Regards,
Kiran
hi,
I2C lines are in general open drain.
have u tried putting external  pull ups on these.

Thanks.

Regards

Mukesh

--- On Fri, 2/13/09, Kiran wrote:
From: Kiran
Subject: [AT91SAM] AT91SAM9263 TWI (I2C) interface to RTC......
To: A...
Date: Friday, February 13, 2009, 9:40 AM


Dear All,
 
Any one tried working with TWI (I2C) in
AT91SAM9263.
 
I have interface TWI to RTC (DS1338).
 
If TWI is enbled there no O/P from these pins(PB4
& PB5),
how ever if these pins are configured as GPIO &
I2C run in software, it is working fine.
 
Can any one tell me about H/W TWI
(I2C).
 
Regards,
Kiran
 
Did you have pull ups on SDA & SCL ?
I2C is a wired-OR arrangement.

B rgds
Kris

On Fri, 13 Feb 2009 09:40:46 +0530, "Kiran"
wrote:
> Dear All,
>
> Any one tried working with TWI (I2C) in AT91SAM9263.
>
> I have interface TWI to RTC (DS1338).
>
> If TWI is enbled there no O/P from these pins(PB4 & PB5),
> how ever if these pins are configured as GPIO & I2C run in software, it
is
> working fine.
>
> Can any one tell me about H/W TWI (I2C).
>
> Regards,
> Kiran
Yes both line are pull-up,

Kiran
----- Original Message -----
From: m...@virginbroadband.com.au
To: A...
Sent: Friday, February 13, 2009 10:35 AM
Subject: Re: [AT91SAM] AT91SAM9263 TWI (I2C) interface to RTC......
Did you have pull ups on SDA & SCL ?
I2C is a wired-OR arrangement.

B rgds
Kris

On Fri, 13 Feb 2009 09:40:46 +0530, "Kiran"
wrote:
> Dear All,
>
> Any one tried working with TWI (I2C) in AT91SAM9263.
>
> I have interface TWI to RTC (DS1338).
>
> If TWI is enbled there no O/P from these pins(PB4 & PB5),
> how ever if these pins are configured as GPIO & I2C run in software, it
is
> working fine.
>
> Can any one tell me about H/W TWI (I2C).
>
> Regards,
> Kiran

The 2024 Embedded Online Conference