Code: Select all
void interrupt()
{
if (PIR1.RCIF == 1)
{
PIR1.RCIF = 0 ;
uart_rd = UART1_Read();
if (uart_rd == 13)
{
PORTB.B4 = ~PORTB.B4 ; //activity 1 green ok
if (strncmp(testo,"get",3) == 0)
{
PORTB.B6 = ~PORTB.B6 ; //activity 2 yellow kkkko!
}
}
else
{
testo[puntatore] = uart_rd ; puntatore++ ; //accumula input da key computer
}
}
}