參數(shù)資料
型號: DRM026
英文描述: 3-Phase BLDC Motor Control with Sensorless BACK-EMF ADC Zero Crossing Detection Using 56F805
中文描述: 三相無刷直流電動機(jī)控制傳感器反電動勢過零檢測ADC的使用56F805
文件頁數(shù): 43/66頁
文件大小: 1157K
代理商: DRM026
Software Design
Software Implementation
DRM020 — Rev 0
Designer Reference Manual
MOTOROLA
Software Design
43
PMOD = 0x00e6;
/* set up PWM modulus => PWM frequency */
/* for 7.3728MHz Bus Frequency
PWM_MODULUS = 0x00e6 gives 16kHz PWM */
/* 2usec deadtime = #15
(for Bus freq. = 7.3728MHz) */
/* when PWM disabled, disable PWM1-6 */
/* PWM interrupt every 4th. PWM loads */
/* disable MCPWM */
/* output port control is PWM gen. */
/* set LDOK bit */
/* Flt2 enabled in manual mode */
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% */
When all modules of the microcontroller are initialised, enable the PWM
module:
PCTL1 |= 0x20;
PCTL1 |= 0x01;
/* enables PWM interrupts */
/* enables PWM */
4.4.2 Software Timer
The software timer routine provides the timing sequence for required
subroutines. The software timer is performed instead of an Output
Capture interrupt handler because of lack of interrupt priority in the HC08
MCU. The main program has several time-demanding interrupt routines
and more interrupt requirements can cause a software fault.
The software timer routine has two timed outputs -
in
READ_CONST
timeout, there is a routine that scans inputs,
calculates speed command, handles fault routines and the LED
driver
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
DRM027 3-Phase Sensorless BLDC Motor Control with Back-EMF Zero Crossing Detection Using 56F805
DRM028 Sensorless BLDC Motor Control Using the MC68HC908MR32
DRM033 Industrial CAN I/O Module
DRM034 PC CAN Interface
DRM035 Power Line Modem Reference Design
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DRM10 功能描述:DIP 開關(guān)/ SIP 開關(guān) BCD 10 POS RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關(guān)類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點(diǎn)形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM1004 功能描述:DIP 開關(guān)/ SIP 開關(guān) ROTARY DIP SWITCH PLASTICSHAFT RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關(guān)類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點(diǎn)形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM101 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Blood Pressure Monitor Using the Flexis QE128 Family
DRM10C 功能描述:SWITCH DIP MINI SHAFT 10POS T/H RoHS:否 類別:開關(guān) >> DIP 系列:DR 特色產(chǎn)品:RDM Series Rotary DIP Switch 標(biāo)準(zhǔn)包裝:70 系列:RDM 電路:十六進(jìn)制 位置數(shù):16 觸點(diǎn)額定電壓:0.1A @ 42VDC 觸動器類型:用于工具旋轉(zhuǎn) 觸動器電平:凹槽式 安裝類型:通孔 方向:頂部觸動 可清洗:是 其它名稱:EG4977-5RDMAR16PIT
DRM10C04 功能描述:編碼式波段開關(guān) SW DIP MINI SHAFT 10POS T/H RoHS:否 制造商:C&K Components 位置數(shù)量:10 輸出代碼:Binary Coded Decimal 執(zhí)行器:Screwdriver 觸點(diǎn)額定值: 端接類型:Solder Pin 封裝:Tube