Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Configure Timer 5.
- TMR5 = 0;
- PR5 = 99; // period match every 100 us
- IPC5SET = ( 1 << 4 ) | ( 1 << 3 ) | ( 1 << 2 ) | ( 1 << 1 ) | ( 1 << 0 ); // interrupt priority level 7, sub 3
- IFS0CLR = ( 1 << 20);
- IEC0SET = ( 1 << 20);
- // Start timers.
- T5CON = ( 1 << 15 ) | ( 1 << 5 ) | ( 1 << 4 ); // fTimer5 = fPb / 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement