PIC32MX460F512L + error handling on UART1 and UART2?

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
microIC
Posts: 82
Joined: 06 Nov 2014 10:45

PIC32MX460F512L + error handling on UART1 and UART2?

#1 Post by microIC » 05 Jul 2016 15:44

Dear all,

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
                                  
        
                                     
but I still have problem on UArt1 mentioned in one of my previous written question on forum.
Thanks,
Damir

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: PIC32MX460F512L + error handling on UART1 and UART2?

#2 Post by lana.arsic » 06 Jul 2016 16:59

Hi Damir,

Can you tell me which hardware do you use?
Can you attach your whole project in a zip/rar archive?

Best regards,
Lana

microIC
Posts: 82
Joined: 06 Nov 2014 10:45

Re: PIC32MX460F512L + error handling on UART1 and UART2?

#3 Post by microIC » 06 Jul 2016 18:20

already send to help desk.
Thanks,
Damir

microIC
Posts: 82
Joined: 06 Nov 2014 10:45

Re: PIC32MX460F512L + error handling on UART1 and UART2?

#4 Post by microIC » 06 Jul 2016 18:21

Hi Lana,

PIC32MX CLICKER2 board.

Damir

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: PIC32MX460F512L + error handling on UART1 and UART2?

#5 Post by lana.arsic » 07 Jul 2016 14:21

Hi Damir,

I have answered you on the ticket,
I suggest you to continue our correspondence there.

Best regards,
Lana

Post Reply

Return to “mikroBasic PRO for PIC32 General”