Q40/Q41 Vectored Interrupt Errors in documentation (datasheets and device files)

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Jerry Messina
Swordfish Developer
Posts: 1486
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Q40/Q41 Vectored Interrupt Errors in documentation (datasheets and device files)

Post by Jerry Messina » Tue Oct 01, 2024 2:47 pm

I just ran across this...

There are errors in the current Q40/Q41 datasheets and mplabx DFP device files (which are used to generate the SF device files).
The IRQ numbers for interrupt vectors 49-55 are incorrect (PIE6/PIR6/IRP6 show bit 1 is unused, and the IRQ's don't take this into account).
The device files should be:

Code: Select all

   IRQ_INT1 = 48,                      // irq 48 - External Interrupt 1
                                       // irq 49 = unused
   IRQ_CWG1 = 50,                      // irq 50 - CWG Interrupt
   IRQ_NCO1 = 51,                      // irq 51 - NCO1 Interrupt
   IRQ_DMA2SCNT = 52,                  // irq 52 - DMA2 Source count Interrupt
   IRQ_DMA2DCNT = 53,                  // irq 53 - DMA2 Destination count Interrupt
   IRQ_DMA2OR = 54,                    // irq 54 - DMA2 Overflow Interrupt
   IRQ_DMA2A = 55,                     // irq 55 - DMA2 Abort Interrupt
   IRQ_I2C1RX = 56,                    // irq 56 - I2C1 Receive Interrupt
Of course I discovered this right after releasing the 2.2.4.1 update...

Jerry Messina
Swordfish Developer
Posts: 1486
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Q40/Q41 Vectored Interrupt Errors in documentation (datasheets and device files)

Post by Jerry Messina » Thu Oct 03, 2024 10:51 pm

Attached are updated device files for the Q40/Q41 family.
I've also updated the SystemConvert utility to v2.10 which takes care of this error in the DFP files.
Attachments
Q40_Q41_device_files_v210.7z
(6.24 KiB) Downloaded 8 times

Post Reply