#use rs232(baud=9600, xmit=pin_C6, rcv=pin_C7, ERRORS)#int_rda
void serial_isr()
{
// Keypress=0x00;
if ( rs232_errors & 0x04 ) // get framing error bit from Rx status reg
{
cRxErrorFlag=1;
}
if(kbhit())
{
Keypress=getc();
buffer_char(Keypress); // lo recibo y lo añado al Buffer de Recepcion
// rtc_get_date(day,mth,year,dow); //coge hora,minuto,segundo
// printf("\n%2u/%2u/%2u/%2u", day, mth, year, dow);
}
}if(cRxErrorFlag==1)
{
printf("ERROR*ERROR#");
cRxErrorFlag=0;
}