AN1857 Freescale Semiconductor / Motorola, AN1857 Datasheet - Page 42
AN1857
Manufacturer Part Number
AN1857
Description
A 3-Phase ac Induction Motor Control System Based on the MC68HC908MR32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN1857.pdf
(52 pages)
- Current page: 42 of 52
- Download datasheet (425Kb)
Application Note
PBWC = 0x80;
while (~PBWC & 0x40);
PCTL = 0x30;
MOR = 0x00;
PMOD =PWM_MODULUS; // set up PWM modulus => PWM frequency
/*7.3728MHz Bus Frequency PWM_MODULUS = 0x00e6 gives16kHz PWM */
DEADTM=15;
DISMAP=0xff;
PCTL2 = 0x80;
PCTL1 |= 0xc0;
PWMOUT = 0x00;
PCTL1 |= 0x02;
FCR |= 0x08;
PVAL1 = PWM_MODULUS/2; /* set phase A pwm to 50% */
PVAL3 = PWM_MODULUS/2; /* set phase B pwm to 50% */
PVAL5 = PWM_MODULUS/2; /* set phase C pwm to 50% */
PCTL1 |= 0x20;
PCTL1 |= 0x01;
42
/* setup Motor Control PWM module */
/* (0x60: neg. center PWM mode; cop and LVI enabled) */
/* 2usec deadtime = #15 (for Bus freq. = 7.3728MHz) */
When all modules of the microcontroller are initialized, the code will then
enable the PWM module like this:
/* setup PLL clock */
/* pos. center PWM mode; cop and LVI enabled */
/* enables pwm interrupts */
/* enables PWM */
Freescale Semiconductor, Inc.
For More Information On This Product,
/* when PWM disabled, disable PWM1-6 */
/* PWM interrupt every 4th. pwm loads */
/* disable MCPWM */
/* output port control is PWM generator */
/* set LDOK bit */
/* Flt2 enabled in manual mode */
Go to: www.freescale.com
/* set Auto Bandwidth Control */
/* wait for PLL lock */
/* use PLL clock */
MOTOROLA
AN1857
Related parts for AN1857
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola