View previous topic :: View next topic |
Author |
Message |
try-webworks
Joined: 22 Jan 2006 Posts: 3
|
#int_timer1 pre-processor directive |
Posted: Sun Jan 22, 2006 6:03 pm |
|
|
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
try-webworks. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1939 Location: Norman, OK
|
|
Posted: Sun Jan 22, 2006 6:21 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 7:07 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 8:39 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 8:44 pm |
|
|
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 |
|
|
|