Page 1 of 1

Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

Posted: 17 Apr 2020 17:32
by PicSpeed32
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

Re: Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

Posted: 24 Apr 2020 07:02
by filip
Hi,

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

Regards,
Filip.

Re: Interrupt Uart3 Pic32MZ2048EFH100 does not work properly

Posted: 25 Apr 2020 20:38
by PicSpeed32
hi,

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

Regards
PicSpeed32