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

pic16f616 timer 0 interrupt problems

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 10, 2011 12:56 pm     Reply with quote

Quote:

unsigned int x = 0;

for(x = 0;x < 6000;x++)

Look in the CCS manual in this section:
Quote:

Basic and Special types

Note the size of an 'int' in CCS. Look at the two tables at the start of
that section.


Also you're still missing the #int_ext directive for your other isr.
pic16freak



Joined: 10 Oct 2011
Posts: 7

View user's profile Send private message

Thank you so much..
PostPosted: Mon Oct 10, 2011 1:17 pm     Reply with quote

As soon as I added #int for the other interrupt,
and changed the data type to int16 from unsigned int, the code started working.
I appreciate the quick replies.
Thank you.
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