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.

errors in source codes - what am I doing wrong?

Status
Not open for further replies.

sharilshukor

Newbie level 3
Joined
May 14, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,509
pic microcontroller set_bit

ive got a source code which i have Found online. i tried debugging it using mplab but somehow they show errors. i'm not sure what im doing wrong For i believe i have Followed the right steps. i did try some other source codes but still same error messages displayed. here is the example oF the source codes. 2 diFFerent ones:

//Defines for microcontroller
//PIC Functions
#pragma CLOCK_FREQ 3276800
#define P16F84A
#include <system.h>
#define MX_EE
#define MX_EE_TYPE1
const char MX_EE_SIZE = 64;
void FCD_LCDDisplay1_Start();
void FCD_LCDDisplay1_Clear();
void FCD_LCDDisplay1_PrintASCII(char Character);
void FCD_LCDDisplay1_Command(char in);
void FCD_LCDDisplay1_RawSend(char in, char mask);
void FCD_LCDDisplay1_Cursor(char x, char y);
void FCD_LCDDisplay1_PrintNumber(char Number);
void FCD_LCDDisplay7_Start();
void FCD_LCDDisplay7_Clear();
void FCD_LCDDisplay7_PrintASCII(char Character);
void FCD_LCDDisplay7_Command(char in);
void FCD_LCDDisplay7_RawSend(char in, char mask);
void FCD_LCDDisplay7_Cursor(char x, char y);
void FCD_LCDDisplay7_PrintNumber(char Number);
void FCD_LCDDisplay1_Start()
{
set_bit(STATUS, RP0);
TRISB = TRISB & 0xC0;
clear_bit(STATUS, RP0);
delay_ms(2);
FCD_LCDDisplay1_Command(0x33);
FCD_LCDDisplay1_Command(0x32);
FCD_LCDDisplay1_Command(0x2c);

FCD_LCDDisplay1_Command(0x06);
FCD_LCDDisplay1_Command(0x0c);
FCD_LCDDisplay1_Clear();
}
void FCD_LCDDisplay1_Clear()
{
FCD_LCDDisplay1_Command (0x01);
delay_ms(1);
FCD_LCDDisplay1_Command (0x02);
delay_ms(1);
}
void FCD_LCDDisplay1_PrintASCII(char Character)
{
FCD_LCDDisplay1_RawSend(Character, 0x10);
}
void FCD_LCDDisplay1_Command(char in)
{
FCD_LCDDisplay1_RawSend(in, 0);
}
void FCD_LCDDisplay1_RawSend(char in, char mask)
{
unsigned char pt ;
pt = ((in >> 4) & 0x0f ) | mask ;
pt = pt | (PORTB & 0xc0) ;
PORTB = pt ;delay_ms(1);
set_bit (PORTB, 0x05 ) ;
delay_ms(1);
clear_bit ( PORTB, 0x05 ) ;
pt = (in & 0x0f ) | mask ;
pt = pt | (PORTB & 0xc0) ;
PORTB = pt ;
delay_ms(1);

set_bit (PORTB, 0x05 ) ;
delay_ms(1);
clear_bit ( PORTB, 0x05 ) ;
delay_ms(1);
}
void FCD_LCDDisplay1_Cursor(char x, char y)
{
if (y==0)
y=0x80;
else
y=0xc0;
FCD_LCDDisplay1_Command(y+x);
}
void FCD_LCDDisplay1_PrintNumber(char Number)
{
if (((Number/100) % 10) != 0)
{
FCD_LCDDisplay1_RawSend(0x30 + ((Number/100) % 10), 0x10);
FCD_LCDDisplay1_RawSend(0x30 + ((Number/10) % 10), 0x10);
}
else
{
if (((Number/10) % 10) != 0)
{
FCD_LCDDisplay1_RawSend(0x30 + ((Number/10) % 10), 0x10);
}
}
FCD_LCDDisplay1_RawSend(0x30 + (Number % 10), 0x10);
}
void FCD_LCDDisplay7_Start()
{
set_bit(STATUS, RP0);
TRISB = TRISB & 0xC0;

clear_bit(STATUS, RP0);
delay_ms(2);
FCD_LCDDisplay7_Command(0x33);
FCD_LCDDisplay7_Command(0x32);
FCD_LCDDisplay7_Command(0x2c);
FCD_LCDDisplay7_Command(0x06);
FCD_LCDDisplay7_Command(0x0c);
FCD_LCDDisplay7_Clear();
}
void FCD_LCDDisplay7_Clear()
{
FCD_LCDDisplay7_Command (0x01);
delay_ms(1);
FCD_LCDDisplay7_Command (0x02);
delay_ms(1);
}
void FCD_LCDDisplay7_PrintASCII(char Character)
{
FCD_LCDDisplay7_RawSend(Character, 0x10);
}
void FCD_LCDDisplay7_Command(char in)
{
FCD_LCDDisplay7_RawSend(in, 0);
}
void FCD_LCDDisplay7_RawSend(char in, char mask)
{
unsigned char pt ;
pt = ((in >> 4) & 0x0f ) | mask ;
pt = pt | (PORTB & 0xc0) ;
PORTB = pt ;delay_ms(1);
set_bit (PORTB, 0x05 ) ;
delay_ms(1);

clear_bit ( PORTB, 0x05 ) ;
pt = (in & 0x0f ) | mask ;
pt = pt | (PORTB & 0xc0) ;
PORTB = pt ;
delay_ms(1);
set_bit (PORTB, 0x05 ) ;
delay_ms(1);
clear_bit ( PORTB, 0x05 ) ;
delay_ms(1);
}
void FCD_LCDDisplay7_Cursor(char x, char y)
{
if (y==0)
y=0x80;
else
y=0xc0;
FCD_LCDDisplay7_Command(y+x);
}
void FCD_LCDDisplay7_PrintNumber(char Number)
{
if (((Number/100) % 10) != 0)
{
FCD_LCDDisplay7_RawSend(0x30 + ((Number/100) % 10), 0x10);
FCD_LCDDisplay7_RawSend(0x30 + ((Number/10) % 10), 0x10);
}
else
{
if (((Number/10) % 10) != 0)
{
FCD_LCDDisplay7_RawSend(0x30 + ((Number/10) % 10), 0x10);
}
}
FCD_LCDDisplay7_RawSend(0x30 + (Number % 10), 0x10);
}

