Interrupt Uart3 Pic32MZ2048EFH100 does not work properly
Posted: 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
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