a guest Nov 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- static unsigned char counter=0;
- void __interrupt() INTERRUPT_InterruptManager (void)
- if(PIE4bits.TMR2IE == 1 && INTCONbits.PEIE == 1 && PIR4bits.TMR2IF == 1)
- PIR4bits.TMR2IF = 0; // Clear IF
- LATC = (1 << (4+counter)) | (LATC & 0x0f);
RAW Paste Data