230VAC IN
4kohm load
This example demonstrates active digital power factor correction performed by an XMC1302,
based on the DAVE project "PFC_XMC1302_QR_VS".
Only the power factor corrector current loop is closed, by employing constant on-time, zero-
crossing detection, valley delay, and valley skipping. The voltage loop that controls the output
voltage is left open (not implemented). The constant on-time is fixed at a value that results in
410V output over the fixed 4kohm load. 2 valleys are skipped in this example, to limit the
switching frequency.
How to program the microcontroller:
1. Build project in DAVE
2. Pack together the .hex and .elf files into a .zip
(usually found in the Debug folder)
3. Click on the microcontroller symbol
4. Click on the "MCU-code" details
5. Select "Upload"
6. Select the .zip file created earlier
7. Click "Upload"
8. Click "OK"