//Macro function declarations
void FCM_HELLO();
void FCM_ANAK();
void FCM_HUJAN();
void FCM_API();
void FCM_BELL();
void FCM_RAIN();
void FCM_CHILD();
void FCM_TEMP();
void FCM_SECURE();
//Variable declarations
char FCV_LC_W; char FCV_LC_F;
char FCV_VIBRATOR;
char FCV_LC_G;
char FCV_LC_X;
char FCV_LC_H;
char FCV_LC_Y;
char FCV_LC_I;
char FCV_LC_Z;
char FCV_LC_J;
char FCV_LC_K;
char FCV_LC_L;
char FCV_LC_M;
char FCV_LC_N;
char FCV_LC_O;
char FCV_LC_P;
char FCV_LC_Q;
char FCV_LC_R;
char FCV_LC_A;
char FCV_LC_B;
char FCV_LC_S;
char FCV_LC_C;

char FCV_LC_T;
char FCV_A;
char FCV_INDEX;
char FCV_LC_D;
char FCV_LC_U;
char FCV_LC_E;
char FCV_LC_V;
//Macro implementations
void FCM_HELLO()
{
FCV_INDEX = 0 ;
FCC_HELLO_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay0_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay1_PrintASCII('B');
FCD_LCDDisplay1_PrintASCII('E');
FCD_LCDDisplay1_PrintASCII('L');
FCD_LCDDisplay1_PrintASCII('L');
delay_ms(200);
FCD_LCDDisplay0_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}
}
void FCM_ANAK()
{
FCD_LCDDisplay1_PrintASCII('A');
FCD_LCDDisplay1_PrintASCII('N');
FCD_LCDDisplay1_PrintASCII('A');
FCD_LCDDisplay1_PrintASCII('K');
}

