LT1-360-8.h File Reference

This graph shows which files directly or indirectly include this file:

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


Detailed Description

Definition in file LT1-360-8.h.


Define Documentation

#define EXTERN   extern

Definition at line 47 of file LT1-360-8.h.


Function Documentation

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

Todo:
TODO Decide if an explicit parameter is necessary if not use a existing status var instead for now it's explicit.

Todo:
TODO the register below does not exist and I couldn't figure out what you meant to do...

Definition at line 215 of file LT1-360-8.c.

References PACN0, PACTL, TCTL1, and TIOS.

Referenced by SecondaryRPMISR().

00215                                            {
00216     if (synced != 1) { /* disable accumulator counter, so an ISR is fired on all 360 teeth */
00217         PACTL = 0x00; /* disable PAEN and PBOIV */
00218         /*  (PACTL) 7   6    5     4     3    2    1    0
00219                       PAEN PAMOD PEDGE CLK1 CLK0 PAOVI PAI */
00220     }else{  /* enable accumulator so an ISR is only fired on every "5th tooth of the 360x track" */
00221 //      TIOS = TIOS &  "0xCC0x83" WTF!?LOL!! 0x80;  /* PT7 input */
00222 //      TCTL1 = TCTL1 &  "0xCC0x83" WTF!?LOL!! 0xC0; /* Disconnect IC/OC logic from PT7 */
00223         TIOS = TIOS & 0x80;  /* PT7 input */
00224         TCTL1 = TCTL1 & 0xC0; /* Disconnect IC/OC logic from PT7 */
00226         PACN0 = 0xFB ; /* Calculation, $00 – $05 = $FB. This will overflow in 5 more edges. */
00227         PACTL = 0x52; /* Enable PA in count mode, rising edge and interrupt on overflow  01010010 */
00228     }
00229 }


Variable Documentation

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().


Generated on Wed May 26 03:59:56 2010 for FreeEMS by  doxygen 1.5.6