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

PIC16F84A error.

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







PIC16F84A error.
PostPosted: Wed Dec 09, 2009 5:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 09, 2009 7:02 am     Reply with quote

Remove the following code from your program.
Code:

#fuses NOLVP
#fuses NOBROWNOUT //No brownout reset
#fuses INTRC
gonzalza



Joined: 23 Feb 2010
Posts: 12

View user's profile Send private message

PostPosted: Thu Feb 25, 2010 2:57 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 25, 2010 3:15 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 25, 2010 4:36 pm     Reply with quote

i see, i was using ccs compiler and i changed because it was asking me reinstalltion when it was installed, 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