UM0877
Table 2.
Used interrupts and their priority
Peripheral
EXTI Line1
EXTI Line2
DMA1 channel1
System timer (SYSTICK)
Figure 28. Use of peripherals for digital PFC
6.3
Main files for digital PFC
This firmware is structured in such a way as to allow easy integration with other existing
applications.
The software for the digital PFC is composed of two files. The first, "PFC.c", contains all the
functions, while the second, "PFC.h", contains the definitions of the system parameters
(other than constants used internally by the main file).
Obviously, with an existing (host) application, some additional steps must be accomplished
to integrate the PFC software. Assuming that the host application has the minimum
necessary resources available (in terms of embedded peripherals, CPU load and code
memory), it is basically sufficient to include these two files in the host application firmware
and to appropriately call a function that initializes and starts the digital PFC.
www.BDTIC.com/ST
IRQ Use
Overcurrent protection (PE.01)
Mains frequency detection (PD.02)
PFC routine
Timer for delays
Doc ID 16854 Rev 1
Digital PFC firmware
Pre-emption priority
0
0
1
2
Sub priority
0
1
0
0
33/62
Need help?
Do you have a question about the STM32F103ZE and is the answer not in the manual?
Questions and answers