AN1965 Freescale Semiconductor / Motorola, AN1965 Datasheet - Page 16

no-image

AN1965

Manufacturer Part Number
AN1965
Description
Design of Indirect Power Using the 56F800/E
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Software Implementation
7.3 PFC Control Integration
7.3.1 Resources
7.3.2 Modification
7.4 PFC Control Constants
16
PFC control uses some of the hybrid controller’s peripherals and cannot share resources with the motor
control application (excluding the ADC channel for DCBus voltage measurement). The following
resources are allocated to PFC control:
Place the following line in the main program to provide access to the PFC control API functions:
This section describes constants, located in the main module. It defines the waveform of the PFC input
current.
MILESTONE_OFFSET defines the time between the rising edge of the zero-crossing signal and the
first milestone point. This time depends on the zero-crossing detection subsystem of the PFC
hardware, which can be measured. The MKS_TO_TICK() macro allows the definition value to be
expressed in microseconds.
Example:
Bean name
adcPrimary
PC_M1
tmrD1
tiAux
Quad Timer module D, Channel 0
Quad Timer module D, Channel 1
Quad Timer module D, Channel 2
Quad Timer module C, Channel 0 (56F805 only)
#include “PE_dpfc.h”
#define MILESTONE_OFFSET MKS_TO_TICK(820L)
Table 7-2. Beans Used in Implementing the 56F8346
Freescale Semiconductor, Inc.
PC_Master
Bean type
PI_TMR
TimerInt
PI_ADC
For More Information On This Product,
Indirect Power Factor Correction
Go to: www.freescale.com
Description
Provides serial communication with the PC_Master software
running on PC using SCI0 on-chip device. Speed of commu-
nication is 9600 bps.
Measures the output voltage.
Zero crossing input.
Auxilary timer 20 ms base.

Related parts for AN1965