AN1857 Freescale Semiconductor / Motorola, AN1857 Datasheet - Page 41

no-image

AN1857

Manufacturer Part Number
AN1857
Description
A 3-Phase ac Induction Motor Control System Based on the MC68HC908MR32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN1857
MOTOROLA
crossing interrupt for the PFC, an output compare to generate the input
current waveform, an A/D interrupt to control PFC output voltage, SCI
read, and transmit routines.
Initialization — The main routine provides initialization of the
microcontroller:
An example of initialization of PLL clock and motor control PWM mod-
ules for the MR32 follows.
Freescale Semiconductor, Inc.
For More Information On This Product,
Clears RAM
Initializes PLL clock
Initializes PWM module:
– Center-aligned complementary PWM mode, positive polarity
– COP and LVI enable (MOR register)
– PWM modulus — Defines the PWM frequency (PMOD
– 2- s dead-time (DEADTM register)
– PWM interrupt reload every fourth PWM cycle (PCTL2
– FAULT2 (overcurrent fault) in manual mode, interrupt enabled
Sets up I/O ports
Initializes timer A for input compare, output compare, and for a
software timer reference
Initializes timer B for PWM generation for the PFC
Initializes the A/D converter
Detects connected boards
Detects input line voltage limits
Detects input line frequency
Calibrates the PFC feedback offset FB_offset
If any error occurs, the fault LED is turned on, the failure register
is set, and the software waits for reset.
Enable interrupts
(MOR register)
register)
register)
(FCR register)
Go to: www.freescale.com
Application Note
Software
41

Related parts for AN1857