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

#int_timer1 pre-processor directive

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



Joined: 22 Jan 2006
Posts: 3

View user's profile Send private message Send e-mail

#int_timer1 pre-processor directive
PostPosted: Sun Jan 22, 2006 6:03 pm     Reply with quote

Question I'm using a PIC16F877A with a keypad & lcd display. I'm trying to activate a timer1 ISR routine, but when I put in the "#int_timer1" directive the compiler says it's an invalid pre-processor directive. I'm using version 3.242 PCWH compiler. Is there an include file I need to use in order to use the timers? I'm already using "#int_rb" with no problems. I'm new to this compiler, and it is different or unique.

Any advice would be appreciated.

Thanks Razz

try-webworks.
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 6:21 pm     Reply with quote

I tried it on my PCWH 3.242 and it compiles and works with no problems (the only file I included was the <16F877A.H> file).
Is there an adjacent line possibly causing your problem?
try-webworks



Joined: 22 Jan 2006
Posts: 3

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 22, 2006 7:07 pm     Reply with quote

I've tried opening a new project with just the minimum shell and it still does it. I've tried it in both PICC IDE and MPLAB and the results are all the same. I'm going to unintall my complier and reinstall it. I installed it over an older version. That may be the problem.

Thanks.

try-webworks
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 8:39 pm     Reply with quote

Quote:

I'm trying to activate a timer1 ISR routine, but when I put in the "#int_timer1" directive the compiler says it's an invalid pre-processor directive.


Your comments have not enough info that demostrate the problem.
Could you post a piece of compilable code that show the problem ?


Humberto
try-webworks



Joined: 22 Jan 2006
Posts: 3

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 22, 2006 8:44 pm     Reply with quote

Humberto,

I've located the problem. I installed the new version of the compiler over an old version. I should have unintalled the old version first. I unintalled everything and started fresh and it works fine now.

Thanks
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