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

CCS C compiler evaluation version for PIC18 series

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



Joined: 15 Jul 2011
Posts: 8

View user's profile Send private message

CCS C compiler evaluation version for PIC18 series
PostPosted: Fri Jul 15, 2011 4:22 pm     Reply with quote

I am using PCW compiler evaluation version IDE version 3. 36.
The following code compile and run for 16F877A ( include <16F877A.h>) but but does not compile for 18F4458 ( include<18F4458.h>).
The compiling error is ' Unkown device type "PIC18F4458" ' and the world PIC18F4458 near the #device directive in 18F4458.h file is highlighted.
Because I am using e evaluation version of the CCS c compiler does this mean that this compiler works only for the PIC16 series and under or what is the problem?
This just a small program for me to experiment with PIC18F4458
Thanks for you help.


Code:
#include<18F4458.h>
#use fast_io(B)
#use delay(clock=20000000)
#fuses HS,NOWDT,NOLVP

void main()
{


   set_tris_b(0x00);
   while(1)
   {
   output_b(0xff);  // turn LEDs on
   delay_ms(1000);
   output_b(0x00); // turn off LEDs
   delay_ms(1000);
   }

}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 15, 2011 4:37 pm     Reply with quote

Please don't start a new thread. Add all new replies to your existing thread.
rabmerab



Joined: 15 Jul 2011
Posts: 8

View user's profile Send private message

PostPosted: Fri Jul 15, 2011 4:39 pm     Reply with quote

PCM programmer wrote:
Please don't start a new thread. Add all new replies to your existing thread.


Sorry, I am just new. I will close this thread.
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