alpha91
Full Member level 3
- Joined
- Sep 23, 2011
- Messages
- 168
- Helped
- 1
- Reputation
- 2
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 2,625
Hi, i am new to PIC microcontroller programming.
i just installed the MPLAB, when i testing with the code online which i think is error free, it failed to build. it comes out the message below:
the PIC i am using is 16f877a and the code is below:
can i know what's the problem? and also i am using HiTech Universal Toolsuite, if i want to write the program in assembly language, is it ok with this toolsuite ?
i just installed the MPLAB, when i testing with the code online which i think is error free, it failed to build. it comes out the message below:
Build C:\Users\Fei\Desktop\Final Year Project\PIC code\test\test1 for device 16F877A
Using driver C:\Program Files (x86)\HI-TECH Software\PICC\9.70\bin\picc.exe
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.70\bin\picc.exe" -otest1.cof -mtest1.map --summary=default --output=default --chip=16F877A -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"
(1273) Omniscient Code Generation not available in Lite mode (warning)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Error [939] ; . no file arguments
********** Build failed! **********
the PIC i am using is 16f877a and the code is below:
#include <htc.h>
#define _XTAL_FREQ 8000000
void main()
{
TRISB=0X00;
PORTB=0X00;
while(1)
{
PORTB=0XFF;
_delay_ms(100);
PORTB=0X00;
_delay_ms(100);
}
}
can i know what's the problem? and also i am using HiTech Universal Toolsuite, if i want to write the program in assembly language, is it ok with this toolsuite ?