AnsweredAssumed Answered

stm32f4 USART

Question asked by jagadeesh.puneeth on Nov 10, 2015
Latest reply on Nov 10, 2015 by jagadeesh.puneeth
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 this
void 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 :)

Outcomes