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  [ 2 posts ] 
Author Message
 Post subject: can't pull down twi data line as slave
PostPosted: Wed Jul 05, 2006 4:52 pm 
Offline

Joined: Tue Feb 28, 2006 12:31 pm
Posts: 4
Hi,

I'm trying to implement a software TWI slave on at91sam7s256, but i got a problem on pulling down the data line for acknowledge. As far as i understood the specification, the clock/data-line should be open-collector. My TWI master is configured as open-collector but when i try to clear the output the data line still remains high, so that the master doesn't see the slave. I tried to change the IO port to output and clear the IO port and set it back to input after acknowledge. This works, but is very time critical since a have a 100 khz clock to serve.

Another question is: Reading the GPIOs takes a very long time. Is there a mistake in my source or is it the AT91SAM, which needs so much time?

thanks
Anibal


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 5:53 pm 
Offline

Joined: Fri Mar 24, 2006 7:33 pm
Posts: 29
GPIO ports are faster than on other ARM7s

-Olimex

_________________
Amateurs built the ark...
Professionals built the Titanic...


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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: