Question
stm32f4 USART
Posted on November 10, 2015 at 18:32
Hello Every one! Can any 1 please help me with USART data transfer..
The problem is i want to transfer 16 bit value which is saved in global variable to computer from USART. i am trying thisvoid usart_send()
{
USART_puts(''S1'');
USART_puts(sensor1val);
}
void USART_puts(volatile char *s){
while(*s){
// wait until data register is empty
while( !(USART3->SR & 0x00000040) );
USART_SendData(USART3, *s);
*s++;
}
Note S1 is received successfully but i need help on how to transfer the value in sensor1val. Thanks for trying to slove my problem :)
#usart #stm32 #stm32f4