AN1965 Freescale Semiconductor / Motorola, AN1965 Datasheet - Page 17

no-image

AN1965

Manufacturer Part Number
AN1965
Description
Design of Indirect Power Using the 56F800/E
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
17
7.5 PFC Control API
7.5.1 PFC_Init
7.5.2 PFC_SetUOut
MilestoneTime is the array of the milestones’ time intervals. Its values depend on the current waveform
to be generated. The MKS_TO_TICK() macro allows the definition value to be expressed in
microseconds.
Example:
MilestoneCallback is the array of pointers to the functions to be executed. These functions occur after
each corresponding time interval is defined in MilestoneTime[], control PFC reference voltage and
inhibit output.
Example:
This section describes the main PFC control functions, permitting PFC features to be used in the main
code.
Prototype:
This function initializes the PFC on-chip peripherals.
Prototype:
This function allows the DCBus voltage value to pass to PFC control. The refresh rate of this value
must be no less than the input voltage frequency.
const UWord16 MilestoneTime[] ={
MKS_TO_TICK(411L),
MKS_TO_TICK(382L),
MKS_TO_TICK(411L),
MKS_TO_TICK(5500L),
MKS_TO_TICK(5000L),
NULL,/* End of time table */ };
/* Forward function declaration */
void PFC_SetLowGain(void);
void PFC_SetHighGain(void);
void PFC_ForceInhibit(void);
const pfc_tCallback* MilestoneCallback[] = {
PFC_SetLowGain,
PFC_ForceInhibit,
PFC_SetLowGain,
PFC_SetHighGain,
PFC_EnableZCDetection,
NULL,
void PFC_Init(void);
void PFC_SetUOut(UInt16 u_dc_bus);
Freescale Semiconductor, Inc.
For More Information On This Product,
Indirect Power Factor Correction
Go to: www.freescale.com
/* End of callback table */
Software Implementation

Related parts for AN1965