Hi,
I'm using FC7.3.0.6. to program a PCB that utilizes a PIC24FJ256GA406. I use UARTs 1, 2, 3, 5 and 6 and need the Rx Interrupts on each UART.
On a loopback test, UARTs 1, 2 and 3 trigger their Rx interrupts when a character is received, but UARTs 5 and 6 don't, although they do transmit characters.
I rechecked the hardware and it seems to be OK and the datasheet shows that the chip can handle Rx interrupts on all 6 UARTs.
Could this possibly be a problem with the PIC24FJ256GA406.fcdx file?
Kind regards.
Leo
PIC24FJ256GA406 UART Rx Interrupts not working
Moderator: Benj
- 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: PIC24FJ256GA406 UART Rx Interrupts not working
Hi Leo,
The device datasheet is very unclear as to the exact PIR and PIE registers for the RXINT flags. Therefore I have got the correct locations from the compiler header file. However the header file could be wrong and would explain why you don't get compile errors but it doesn't work.
I've just combed through the FCD and had another pass through the CAL file. I'll try and see if I can find a better data sheet for the device with a full register set as this would help to confirm things are actually correct.
Edit they are listed in the datasheet, you just have to go hunting for them (Table 8-2 starting on page 115). It looks like what we have is correct. Hmm. I'll keep digging and see if I can find what might be causing this.
Maybe try this latest CAL file for v7 to see if it helps with the problem at all. Simply copy the file to your "Flowcode 7\CAL\PIC16BIT" directory.
The device datasheet is very unclear as to the exact PIR and PIE registers for the RXINT flags. Therefore I have got the correct locations from the compiler header file. However the header file could be wrong and would explain why you don't get compile errors but it doesn't work.
I've just combed through the FCD and had another pass through the CAL file. I'll try and see if I can find a better data sheet for the device with a full register set as this would help to confirm things are actually correct.
Edit they are listed in the datasheet, you just have to go hunting for them (Table 8-2 starting on page 115). It looks like what we have is correct. Hmm. I'll keep digging and see if I can find what might be causing this.
Maybe try this latest CAL file for v7 to see if it helps with the problem at all. Simply copy the file to your "Flowcode 7\CAL\PIC16BIT" directory.
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
-
- Flowcode V4 User
- Posts: 54
- Joined: Mon Jan 19, 2009 11:43 am
- Has thanked: 41 times
- Been thanked: 9 times
- Contact:
Re: PIC24FJ256GA406 UART Rx Interrupts not working
Hi Ben,
I've used the new CAL file and channel 5 now works the same as channels 1 through 3. I unfortunately can't test channel 6 just yet, due to the set up of my PCB, but will let you know if I have any problems.
Thanks for the fix.
Kind regards.
Leo
I've used the new CAL file and channel 5 now works the same as channels 1 through 3. I unfortunately can't test channel 6 just yet, due to the set up of my PCB, but will let you know if I have any problems.
Thanks for the fix.
Kind regards.
Leo
- 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: PIC24FJ256GA406 UART Rx Interrupts not working
No the fix has already been applied to v8, use the Help -> Check for updates menu in v8 to get the fix.Can I use this file in V8?
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