View previous topic :: View next topic |
Author |
Message |
BrianF
Joined: 12 Dec 2020 Posts: 10
|
Vectored Interrupts |
Posted: Thu Apr 28, 2022 4:43 am |
|
|
Newer chips like the 18FxxQ43 have a Vectored Interrupt Controller.
Does CCS uses this, in preference to the legacy scheme, where it is available?
I can't see anything in the manual which mentions the VIC. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Thu Apr 28, 2022 5:11 am |
|
|
Too new for this dinosaur, but Microchip's TB3162 is where you should start. Explains and show examples on how to implement it.
The big benefit should be faster response to the actual event ---> to the ISR. |
|
|
BrianF
Joined: 12 Dec 2020 Posts: 10
|
|
Posted: Thu Apr 28, 2022 6:17 am |
|
|
I was wondering if it was connected to the '#INT_xxx' directive at all. |
|
|
BrianF
Joined: 12 Dec 2020 Posts: 10
|
|
Posted: Thu Apr 28, 2022 6:43 am |
|
|
Found it...
#device VECTOR_INTS |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Thu Apr 28, 2022 6:48 am |
|
|
GREAT !!!
now, it'd be interesting to see a small program use it vs regular INTs to compare code size and speed......
It 'should' be faster and I doubt program size won't be an issue.
Jay |
|
|
|