Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] problem on compiling on MPLAB using hightech c compier

Status
Not open for further replies.

deva

Junior Member level 1
Joined
Aug 20, 2010
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
kathmandu
Activity points
1,389
Error [141] C:\Documents and Settings\pop\Desktop\pra da\main.c; 8.21 can't open include file "Includes.h": No such file or directory
 

Post the contents of the main.c file, using either CODE or SYNTAX tags.

Most likely, main.c contains the following preprocessor statement:

Code:
#include "Includes.h"

When main.c is ran through the preprocessing phase of the compiler, the file Include.h cannot be found.

Does the file Includes.h exist?

BigDog
 

Code:
#include "Includes.h"

// Configuration word for PIC16F877
__CONFIG( FOSC_HS & WDTE_OFF & PWRTE_ON & CP_OFF & BOREN_ON 
		& LVP_OFF & CPD_OFF & WRT_ON & DEBUG_OFF);

// Define CPU Frequency
// This must be defined, if __delay_ms() or 
// __delay_us() functions are used in the code
#define _XTAL_FREQ   20000000  


// Main function
void main(void)
{
	InitPWM();	

	SetPWMDutyCycle(1,127);   //50% duty cycle on CCP1
	SetPWMDutyCycle(2,191);   //75% duty cycle on CCP2

	while(1)
	{
		
	}
}
 
Last edited by a moderator:

The compiler cannot find the file, Includes.h.

Does it exist?

If yes, make sure it is located within the same directory as main.c.

If not, you will need to find it as it contains the PWM routines utilized in the main code.


BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top