Go to the source code of this file.
Defines | |
#define | EXTERN extern |
Functions | |
EXTERN void | changeSyncStatus (unsigned char) |
Change the accumulator mode to overflow every 5 inputs on PT0 making our 360 tooth wheel interrupt like a 72 tooth wheel. | |
Variables | |
EXTERN unsigned char | PrimaryTeethDuringHigh |
EXTERN unsigned char | PrimaryTeethDuringLow |
EXTERN unsigned char | isSynced |
Definition in file LT1-360-8.h.
#define EXTERN extern |
Definition at line 47 of file LT1-360-8.h.
EXTERN void changeSyncStatus | ( | unsigned char | synced | ) |
Change the accumulator mode to overflow every 5 inputs on PT0 making our 360 tooth wheel interrupt like a 72 tooth wheel.
PT0 Accumulator Mode
Definition at line 216 of file LT1-360-8.c.
References PACN0, PACTL, TCTL1, and TIOS.
Referenced by SecondaryRPMISR().
00216 { 00217 if (synced != 1) { /* disable accumulator counter, so an ISR is fired on all 360 teeth */ 00218 PACTL = 0x00; /* disable PAEN and PBOIV */ 00219 /* (PACTL) 7 6 5 4 3 2 1 0 00220 PAEN PAMOD PEDGE CLK1 CLK0 PAOVI PAI */ 00221 }else{ /* enable accumulator so an ISR is only fired on every "5th tooth of the 360x track" */ 00222 // TIOS = TIOS & "0xCC0x83" WTF!?LOL!! 0x80; /* PT7 input */ 00223 // TCTL1 = TCTL1 & "0xCC0x83" WTF!?LOL!! 0xC0; /* Disconnect IC/OC logic from PT7 */ 00224 TIOS = TIOS & 0x80; /* PT7 input */ 00225 TCTL1 = TCTL1 & 0xC0; /* Disconnect IC/OC logic from PT7 */ 00227 PACN0 = 0xFB ; /* Calculation, $00 – $05 = $FB. This will overflow in 5 more edges. */ 00228 PACTL = 0x52; /* Enable PA in count mode, rising edge and interrupt on overflow 01010010 */ 00229 } 00230 }
EXTERN unsigned char isSynced |
Definition at line 56 of file LT1-360-8.h.
Referenced by PrimaryRPMISR(), and SecondaryRPMISR().
EXTERN unsigned char PrimaryTeethDuringHigh |
Definition at line 54 of file LT1-360-8.h.
Referenced by PrimaryRPMISR(), and SecondaryRPMISR().
EXTERN unsigned char PrimaryTeethDuringLow |
Definition at line 55 of file LT1-360-8.h.
Referenced by PrimaryRPMISR(), and SecondaryRPMISR().