thx for reply
i have make the pin input pls look at my code, i have one dought that i hav connected mclr pin with10k resistoris it o.k. or their is problem in my code
void main()
{
asm clrwdt ;
TRISB = 0;
// PORTB is output
Lcd_Init(&PORTB); // Initialize LCD connected to PORTB
Lcd_Cmd(Lcd_CLEAR); // Clear display
Lcd_Cmd(Lcd_CURSOR_OFF); // Turn cursor off
Lcd_Out(1, 1, text); // Print text to LCD, 2nd row, 1st column
asm BSF STATUS,RP0 ;
OPTION_REG= 110000;
TRISA=00010000;
PORTA=00010000;
asm BCF STATUS,RP0;
TMR0=0;
while(1)
{
porta.f3=0;
porta.f2=0;
j=0;
cnt=0;
porta.f2=1;
porta.f2=0;
tcc=0;
tmr0=0;
porta.f3=1;
for(a=0;a<=20;a++)
{
for(b=0;b<=250;b++)
{
if(tcc>tmr0)
{
cnt++;
tcc=tmr0;
}
else
{
tcc=tmr0;
}
}
}
porta.f3=0;
j=tmr0;
dec_ascii(j);
}
}