I'm looking for already tested way of handling error on UArt1 and UART2 on PIC 32.
I did try with:
Code: Select all
if (U1STA.FERR = 1) then
if test=1 then
uart2_write_text("frame error at uart1")
end if
end if
while (U1STA.OERR = 1)
if test=1 then
uart2_write_text("owerflow error at uart1")
end if
received = UART1_read()
wend
U1STA.OERR = 0
Thanks,
Damir