5.3 Flowchart

  • configure_prescaler: This function configures the prescaler to divides the 16MHz clock provided by the mEDBG debugger by 2 to generate 8MHz system clock.
  • timer_init: Initializes Timer0 for software PWM and Timer2 for timing QTouch Library.
  • touch_sensors_init: Initializes QTouch library and configures touch sensors.
  • configure_port_pins: Configures USER LED pin as output.
  • touch_sensors_measure: Measures the capacitive touch sensors.