|
|
View previous topic :: View next topic |
Author |
Message |
MoofCba
Joined: 08 Mar 2004 Posts: 4
|
Extrange Error HELLLLP!!! |
Posted: Mon Mar 08, 2004 2:40 pm |
|
|
whats wrong with this code?
#include <16F877.h>
#device adc=10
#use delay(clock=10000000)
#fuses NOWDT,HS, PUT, NOPROTECT, BROWNOUT
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7)
#bit Conversion= ADCON0.2
int dato[2],puntero;
int16 AD[8]={0,1,2,3,4,5,6,7};
#int_AD
AD_isr()
{
...
}
#int_TBE
TBE_isr()
{
...
}
#int_RDA
RDA_isr()
{
...
}
void main()
{
..
}
Cos when i compile with CCS 3.184 i have this error:
UNDEFINED IDENTIFIER ?
a the compiler marks the line whith the int dato[2],puntero;
exactly the in of the int!!!!
why is this, this is my first proyect and i can make it work. |
|
|
mvaraujo
Joined: 20 Feb 2004 Posts: 59 Location: Brazil
|
|
Posted: Mon Mar 08, 2004 2:50 pm |
|
|
It seams to have a comma in the definition, right?
Code: | int dato[2],puntero; |
It shoudn't be there, use only:
Code: | int dato[2] puntero; |
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Mar 08, 2004 3:00 pm |
|
|
Quote: | It seams to have a comma in the definition, right?
Code:
int dato[2],puntero;
It shoudn't be there, use only:
Code:
int dato[2] puntero; |
Did you compile that code before you posted it ?
If he follows your recommendation, he will get this error.
*** Error 36 "C:\PICC\TEST\TEST.C" Line 19(13,20): Expecting a ; or ,
His problem is that he has not defined the ADCON0 symbol.
He needs to do that with a #byte statement. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|