CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Vectored Interrupts

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
BrianF



Joined: 12 Dec 2020
Posts: 10

View user's profile Send private message

Vectored Interrupts
PostPosted: Thu Apr 28, 2022 4:43 am     Reply with quote

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: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Apr 28, 2022 5:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 28, 2022 6:17 am     Reply with quote

I was wondering if it was connected to the '#INT_xxx' directive at all.
BrianF



Joined: 12 Dec 2020
Posts: 10

View user's profile Send private message

PostPosted: Thu Apr 28, 2022 6:43 am     Reply with quote

Found it...

#device VECTOR_INTS
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Apr 28, 2022 6:48 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group