Run and Test
After code compilation and flashing the device, perform the following steps:
1.
Connect the two pins P02.1 (PWM signal) and P02.0 (CC60 input) to each other
2.
Check the parameter
g_measuredPwmFreq_Hz
in the debugger (the debug
session should be suspended previously). Its value should be similar to the
parameter
g_generatedPwmFreq_Hz
3.
Change the parameter
g_generatedPwmFreq_Hz
and check if
g_measuredPwmFreq_Hz
changes accordingly
4.
Check the parameter
g_measuredPwmDutyCycle
in the debugger (the debug
session should be suspended previously). Its value should be similar to the
parameter
g_generatedPwmDutyCycle
5.
Change the parameter
g_generatedDutyCycle
and check if
g_measuredDutyCycle
changes accordingly
15
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.