chuck
Joined: 10 May 2010 Posts: 1
|
I'm close to give up |
Posted: Tue May 11, 2010 11:46 am |
|
|
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; |
|
|