helo its my first time to post here i really need some help regarding mplab. i cant compile a code in mplab ide; i use the hi-tech compiler; here is the code
//////////////////////////////////////////////////////////////////////
//
// File: 16F84_led_flash.c
//
// Author: J F Main.
//
// Description:
//
// Flash an led at RB3
//
// Compiler : mikroC, mikroElektronika C compiler
// for Microchip PIC microcontrollers
// Version: 5.0.0.3
//
// Note Testing:
//
// Tested on 16F84
//
// Requirements:
//
// Target : 16F84
//
// Notes :
//
// Uses internal oscillator.
//
// Version:
// 1.00 Initial release.
//
// Copyright : Copyright © John Main 2006
// http://www.best-microcontroller-projects.com
// Free for non commercial use as long as this entire copyright notice
// is included in source code and any other documentation.
//
//////////////////////////////////////////////////////////////////////
#include <htc.h>
void main() {
unsigned short pa=0;
unsigned int i;
PORTA = 0;
TRISA = 0; // o/p - sets analogue pins to digital output
TRISB = 0;
PORTB = 0;
while(1) {
pa=~pa;
if (pa) {
setBit(PORTB,3);
} else {
resBit(PORTB,3);
}
Delay_ms(100);
} ; // infinite while loop
}
***ive tried to recompile but i got this error message
>>_Delay_ms (16F84_LED_Flash.obj)_resBit (16F84_LED_Flash.obj)_setBit (16F84_LED_Flash.obj)
****what does it mean? im kind of new to programing please help me tnx to those concerned i really would appreciate it so much
//////////////////////////////////////////////////////////////////////
//
// File: 16F84_led_flash.c
//
// Author: J F Main.
//
// Description:
//
// Flash an led at RB3
//
// Compiler : mikroC, mikroElektronika C compiler
// for Microchip PIC microcontrollers
// Version: 5.0.0.3
//
// Note Testing:
//
// Tested on 16F84
//
// Requirements:
//
// Target : 16F84
//
// Notes :
//
// Uses internal oscillator.
//
// Version:
// 1.00 Initial release.
//
// Copyright : Copyright © John Main 2006
// http://www.best-microcontroller-projects.com
// Free for non commercial use as long as this entire copyright notice
// is included in source code and any other documentation.
//
//////////////////////////////////////////////////////////////////////
#include <htc.h>
void main() {
unsigned short pa=0;
unsigned int i;
PORTA = 0;
TRISA = 0; // o/p - sets analogue pins to digital output
TRISB = 0;
PORTB = 0;
while(1) {
pa=~pa;
if (pa) {
setBit(PORTB,3);
} else {
resBit(PORTB,3);
}
Delay_ms(100);
} ; // infinite while loop
}
***ive tried to recompile but i got this error message
>>_Delay_ms (16F84_LED_Flash.obj)_resBit (16F84_LED_Flash.obj)_setBit (16F84_LED_Flash.obj)
****what does it mean? im kind of new to programing please help me tnx to those concerned i really would appreciate it so much