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

I'm close to give up

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



Joined: 10 May 2010
Posts: 1

View user's profile Send private message Send e-mail Yahoo Messenger

I'm close to give up
PostPosted: Tue May 11, 2010 11:46 am     Reply with quote

Anyone can help me with the issue:: The project contains no source files.
I tried to build a circuit 3 channel PWM with 16f628 and I always have the same message:
The project contains no source files.

I Have you the code and give me a hand with this problem please

PIC16F628 Pinout
Code:

#include <16F628.h>
#fuses INTRC_IO, NOWDT, NOPROTECT, NOCPD, NOLVP, NOBROWNOUT, MCLR
#use delay(clock=4000000)
#rom 0x2100={0,1,1,1,1,1,1,1,1,1,1,1,1}

#use rs232(UART1, stream=PC, baud=19200, xmit=PIN_B2, rcv=PIN_B1)

#define PCBDR1r1     // Red and Green lines are switched on the DR1r1 PCB

#ifdef PCBDR1r1
   #define led1Red PIN_A3
   #define led1Green PIN_A2
   #define led1Blue PIN_B0
   
   #define led2Red PIN_A0
   #define led2Green PIN_A1
   #define led2Blue PIN_A7
   
   #define led3Red PIN_B5
   #define led3Green PIN_B6
   #define led3Blue PIN_B4
   
   #define led4Red PIN_B7
   #define led4Green PIN_A6
   #define led4Blue PIN_B3
#else
   #define led1Red PIN_A2
   #define led1Green PIN_A3
   #define led1Blue PIN_B0
   
   #define led2Red PIN_A1
   #define led2Green PIN_A0
   #define led2Blue PIN_A7
   
   #define led3Red PIN_B6
   #define led3Green PIN_B5
   #define led3Blue PIN_B4
   
   #define led4Red PIN_A6
   #define led4Green PIN_B7
   #define led4Blue PIN_B3
#endif

volatile int1 runPWM = FALSE;
volatile int8 PWMcount = 0;
volatile int8 theAddress = 0;
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 11, 2010 11:55 am     Reply with quote

Quote:

I always have the same message: The project contains no source files.

See this CCS FAQ article on how to use CCS in MPLAB:
http://www.ccsinfo.com/faq.php?page=ccs_mplab
Look at screenshot #11. Notice how they have EX_SQW.c in the list of
source files in the Project Window on the left side. If you don't have
a source file in there, you need to add one. Right-click on the Source
Files menu and click on Add Files. Then navigate to your source file
and add it. It should now appear in the Source files list. Only add your
main source file to the list (if you have more than one).
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue May 11, 2010 1:01 pm     Reply with quote

Also read this quick guide regarding in how to integrate CCS compiler with MPLAB:
http://www.hcilab.org/resources/particles/particles-programming-mplab.htm
it shows how to add the source file, as pointed by PCM Programmer.

Regards.
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