thecall
Junior Member level 2
i just started working on Microcontrollers...... i am using mikroC for compiling programs and then simulate it on proteus and PIC16F84A.
prob is when i compile this prog. error is
Undeclared identifier RA0
Undeclared identifier RA1
Undeclared identifier RB0
Undeclared identifier RB1
here is the program.this is PUSH BUTTON PROG
PLZ HELP why is this so
void main()
{
TRISA=0b00000;//output
TRISB=0x1111111;// i/p
for(;
{
RA0=0;
if(RB0==1)
{
RA0=1;
}
RA1=0;
if(RB1==1)
{
RA1=1;
}
}
}
prob is when i compile this prog. error is
Undeclared identifier RA0
Undeclared identifier RA1
Undeclared identifier RB0
Undeclared identifier RB1
here is the program.this is PUSH BUTTON PROG
PLZ HELP why is this so
void main()
{
TRISA=0b00000;//output
TRISB=0x1111111;// i/p
for(;
{
RA0=0;
if(RB0==1)
{
RA0=1;
}
RA1=0;
if(RB1==1)
{
RA1=1;
}
}
}