|
|
View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 17, 2012 4:18 pm |
|
|
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
|
Re: Problem with simple code |
Posted: Mon Sep 17, 2012 4:34 pm |
|
|
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. |
|
|
|
|
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
|