I revamped DT-INTS for the 18xv series of devices (18FxxK42, 18FxxK83, and 18FxxQ43) to take advantage of the hardware context feature of these new devices, along with a few other enhancements.
These routines should be faster, smaller, and use less RAM than the standard DT-INTS.
The file names have changed, but other than that the usage is the same as other DT-INTS implementations...
The default CONFIG setting for these devices enables multi-vector mode, so be sure to disable it by adding
to your main program
EDIT: new version V4.30 available that fixes an issue with INT0 and K42/K83. See Post 5 below.
These routines should be faster, smaller, and use less RAM than the standard DT-INTS.
The file names have changed, but other than that the usage is the same as other DT-INTS implementations...
Code:
' ---------- Set up DT_INTS-18 Routine for Instant Interrupt handling ----------- DEFINE USE_LOWPRIORITY 1 ' define if using Low Priority interrupts INCLUDE "DT_INTS-18xv.bas" ' Base Interrupt System for 18Fxv processors INCLUDE "ReEnterPBP-18xv.bas" ' Include if using PBP interrupts INCLUDE "ReEnterPBP-18xvLP.bas" ' Include if using Low Priority PBP INTS '------------------------------------------------------------------------------
The default CONFIG setting for these devices enables multi-vector mode, so be sure to disable it by adding
Code:
#config CONFIG MVECEN = OFF ; Interrupt contoller does not use vector table (legacy mode) #endconfig
EDIT: new version V4.30 available that fixes an issue with INT0 and K42/K83. See Post 5 below.
Comment