Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
PicSpeed32
Posts: 2
Joined: 17 Apr 2020 17:05

Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

#1 Post by PicSpeed32 » 17 Apr 2020 17:32

Hello, I have a problem
Flip click board at 200Mhz
The interface works
sending a string works
Uart 3 reception with interrupt does not work

What have I done wrong


sub procedure serial3() iv IVT_UART3_RX ilevel 5 ics ICS_srs or auto or off
dim receive as byte
receive = UART3_Read()
nachricht[receiveCounter] = chr(receive)
inc(receiveCounter)
if chr(receive) = ";" then
empfangAuswerte()
receiveCounter = 0
end if
u3rxif_bit=0
end sub

' Interrupt für RS232 Uart3 set

iec4.B30 = 1
u3rxip0_bit=1
u3rxip1_bit=1
u3rxip2_bit=1
urxisel0_u3sta_bit=0
urxisel1_u3sta_bit=0
u3rxif_bit=0

EnableInterrupts()

main

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

#2 Post by filip » 24 Apr 2020 07:02

Hi,

Can you please attach here the minimal project that demonstrates this issue ?

Regards,
Filip.

PicSpeed32
Posts: 2
Joined: 17 Apr 2020 17:05

Re: Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

#3 Post by PicSpeed32 » 25 Apr 2020 20:38

hi,

i've attached a small project to reproduce the problem.

Regards
PicSpeed32
Attachments
Uart3.zip
(174.39 KiB) Downloaded 70 times

Post Reply

Return to “mikroBasic PRO for PIC32 General”