SHARE
TWEET

Untitled




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
- if(counter==4)
- counter=0;
- LATC = (1 << (4+counter)) | (LATC & 0x0f);
- counter+=1;
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.