GR64 and PIC 16F876

Hi everybody.

I’m working in a project using GR64 and a microcontroller 16F876. The comunication between both is through RS232 protocol, in GR64 using the function UTS and in the 16F876 I’m using RS232 Interruption.

In GR64 the code is:

uts(1,3,0);
uts(“data\r”,4);
utc(0,0,0);

In PIC 16F876 the code is:

char data[8];

#int_RDA
void RDA_isr()
{
strcpy(data,"");

if(kbhit()){
gets(data);
}
}

void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_spi(FALSE);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
enable_interrupts(INT_RDA);
enable_interrupts(GLOBAL);

printf("%s\n\r", data);
}

When I send data with Hyperterminal to the PIC, the circuit works OK but when I connect GR64 and start the embbebed program, the program in the PIC 16F876 stops.

Any idea??