AnsweredAssumed Answered

array to string in usart peripheral

Question asked by gusonela.septian on Jun 6, 2014
Latest reply on Jun 7, 2014 by Andrew Neil
i know about usart, for transmited by transmittter and received data by receiver i can do it.. i communication usart use looping and use array too... how can i make this array to become string  so i can use function like this

if (x="septian")
led on

this my concept transmit and receive data 

void cetak(char huruf[20])
     unsigned char jumlah;
     unsigned char i;
     jumlah = strlen(huruf);

void USART1_PutChar(char c)
     uint8_t ch;

and for received data and feedback it use this

void USART1_IRQHandler()

void receiver_to_feedback()
     uint8_t i=0;
     char resp[20]="";
     int a;
                        while (USART_GetFlagStatus(USART1, USART_FLAG_RXNE) == RESET);
                        resp[i] = USART_ReceiveData(USART1);

                    for( a=0; a<i-1; a++)
                   USART1_PutChar(' ');

maybe someone can help me,, please :D