Did you look at the DT Book of Interrupts linked 2 posts ago? In fact, the main page lists you as one of the contributors. The part I contributed focused on what to change to add new chips. Take a look (or a refresher).
Did you look at the DT Book of Interrupts linked 2 posts ago? In fact, the main page lists you as one of the contributors. The part I contributed focused on what to change to add new chips. Take a look (or a refresher).
I guess you mean this article:
https://dt.picbasic.co.uk/INT16/Customisation
I am pretty sure that did something stupid and the modified interrupt did not work as expected. Ended to make a poll of the interrupt bit and finished my project.
OK, will give it a try again. With a bottle of coffee this time!
Ioannis
P.S. The 18 series requires modifications in 2 places. Why is that? Because of the priorities?
The first one creates a '#define' used by the INT_LIST, INT_ENABLE and other macros that specifies the PIR reg and bitThe 18 series requires modifications in 2 places. Why is that? Because of the priorities?
The second one adds all the details (PIR intr reg/bit, PIE enable reg/bit, and IPR priority reg/bit)Code:#define INT1_INT INTCON3,INT1IF ;-- INT1 External
If you're lucky, that's all that's required. However, some of the newer devices like the 18FxxK42 and 18FxxQ43 required some serious modifications to the asm code to make DT_INTS compatible with the register layout and new instructions like MOVFFL, so the 'customization guide' isn't much help with them.Code:ifdef INT1IF INT_Source INTCON3,INT1IF, INTCON3,INT1IE, INTCON3,INT1IP endif
Well, these are the chips I want to have DT_INTS work with...! Among a few others.
Ioannis
Last edited by Ioannis; - 20th September 2023 at 13:14.
Here's a version of DT-INTS that works with all the 18xv core devices (K42, K83, and Q43)
It could be used to add the Q83/Q84 and Q40/Q41, but those can't be used by PBP since they're not supported by the stock version of MPASMX
(there are pbp device files for the Q84 but they don't work).
If you want support for them (and a few others) you'll have to switch to using Swordfish, which has all the new 18F's.
The zip file contains DT_INTS-18xv.bas and two versions of ReEnterPBP (ReEnterPBP-18xv.bas, ReEnterPBP-18xvLP.bas) to go along with it.
Read the comments at the beginning of DT_INTS-18xv for details, especially the part about setting 'CONFIG MVECEN = OFF'
Last edited by tumbleweed; - 20th September 2023 at 14:18.
Many many thanks for these files!
The Q83/Q84 and Q40/Q41 devices are very nice ones, but yeah, will not be supported, too pity.
Ioannis
Bookmarks