I follow the sample source code provided in the website
//==========================================================================
// Author : CYTRON TECHNOLOGIES SDN BHD
// Project : SK40C sample code for PIC16F887
// Project description : "Hello World" with Parallel LCD 16x2
//==========================================================================
// include
//==========================================================================
#include <htc.h>
#include "lcd.h"
#include "system.h"
// Configuration
//==========================================================================
__CONFIG(HS & // External Crystal at High Speed
WDTDIS & // Disable Watchdog Timer.
PWRTEN & // Enable Power Up Timer.
BORDIS & // Disable Brown Out Reset.
MCLREN & // MCLR function is enabled
LVPDIS); // Disable Low Voltage Programming.
// function prototype
//==========================================================================
// main function
//==========================================================================
void main(void)
{
PORTA = 0; // clear PORT
PORTB = 0;
PORTC = 0;
PORTD = 0;
TRISA = 0b00000000; // set PORTA as OUTPUT
TRISB = 0b00000011; // set PORTB<7:2> AS OUTPUT , PORTB<1:0> as INPUT
TRISC = 0b00000000; // set PORTC as OUTPUT
TRISD = 0B00000000; // set PORTD as OUTPUT
ANSEL = 0; // SET PORTA as DIGITAL I/O for PIC16F887
ANSELH = 0; // SET PORTB as DIGITAL I/O for PIC16F887
lcd_initialize(); // Initialise LCD.. Please refer lcd.c file for detail
while(1)
{
lcd_home(); // LCD return cursur to home position which is 0x00.
lcd_putstr("Hello World"); //LCD display (Please refer lcd.c for detail)
}
}
but in the end i got these error
Build C:\Users\Yeo\Desktop\anything for device 16F887
Using driver C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe
Make: The target "C:\Users\Yeo\Desktop\lcd.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 C:\Users\Yeo\Desktop\ETP\Project_2\lcd.c -q --chip=16F887 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Make: The target "C:\Users\Yeo\Desktop\Project_2.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 C:\Users\Yeo\Desktop\ETP\Project_2\Project_2.c -q --chip=16F887 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" -oanything.cof -manything.map --summary=default --output=default lcd.p1 Project_2.p1 --chip=16F887 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83
Copyright (C) 2011 Microchip Technology Inc.
(1273) Omniscient Code Generation not available in Lite mode (warning)
Error [800] anything.as; 45. undefined symbol "LVPDIS"
Error [800] anything.as; 45. undefined symbol "MCLREN"
Error [800] anything.as; 45. undefined symbol "BORDIS"
Error [800] anything.as; 45. undefined symbol "PWRTEN"
Error [800] anything.as; 45. undefined symbol "WDTDIS"
Error [800] anything.as; 45. undefined symbol "HS"
********** Build failed! **********
Build fail...what is happening?? anyone guild me??