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

Problem with simple code
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 17, 2012 4:18 pm     Reply with quote

I compiled this program with vs. 4.057 and ran it on my PicDem2-Plus
board. It works. It creates a 1 Hz signal on Pin A0.
Code:

#include <18F4550.h>
#fuses HS, NOWDT, PUT, NOPROTECT, NODEBUG, BROWNOUT, NOLVP, NOCPD, NOWRT     
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)

void main()
{

while(1)
  {
   output_high(pin_A0);
   delay_ms(500);
   output_low(pin_A0);
   delay_ms(500); 
  }
}
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

Re: Problem with simple code
PostPosted: Mon Sep 17, 2012 4:34 pm     Reply with quote

andys wrote:
I just realize that i can compile pic18f4550 but i can compile the series dspic30,....
WTF?
Did you change something or is this just magic that he PIC18 now compiles?
Some feedback would be nice.

Quote:
I can't understand because the pch compiler is exist
Sigh... Did you do ANY research?
When I go to the CCS homepage and check the page for supported devices, it is easy to find. Quicker than it took you to type the question. Have a look at http://www.ccsinfo.com/devices.php?page=devices
No, PCH does NOT support the dsPIC/PIC24 devices. For those you need PCD or PCWHD.

And... CCS v4.057 is old, very old. It is one of those early prototype versions of the V4 compiler and should never be used because it is full of bugs. I know, it is one of the versions available for download through one of the illegal methods. But at least safe everyone a lot of time by using a stable version. V4.070 or newer.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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