View previous topic :: View next topic |
Author |
Message |
dane Guest
|
PIC16F84A error. |
Posted: Wed Dec 09, 2009 5:53 am |
|
|
Hi, this is my program
Code: |
#include <16F84A.h>
#fuses NOWDT //No Watch Dog Timer
#fuses NOPROTECT //Code not protected from reading
#fuses NOLVP
#fuses NOBROWNOUT //No brownout reset
#fuses NOPUT
#fuses INTRC
#use delay (clock=4000000) //Crystal at 20Mhz
void main()
{
unsigned char i,j,k;
while(1)
{
if(input(PIN_B0) && input(PIN_B1))
{
for(i=0;i<25;i++)
for(j=0;j<255;j++)
for(k=0;k<255;k++)
{
output_a(0x01);
}
for(i=0;i<25;i++)
for(j=0;j<255;j++)
for(k=0;k<255;k++)
{
output_a(0x02);
}
}
}
}
|
and CCS compiler has 3 errors which says:
Unknown keyword in statement NOLVP
NOBROWNOUT, and INTRC
What must I do? Thanks |
|
|
anandpv2009
Joined: 26 Jul 2009 Posts: 31
|
|
Posted: Wed Dec 09, 2009 7:02 am |
|
|
Remove the following code from your program.
Code: |
#fuses NOLVP
#fuses NOBROWNOUT //No brownout reset
#fuses INTRC
|
|
|
|
gonzalza
Joined: 23 Feb 2010 Posts: 12
|
|
Posted: Thu Feb 25, 2010 2:57 pm |
|
|
Hello,
I'm trying this simple code but when I compile I'm having this problem:
Quote: |
Error [141] C:\Users\maiky\Documents\Glyndwr\PIC\sara\84conc.c; 3.19 can't open include file "16f84A.h": No such file or directory
|
Where can I find the include files? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Feb 25, 2010 3:15 pm |
|
|
Quote: |
Error [141] No such file or directory
|
That message comes from the Hi-Tech C compiler. This forum is for
the CCS compiler. You need to ask your questions on the Hi-Tech forum:
http://forum.htsoft.com/all/ubbthreads.php
Also, Microchip has a Hi-Tech compiler forum:
http://www.microchip.com/forums/tt.aspx?forumid=231
Finally, that code is for the CCS compiler. You need to use code that
is designed for the Hi-Tech compiler. The two compilers are not
compatible. All code on this forum is for CCS and will not compile
with the Hi-Tech compiler. |
|
|
gonzalza
Joined: 23 Feb 2010 Posts: 12
|
|
Posted: Thu Feb 25, 2010 4:36 pm |
|
|
i see, i was using ccs compiler and i changed because it was asking me reinstalltion when it was installed, thanks |
|
|
|