void FCM_HUJAN()
{
FCV_INDEX = 0 ;
FCC_HUJAN_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay7_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay7_PrintASCII('R');
FCD_LCDDisplay7_PrintASCII('A');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('N');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('N');
FCD_LCDDisplay7_PrintASCII('G');
delay_ms(200);
FCD_LCDDisplay7_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}
}
void FCM_API()
{
FCV_INDEX = 0 ;
FCC_API_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay7_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay7_PrintASCII('H');
FCD_LCDDisplay7_PrintASCII('O');
FCD_LCDDisplay7_PrintASCII('U');
FCD_LCDDisplay7_PrintASCII('S');
FCD_LCDDisplay7_PrintASCII('E');
FCD_LCDDisplay7_PrintASCII(' ');

FCD_LCDDisplay7_PrintASCII('O');
FCD_LCDDisplay7_PrintASCII('N');
FCD_LCDDisplay7_PrintASCII(' ');
FCD_LCDDisplay7_PrintASCII('F');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('R');
FCD_LCDDisplay7_PrintASCII('E');
delay_ms(200);
FCD_LCDDisplay7_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}
}
void FCM_BELL()
{
FCV_INDEX = 0 ;
FCC_BELL_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay7_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay7_PrintASCII('B');
FCD_LCDDisplay7_PrintASCII('E');
FCD_LCDDisplay7_PrintASCII('L');
FCD_LCDDisplay7_PrintASCII('L');
FCD_LCDDisplay7_PrintASCII(' ');
FCD_LCDDisplay7_PrintASCII('R');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('N');
FCD_LCDDisplay7_PrintASCII('G');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('N');
FCD_LCDDisplay7_PrintASCII('G');
delay_ms(200);

FCD_LCDDisplay7_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}
}
void FCM_RAIN()
{
FCD_LCDDisplay1_PrintASCII('R');
FCD_LCDDisplay1_PrintASCII('A');
FCD_LCDDisplay1_PrintASCII('I');
FCD_LCDDisplay1_PrintASCII('N');
}
void FCM_CHILD()
{
FCV_INDEX = 0 ;
FCC_CHILD_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay7_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay7_PrintASCII('B');
FCD_LCDDisplay7_PrintASCII('A');
FCD_LCDDisplay7_PrintASCII('B');
FCD_LCDDisplay7_PrintASCII('Y');
FCD_LCDDisplay7_PrintASCII(' ');
FCD_LCDDisplay7_PrintASCII('C');
FCD_LCDDisplay7_PrintASCII('R');
FCD_LCDDisplay7_PrintASCII('Y');
delay_ms(200);
FCD_LCDDisplay7_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}
}

