AnsweredAssumed Answered

STM32f100R8-USART1 Configuration

Question asked by rajagopal.dharani on Jul 24, 2013
Latest reply on Jul 26, 2013 by Clive One
Hi All,
          Basically i want to configure the USART1 in the STM32f100R8 uC. The following code i have written for configureing USART1.

 //UART1 initialization
RCC->APB2ENR |= RCC_APB2ENR_AFIOEN + RCC_APB2ENR_IOPAEN +RCC_APB2ENR_USART1EN; 
RCC-> AHBENR |= RCC_AHBENR_SRAMEN;
GPIOA->CRH |= GPIO_CRH_CNF9_1 + GPIO_CRH_MODE9_0 ; 
GPIOA->CRH |= GPIO_CRH_CNF10_0 + GPIO_CRH_MODE10_0 ; 
USART1->BRR = 0x0052;
USART1->CR1 |= USART_CR1_UE + USART_CR1_TE + USART_CR1_RE + USART_CR1_RXNEIE; 
USART1->DR ='@';


But, when i try to run this code it's not transmitting any data. And i am not seeing any data in USART1 DR register.

Outcomes