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  [ 1 post ] 
Author Message
 Post subject: USART strange behavior in Sync mode
PostPosted: Tue May 31, 2011 11:57 am 
Offline

Joined: Tue May 31, 2011 11:26 am
Posts: 2
Hi,

I have configured USART3 of AT91SAM9xe in synchronous 6-bit mode with external clock source.
An I/O as external interrupt source, with an ISR which simply puts a character(6-bit value) in THR register of USART.

The problem is that i do not see data on TXD right after writing to THR, but its one complete cycle delayed which destroys all the timing at the receive device.

What i dont understand is why is there a delay between THR write and data on TXD?

Diagram: is attached
[attachment=0]usart.GIF[/attachment]

attaching the code written in IAR


Attachments:
usart.GIF
usart.GIF [ 2.65 KiB | Viewed 643 times ]
File comment: the rar file contains an IAR project which behaves as mentioned in the post.

I cannot figure out why is there a delay between THR write and data on TXD

usart2.rar [1.71 MiB]
Downloaded 15 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

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: