Example Code: XMC1300_CCU4_Timer

Description of example project
==============================
This example uses the compare match feature to generate an interrupt every period to toggle the LED (P0.0).
The compare value is set to half of the period match value, which results in a duty cycle of 50%. The period match value is calculated based on the PCLK = 64MHz, to give a period of 1s. Hence the P0.0 LED will blink at 1Hz with 50% duty cycle.

Hardware Setup
===============
XMC1300 Bootkit (No satellite board required)

How to test the application
============================
a. Import the project
b. Compile and flash the application to the device
c. Observe the LED P0.0 blink at 1Hz with 50% duty cycle

How to modify the application
==============================
Modify the compare value to adjust the duty cycle by updating the DUTYCYCLE macro.
Modify the period match value to adjust the frequency by updating the PWMPERIOD macro.