void FCM_TEMP()
{
FCD_LCDDisplay1_PrintASCII('H');
FCD_LCDDisplay1_PrintASCII('O');
FCD_LCDDisplay1_PrintASCII('T');
}
void FCM_SECURE()
{
FCV_INDEX = 0 ;
FCC_SECURE_A:
if( FCV_INDEX < 15 )
{
FCD_LCDDisplay7_Cursor(FCV_INDEX, 0);
FCD_LCDDisplay7_PrintASCII('B');
FCD_LCDDisplay7_PrintASCII('U');
FCD_LCDDisplay7_PrintASCII('G');
FCD_LCDDisplay7_PrintASCII('L');
FCD_LCDDisplay7_PrintASCII('A');
FCD_LCDDisplay7_PrintASCII('R');
FCD_LCDDisplay7_PrintASCII(' ');
FCD_LCDDisplay7_PrintASCII('A');
FCD_LCDDisplay7_PrintASCII('C');
FCD_LCDDisplay7_PrintASCII('T');
FCD_LCDDisplay7_PrintASCII('I');
FCD_LCDDisplay7_PrintASCII('V');
FCD_LCDDisplay7_PrintASCII('A');
FCD_LCDDisplay7_PrintASCII('T');
FCD_LCDDisplay7_PrintASCII('E');
delay_ms(200);
FCD_LCDDisplay7_Clear();
FCV_INDEX = FCV_INDEX + 1 ;
goto FCC_Main_A;
}

}
void main()
{
//PIC Initialisation
//Interrupt initialisation code
option_reg = 0xC0;
while( 1 )
{
TRISA = TRISA | 0xff;
FCV_A = PORTA;
if( FCV_A == 1 )
{
FCV_VIBRATOR = 64 ;
TRISB = 0x00;
PORTB = FCV_VIBRATOR;
FCM_API();
TRISB = 0x00;
PORTB = 0;
}
else
{
if( FCV_A == 2 )
{
FCV_VIBRATOR = 64 ;
TRISB = TRISB & 0xbf;
if (FCV_VIBRATOR)
PORTB = PORTB & 0xbf | 0x40;
else
PORTB = PORTB & 0xbf;

FCM_CHILD();
TRISB = 0x00;
PORTB = 0;
}
else
{
if( FCV_A == 3 )
{
FCV_VIBRATOR = 64 ;
TRISB = TRISB & 0xbf;
if (FCV_VIBRATOR)
PORTB = PORTB & 0xbf | 0x40;
else
PORTB = PORTB & 0xbf;
FCM_SECURE();
TRISB = 0x00;
PORTB = 0;
}
else
{
if( FCV_A == 4 )
{
FCV_VIBRATOR = 64 ;
TRISB = TRISB & 0xbf;
if (FCV_VIBRATOR)
PORTB = PORTB & 0xbf | 0x40;
else
PORTB = PORTB & 0xbf;
FCM_BELL();
TRISB = 0x00;
PORTB = 0;

}
else
{
if( FCV_A == 5 )
{
FCV_VIBRATOR = 64 ;
TRISB = TRISB & 0xbf;
if (FCV_VIBRATOR)
PORTB = PORTB & 0xbf | 0x40;
else
PORTB = PORTB & 0xbf;
FCM_HUJAN();
TRISB = 0x00;
PORTB = 0;
}
}
}

}
}
mainendloop: goto mainendloop;
}
void interrupt(void)
{
}









/Defines for microcontroller
char PORTC@0x07;
char TRISC@0x87;
char PORTD@0x08;
char TRISD@0x88;
char PORTE@0x09;
char TRISE@0x89;
//PIC Functions
#pragma CLOCK_FREQ 4000000
#define P16F874A
#include <system.h>
#define MX_EE
#define MX_EE_TYPE2
const char MX_EE_SIZE = 128;
#define MX_SPI
#define MX_SPI_C
#define MX_SPI_SDI 4
#define MX_SPI_SDO 5
#define MX_SPI_SCK 3
#define MX_UART
#define MX_UART_C
#define MX_UART_TX 6
#define MX_UART_RX 7
//Macro function declarations
//Variable declarations
char FCV_BAHAYA;
char FCV_BELL;

char FCV_DATA2;
char FCV_RAIN;
char FCV_DATA3;
char FCV_DATA4;
char FCV_DATA5;
char FCV_DATA6;
char FCV_SECURE;
char FCV_CHILD;
char FCV_HOT;
char FCV_DATA7;
char FCV_DATA8;
char FCV_DATA10;
char FCV_DATA9;
char FCV_SENSOR;
char FCV_DATA11;
char FCV_DATA;
char FCV_DATA12;
char FCV_HEAT;
//Macro implementations
void main()
{
//PIC Initialisation
adcon1 = 0x07;
//Interrupt initialisation code
option_reg = 0xC0;
while( 1 )
{
TRISA = TRISA & 0xfe;
PORTA = PORTA & 0xfe | 0;
TRISA = TRISA | 0xff;

FCV_SENSOR = PORTA;
FCV_DATA = 1 ;
FCV_DATA2 = FCV_SENSOR & FCV_DATA ;
if( FCV_DATA2 == 1 )
{
FCV_HEAT = 9 ;
TRISB = 0x00;
PORTB = FCV_HEAT;
delay_s(1);
TRISB = 0x00;
PORTB = 0;
}
else
{
FCV_DATA3 = 2 ;
FCV_DATA4 = FCV_SENSOR & FCV_DATA3 ;
if( FCV_DATA4 == 2 )
{
FCV_CHILD = 10 ;
TRISB = 0x00;
PORTB = FCV_CHILD;
delay_s(1);
TRISB = 0x00;
PORTB = 0;
}
else
{
FCV_DATA5 = 4 ;
FCV_DATA6 = FCV_SENSOR & FCV_DATA5 ;

}
if( FCV_DATA6 == 4 )
{
FCV_SECURE = 11 ;
TRISB = 0x00;
PORTB = FCV_SECURE;
delay_s(1);
TRISB = 0x00;
PORTB = 0;
}
else
{
FCV_DATA7 = 8 ;
FCV_DATA9 = FCV_SENSOR & FCV_DATA7 ;
if( FCV_DATA9 == 8 )
{
FCV_BELL = 12 ;
TRISB = 0x00;
PORTB = FCV_BELL;
delay_s(1);
TRISB = 0x00;
PORTB = 0;
}
else
{
FCV_DATA10 = 16 ;
FCV_DATA11 = FCV_SENSOR & FCV_DATA10 ;
}
if( FCV_DATA11 == 16 )
{

FCV_RAIN = 13 ;
TRISB = 0x00;
PORTB = FCV_RAIN;
delay_s(1);
TRISB = 0x00;
PORTB = 0;
}
}
}
}
mainendloop: goto mainendloop;
}




hope you could help.
 

pakitos

Advanced Member level 1
Joined
Nov 14, 2005
Messages
457
Helped
77
Reputation
154
Reaction score
35
Trophy points
1,308
Activity points
3,639
#define set_bit pic microcontroller

what is the message
 

sharilshukor

Newbie level 3
Joined
May 14, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,509
Re: not sure

----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\Administrator\Desktop\new.mcp' started.
Language tool versions: MPASMWIN.exe v5.30.01, mplink.exe v4.30.01
Preprocessor symbol `__DEBUG' is defined.
Thu Aug 27 20:05:12 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\Administrator\Desktop\new.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F84A "16F84ATMPO.ASM" /l"16F84ATMPO.lst" /e"16F84ATMPO.err" /o"16F84ATMPo_O" /d__DEBUG=1
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F84A "wrist.asm" /l"wrist.lst" /e"wrist.err" /o"wrist.o" /d__DEBUG=1
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 1 : Illegal character (/)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 2 : Illegal character (/)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 3 : Illegal opcode (CLOCK_FREQ)
Error[105] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 5 : Cannot open file (Include File "system.h" not found)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 8 : Illegal opcode (char)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 9 : Illegal opcode (FCD_LCDDisplay1_Start)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 10 : Illegal opcode (FCD_LCDDisplay1_Clear)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 11 : Illegal opcode (FCD_LCDDisplay1_PrintASCII)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 12 : Illegal opcode (FCD_LCDDisplay1_Command)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 13 : Illegal opcode (FCD_LCDDisplay1_RawSend)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 14 : Illegal opcode (FCD_LCDDisplay1_Cursor)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 15 : Illegal opcode (FCD_LCDDisplay1_PrintNumber)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 16 : Illegal opcode (FCD_LCDDisplay7_Start)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 17 : Illegal opcode (FCD_LCDDisplay7_Clear)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 18 : Illegal opcode (FCD_LCDDisplay7_PrintASCII)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 19 : Illegal opcode (FCD_LCDDisplay7_Command)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 20 : Illegal opcode (FCD_LCDDisplay7_RawSend)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 21 : Illegal opcode (FCD_LCDDisplay7_Cursor)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 22 : Illegal opcode (FCD_LCDDisplay7_PrintNumber)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 23 : Illegal opcode (FCD_LCDDisplay1_Start)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 24 : Illegal character ({)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 25 : Found label after column 1. (set_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 25 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 26 : Found label after column 1. (TRISB)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 26 : Symbol not previously defined (TRISB)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 27 : Found label after column 1. (clear_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 27 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 28 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 28 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 29 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 29 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 30 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 30 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 31 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 31 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 33 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 33 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 34 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 34 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 35 : Found label after column 1. (FCD_LCDDisplay1_Clear)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 35 : Illegal character (()
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 36 : Illegal character (})
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 37 : Illegal opcode (FCD_LCDDisplay1_Clear)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 38 : Illegal character ({)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 39 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 39 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 40 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 40 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 41 : Found label after column 1. (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 41 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 42 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 42 : Illegal character (()
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 43 : Illegal character (})
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 44 : Illegal opcode (FCD_LCDDisplay1_PrintASCII)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 45 : Illegal character ({)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 46 : Found label after column 1. (FCD_LCDDisplay1_RawSend)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 46 : Illegal character (()
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 47 : Illegal character (})
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 48 : Illegal opcode (FCD_LCDDisplay1_Command)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 49 : Illegal character ({)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 50 : Found label after column 1. (FCD_LCDDisplay1_RawSend)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 50 : Illegal character (()
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 51 : Illegal character (})
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 52 : Illegal opcode (FCD_LCDDisplay1_RawSend)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 53 : Illegal character ({)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 54 : Found label after column 1. (unsigned)
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 54 : Illegal opcode (char)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 55 : Found label after column 1. (pt)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 55 : Symbol not previously defined (in)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 55 : Symbol not previously defined (mask)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 56 : Found label after column 1. (pt)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 56 : Symbol not previously defined (PORTB)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 57 : Found label after column 1. (PORTB)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 58 : Found label after column 1. (set_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 58 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 59 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 59 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 60 : Found label after column 1. (clear_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 60 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 61 : Found label after column 1. (pt)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 61 : Symbol not previously defined (in)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 61 : Symbol not previously defined (mask)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 62 : Found label after column 1. (pt)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 63 : Found label after column 1. (PORTB)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 64 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 64 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 66 : Found label after column 1. (set_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 66 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 67 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 67 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 68 : Found label after column 1. (clear_bit)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 68 : Illegal character (()
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 69 : Found label after column 1. (delay_ms)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 69 : Illegal character (()
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 70 : Illegal character (})
Error[122] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 71 : Illegal opcode (FCD_LCDDisplay1_Cursor)
Error[108] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 72 : Illegal character ({)
Error[113] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 73 : Symbol not previously defined (y)
Warning[207] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 74 : Found label after column 1. (y)
Error[142] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 410 : IFs nested too deep
Error[142] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 420 : IFs nested too deep
Error[142] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 424 : IFs nested too deep
Error[142] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 435 : IFs nested too deep
Error[142] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\WRIST.ASM 439 : IFs nested too deep
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\Administrator\Desktop\new.mcp' failed.
Language tool versions: MPASMWIN.exe v5.30.01, mplink.exe v4.30.01
Preprocessor symbol `__DEBUG' is defined.
Thu Aug 27 20:05:15 2009
----------------------------------------------------------------------
BUILD FAILED


im new to mplab so not really sure whats going on. i tried according to help and this is what i got. btw im using mplab v8.30
 

arthur0

Full Member level 2
Joined
Nov 28, 2003
Messages
131
Helped
49
Reputation
98
Reaction score
36
Trophy points
1,308
Location
Stockholm, Sweden
Activity points
1,218
Re: not sure

It appears you've named your file WRIST.ASM which implies that the content is written in Assembly while, in fact, it's C.
You've got errors because you're trying to compile a C-source file with an Assembly compiler.
Try naming your file WRIST.C instead to indicate the need to use a C compiler.

Arthur
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top