Page 1 of 1

Uart Component Receive (PIC24FV32KA304)

Posted: Tue Oct 11, 2016 5:15 pm
by Jörg Güldner
Hello Matrix team!
If you open the interrupt box and choose uart-rx-int1 and send datas in a loop to channel1, this will not works.
The receive rxd int is indexed with "0" and "1" and the uart channels with "1" and "2". In the datasheet, from the
cpu I use, is the rxd interrupt described as "1" and "2". Is it not beter to change the interrupt from 0,1 to 1,2?


Best regards
Jorg

Re: Uart Component Receive (PIC24FV32KA304)

Posted: Wed Oct 12, 2016 10:37 am
by Benj
Hi Jorg,

Yes you're right it is a bit confusing and it's mainly down to legacy reasons.

The interrupt you select in the interrupt options looks like this and is numbered from 1 to match the Flowcode channel property.
SS1.jpg
SS1.jpg (33.72 KiB) Viewed 13388 times
However when looking at the interrupt enable icon it uses a different name which is numbered from 0.
SS2.jpg
SS2.jpg (7 KiB) Viewed 13388 times
We could fix this in the Flowcode definition files, however that would break any existing programs using a UART RX Interrupt because the Flowchart stores the name which is 0 referenced rather then the more friendly and correct 1 referenced version.

So to sum up RXINT0 is the interrupt for UART channel 1 and RXINT1 is the interrupt for UART channel 2.

If the interrupt is not working still then let me know and I will investigate for you.