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: USB-CDC AT91SAM7S256
PostPosted: Thu Feb 23, 2012 11:17 pm 
Offline

Joined: Thu Feb 23, 2012 10:50 pm
Posts: 1
I’m working with AT91SAM7S256 and I used USB-CDC ATMEL example source code. I need to changed baudrate on USART. Default baudrate is 115200, but I need 38400. If I change baudrate in main, whole connection with PC doesn't work. Excuse my stupid question, but I'm beginner.
Thank for your ideas.
// Configure USART
PIO_Configure(pins, PIO_LISTSIZE(pins));
AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_US0;
AT91C_BASE_US0->US_IDR = 0xFFFFFFFF;
USART_Configure(AT91C_BASE_US0,
USART_MODE_ASYNCHRONOUS,
38400, <- In this line I change baudrate
BOARD_MCK);
USART_SetTransmitterEnabled(AT91C_BASE_US0, 1);
USART_SetReceiverEnabled(AT91C_BASE_US0, 1);
AIC_ConfigureIT(AT91C_ID_US0, 0, ISR_Usart0);
AIC_EnableIT(AT91C_ID_US0);


Attachments:
usb-device-cdc-serial-project-at91sam7s-ek-keil.zip [387.28 KiB]
Downloaded 30 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 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: