Skip to main content
victor2399
Associate
Apr 30, 2006 5:32 AM UTC
Question

STR711 UART baudrate

Posted on April 30, 2006 at 07:32

STR711 UART baudrate

This topic has been closed for replies.

4 replies

victor2399
Associate
Apr 27, 2006 11:38 AM UTC
Posted on April 27, 2006 at 13:38

Hi.

I'm using STR711-SK board, connected via ULINK.

I use code from example for setting baudrate 9600.

But I get baudrate 2400.

Here is my code, please advice where the problem can be.

Thanks.

GPIO_Config(GPIO0, UART0_Tx_Pin, GPIO_AF_PP);

GPIO_Config(GPIO0, UART0_Rx_Pin, GPIO_IN_TRI_CMOS);

UART_Init(UART0);

UART_OnOffConfig(UART0, ENABLE);

UART_FifoConfig (UART0, DISABLE);

UART_FifoReset (UART0 , UART_RxFIFO);

UART_FifoReset (UART0 , UART_TxFIFO);

UART_LoopBackConfig(UART0 , DISABLE);

UART_Config(UART0,9600,UART_NO_PARITY,UART_1_StopBits,UARTM_8D);

UART_RxConfig(UART0 ,ENABLE);

EIC_IRQChannelPriorityConfig(UART0_IRQChannel, 1);

EIC_IRQChannelConfig(UART0_IRQChannel, ENABLE);

EIC_IRQConfig(ENABLE);

UART_ItConfig(UART0,UART_RxBufFull, ENABLE);

UART_ByteSend(UART0, ''d'');

victor2399
Associate
Apr 27, 2006 11:59 AM UTC
Posted on April 27, 2006 at 13:59

I have changed it already to 4000000, but if I play with this value I see no changes. More ideas?

victor2399
Associate
Apr 28, 2006 5:28 PM UTC
Posted on April 28, 2006 at 19:28

Hi, thanks for reply.

I haven't changed the clock configuration. It is default after reset. Just as in example ''UART'' from ST. Code that you see thats all.

victor2399
Associate
Apr 30, 2006 5:32 AM UTC
Posted on April 30, 2006 at 07:32

I have recompiled the library from source. Now all working fine.