Code:
while((*temp = U1RXREG) != '\n')
In my though, this while loop will exit once the null terminated string is reach. My problem is how could i read string using uart RX like:
#,2014,06,23,10,30,35,$
The <#> represent a symbol for an operation, <2014,06,23,10,30,35> is the data for this operation (time stamp) and finally <$> is the symbol to indicate end of data. How could i do it. By the way, thanks for your suggestion. I will work on it based on your posted code.