EXAMPLE NAME: XMC1400_CCU4_Single_PWM

OVERVIEW: This example demonstrates the use of CCU4 module for calculating the duty cycle of a captured signal
                     
DESCRIPTION:
- It is running on the internal oscillator @48MHz
- CCU4.CC40 slice, it is configured in edge-aligned mode (24KHz @ 30% duty cycle) on P4.0.
- CCU4.CC41 slice is used to capture the timing on P4.1.
- On a captured event, the duty cycle is calculated. 
 
REQUIRMENTS:
XMC Peripheral Library: v2.1.2

HOW TO TEST:
- Download and run the demo in the uC.
- Connect P4.0 to P4.1

OBSERVATIONS:
- Using the debugger, observe the variable captureduty ~ 3000. This represents duty of 30.00%
- The calculated duty is with a scale factor of 10000. i.e. 10000 = 100%.
