Software UART - receiving character string

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by michal89 on Thu Aug 02 08:12:27 MST 2012
How to receive character string using software UART? I have written this:

char char_array[]="abcdeghjk";
for ( i = 0; i < 9; i++ )
        while(!(char_array = swu_rx_chr()));
But the array is filled with only the first character for example when I send 123456789 all the array fills with 1. Where is my mistake?
I am using code from AN10955 application note.