// Timer einschalten und initialisieren // Ensure the timer is disabled (the TnEN bit is cleared) before making any changes. #define Timer_CTL_TAEN = 0x00; // Write the GPTM Configuration (GPTMCFG) register with a value of 0x4. #define TIMER_A_CFG = 0x04; //// 16-bit timer configuration. // In the GPTM Timer Mode (GPTMTnMR) register, write the TnCMR field to 0x1 and the TnMR field to 0x3. #define TIMER_A_TAMR = 0x07; // Configure the type of event that the timer captures by writing the TnEVENT field of the GPTM Control (GPTMCTL) register. #define TIMER_A_CTL = 0x04; // Negative edge // Load the timer start value into the GPTM Timern Interval Load (GPTMTnILR) register. #define TIMER_A_TAILR = 0xFFFFFFFF; // If interrupts are required, set the CnEIM bit in the GPTM Interrupt Mask (GPTMIMR) register. #define TIMER_A_IMR = 0x04; // GPTM Capture A Event Interrupt Mask