/********************************************************************************/
/** Timer3: Mode1B - 16-bit timer triggered by an event                        **/
/********************************************************************************/
/** CCU6 Ch0 generates a pwm signal at P0.4 with a frequency of 10kHz and a    **/
/** duty cycle of 50%.                                                         **/
/**                                                                            **/
/** At every rising edge of the pwm signal, Timer3 is reset and                **/
/** starts counting.                                                           **/
/** After 10us, Timer3 triggers an ADC1 measurement and an interrupt.          **/
/** To visualize the interrupt, P1.1 is set to high in the interrupt.          **/
/** When the ADC1 measurement has finished, an ADC1 EOC interrupt is           **/
/** generated ('Poti_Handler') which sets P1.1 to low and visualizes the       **/
/** measured value on the LEDs.                                                **/
/**                                                                            **/
/********************************************************************************/
/**           ____________________                    ___________________      **/
/** P0.4     |                    |                  |                   ...   **/
/** CC60 ----                      ------------------                          **/
/**          : reset & start                         : reset & start           **/
/**          : Timer3 (10us)                         : Timer3 (10us)           **/
/**          :         _                             :         _               **/
/** ADC1 Trig:        | |                            :        | |              **/
/**      ----:--------:  ----------------------------:--------:  ---------     **/
/**          :<------>:                              :<------>:                **/
/**             10us  :                                 10us  :                **/
/** ADC1 Meas         :<------>:                              :<------>:       **/
/**                   : 1.4us  :                              : 1.4us  :       **/
/**                   :        :_                             :        :_      **/
/** ADC1 EOC          :        | |                            :        | |     **/
/**      -------------:--------:  ----------------------------:--------:  -    **/
/**                   :________:                              :________:       **/
/** P1.1              |        |                              |        |       **/
/**      -------------          ------------------------------          -...   **/
/** Toggling of P1.1 is delayed due to interrupt latency (enter interrupt,     **/
/** return from interrupt), ISR handling, and Port toggling                    **/
/********************************************************************************/