Digital PFC firmware
Figure 27. PFC states
6.2
STM32 peripherals for digital PFC
Some STM2 peripherals are used to perform the digital PFC.
Table 1.
Peripherals and pins of the STM32F103ZE used for the digital PFC
Peripheral
ADC1 Ch.3 (regular channel)
ADC1 Ch.4 (regular channel)
ADC2 Ch.5 (regular channel)
TIM3 Ch.4 (80 kHz)
Duty cycle changes every two periods
TIM3 Ch.3 (80 kHz)
This duty cycle is half of the TIM3 Ch.4 duty
cycle, but never lower than 8% (1 µs) to avoid
any bad effects caused by the power
MOSFET's commutation
DMA Ch.1
Input
Output
EXTI line 1
System timer (SYSTICK)
32/62
www.BDTIC.com/ST
Description
Output DC voltage
PFC current
Input AC voltage
Drives the PFC power MOSFET
Triggers the ADC:
st
– 1
trigger to convert ADC1 Ch.3 (one
channel is available)
nd
– 2
trigger to convert ADC1 Ch4 and ADC2
Ch.5
Stores the converted values coming from
ADCs. Its IRQ calls the PFC routine after 2
couple of ADC conversions
V
zero crossing detection
in
Drives the relay for bypassing the resistor
when there is in-rush current
PFC hardware overcurrent detection
Internal timer for other features
Doc ID 16854 Rev 1
UM0877
MCU
MC + PFC
pin
connector
PA.03
14
PA.04
24
PA.05
22
PC.09
29
nd
PD.02
27
PD.10
21
PE.01
2
Need help?
Do you have a question about the STM32F103ZE and is the answer not in the manual?
Questions and answers