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 support@ccsinfo.com

PIC18F57Q84 periph interrupt defs

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



Joined: 23 Jul 2012
Posts: 2
Location: Dayton, OH

View user's profile Send private message

PIC18F57Q84 periph interrupt defs
PostPosted: Fri Sep 09, 2022 11:58 am     Reply with quote

I am using compiler v5.109 and targeting the PIC18F57Q84.
I want to hook a timer interrupt but the device header file contains no defines for peripheral interrupts. It contains IOC defines, GLOBAL and PERIPH. Is the info missing or am I missing something? Thanks!
kurth



Joined: 23 Jul 2012
Posts: 2
Location: Dayton, OH

View user's profile Send private message

PostPosted: Fri Sep 09, 2022 12:35 pm     Reply with quote

I tried that already and neither the Q43 or Q83 defines work for INT_TIMER4. I will email CCS. Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 18226

View user's profile Send private message

PostPosted: Sat Sep 10, 2022 2:04 am     Reply with quote

Timer4 defines are not likely to work, since it doesn't have a timer4.
Only T0, T1 & T2.

However You can see what has happened if you read the data sheet. Unlike
every other PIC, that has a section on the interrupts, the sheet does not
have this section!..
MicroChip seem to have omitted this, and the CCS authors, worked from
the data sheet, so left it out!. There is a section on the IOC, which is why
this is there. They also left in the sections for higher timer number setups,
where these don't exist on the chip... Sad
Try a basic simple setup, with Timer0, and add in the define for INT_TIMER0
from the 47Q43. On the MPLAB simulator, this does then work (no guarantee
it will for real).
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