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
Uart Component Receive (PIC24FV32KA304)
Moderator: Benj
-
- Posts: 77
- Joined: Wed Jun 22, 2011 3:32 pm
- Has thanked: 17 times
- Been thanked: 11 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Uart Component Receive (PIC24FV32KA304)
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.
However when looking at the interrupt enable icon it uses a different name which is numbered from 0.
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.
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.
However when looking at the interrupt enable icon it uses a different name which is numbered from 0.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel