Private functions of the application layer of the power control task. More...
Functions | |
volatile uint16_t | appPowerSupply_ConverterObjectInitialize (void) |
This function initializes the buck converter device driver instance. More... | |
volatile uint16_t | appPowerSupply_ControllerInitialize (void) |
This function initializes the control system feedback loop objects. More... | |
volatile uint16_t | appPowerSupply_PeripheralsInitialize (void) |
This function is used to load peripheral configuration templates from the power controller device driver. More... | |
void | appPowerSupply_CurrentBalancing (void) |
This function performs current balancing between the power supply phases. More... | |
Private functions of the application layer of the power control task.
The private functions of the power control application layer are used to configure the generic power controller device driver defined in dev_buck_typedef.h as well as to provide additional functions required by the specific hardware design.
volatile uint16_t appPowerSupply_ControllerInitialize | ( | void | ) |
This function initializes the control system feedback loop objects.
This function allows the user to set up and initialize the loop configuration. This includes the following setup.
Definition at line 305 of file app_power_config.c.
volatile uint16_t appPowerSupply_ConverterObjectInitialize | ( | void | ) |
This function initializes the buck converter device driver instance.
This function initialize the buck converter object status, reset the buck state machine, set reference values, clear the runtime data, initialize the switch node, and setup the feedback channels and start-up settings.
< Master time base is disabled, synchronization is established among PWM generators
Definition at line 66 of file app_power_config.c.
|
inline |
This function performs current balancing between the power supply phases.
Current balancing in this design is performed on a 10 kHz frequency, triggered by the general state machine execution period. In each step the current sense feedback signals of each phase are compared. Phase #1 is considered to be the leading phase while all others are power multipliers.
If the current sense feedback signal of phase #2 is lower than that of phase #1, a static duty ratio offset of one PWM time-base tick is added to the duty ratio of phase #2 forcing more current flowing through phase #2, effectively shifting current from phase #1 to phase #2.
If the current sense feedback signal of phase #2 is higher than that of phase #1, the static duty ratio offset of phase #2 is reduced by one PWM time-base tick to force less current flowing through phase #2, effectively shifting current from phase #2 to phase #1.
Over several current balancing cycles this offset will accumulate until the phase currents are balanced.
Additional noise-floor signal filters are used to ensure the current balancing does not respond to small differences in immediate ADC samples.
Definition at line 320 of file app_power_control.c.
volatile uint16_t appPowerSupply_PeripheralsInitialize | ( | void | ) |
This function is used to load peripheral configuration templates from the power controller device driver.
This function hand over the peripheral configuration to the buck converter driver
Definition at line 420 of file app_power_config.c.