예제 #1
0
파일: main.c 프로젝트: VeronicaFP/Proyecto
void interrupt Interruption() {
    //Timer interruption
    if (INTCONbits.PEIE & PIR1bits.RCIF) {
        uart_isr();
    } else {
        if (INTCONbits.TMR0IE & INTCONbits.TMR0IF) {
            timer0_isr();
            readData();
            imprimir();
        }
    }
}
예제 #2
0
//low priority ISR function
void interrupt low_priority isr_l(void)
{
    timer0_isr();
}