| Welcome to AT91SAM Community Forum http://www.at91.com/samphpbb/ |
|
| USART example not working http://www.at91.com/samphpbb/viewtopic.php?f=9&t=18949 |
Page 1 of 1 |
| Author: | Sudha [ Mon Feb 08, 2010 9:10 pm ] |
| Post subject: | USART example not working |
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. |
|
| Author: | Slaxtrack [ Tue Apr 26, 2011 6:43 pm ] | ||
| Post subject: | Re: USART example not working | ||
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); . . . . . }
|
|||
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|



Forum