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: USART example not working
PostPosted: Mon Feb 08, 2010 9:10 pm 
Offline

Joined: Mon Feb 08, 2010 8:45 pm
Posts: 1
Hello,

I am new to AT91SAM9xE512,was trying the example USART project for this device.I was able to build the project successfully,but i dont see any output on the hyperterminal.

The Baudrate and other configurations are as per the documentation.



Please help to slove probelm.


Top
 Profile  
 
 Post subject: Re: USART example not working
PostPosted: Tue Apr 26, 2011 6:43 pm 
Offline

Joined: Tue Apr 26, 2011 5:00 pm
Posts: 4
TRY

For example
Board AT91SAM9XE-EK
USART -> baud

const Pin at91board_usart[] = {PIN_USART0_RXD, PIN_USART0_TXD};

int main()
{
AT91C_BASE_PMC->PMC_PCER = (1 << AT91C_ID_US0);
PIO_Configure(at91board_usart, PIO_LISTSIZE(at91board_usart));
USART_Configure(AT91C_BASE_US0,USART_MODE_ASYNCHRONOUS,19200,BOARD_MCK);
USART_SetReceiverEnabled(AT91C_BASE_US0,1);
USART_SetTransmitterEnabled(AT91C_BASE_US0,1);
USART_Write(AT91C_BASE_US0,'F',1000000);
.
.
.
.
.
}


Attachments:
File comment: Usart Lib example
usart.rar [4.01 KiB]
Downloaded 33 times
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: Google [Bot] and 1 guest


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: