參數(shù)資料
型號: DRM031
英文描述: 3-Phase Switched Reluctance Motor Drive Control with Encoder Using 56F805
中文描述: 3相開關磁阻電機的編碼器控制中的應用56F805
文件頁數(shù): 87/190頁
文件大小: 2557K
代理商: DRM031
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁當前第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁
Software Module Descriptions
Software Implementation
DRM033 — Rev 0
Designer Reference Manual
MOTOROLA
Software Module Descriptions
For More Information On This Product,
Go to: www.freescale.com
87
tmp = spi0TxWord(CSB3, METALLICCMD);
tmp = spi0TxWord(CSB3, RUNCMD);
#ifdef FAST_CAN_ENABLE
/* initialize Power Oak MC33394 device for the first time */
tmp = spi0TxWord(CSB4, POWEROAKCMD); /* configure Power Oak */
#endif
}
As already mentioned there are couple of different SPI channel settings
applicable for devices. First of them is the SPI format; while for MC33298
(Octal Serial Switch) and MC33884 (Switch Monitor Interface) the most
significant bit is transferred first, for the PC33394 the least significant bit
is transferred first. The second divergence is in the
SPI Clock phase shift
bit
settings; for PC33394 and MC33884 devices this value has to be
equal to 0 (the first SCLK edge is issued one-half cycle into the 8-cycle
transfer operation), while MC33298 device needs that value to be 1 (the
first SCLK edge is issued at the beginning of the 8-cycle transfer
operation). And the last difference is the fact that Octal Serial Switch
MC33298 device uses 8-bit long SPI format of communication, while the
remaining two devices require a 16-bit long format.
These function style macros are used for proper SPI channel
initialization before each communication with a particular device.
/* re-initialization of the SPI communication format for different devices:
MC33298 (digital outputs):
bit LSBF = 0 (lsb first enable)
bit CPHA = 1 (clock phase bit, first SCLK edge at begin)
MC33884 (digital inputs):
bit LSBF = 0 (lsb first enable)
bit CPHA = 0 (clock phase bit, first SCLK edge at begin)
MC33394 (Power Oak)
bit LSBF = 1 (lsb first enable)
bit CPHA = 0 (clock phase bit, first SCLK edge at begin) */
#define setSPIForInputs() spi0.spicr1.bit.cpha = 0; \
spi0.spicr1.bit.lsbf = 0
#define setSPIForOutputs() spi0.spicr1.bit.cpha = 1; \
spi0.spicr1.bit.lsbf = 0
#define setSPIForPowerOak() spi0.spicr1.bit.cpha = 0; \
spi0.spicr1.bit.lsbf = 1
NOTE:
Note that there is another difference in format of the SPI communication
with devices. While for MC33884 and MC33298 the chip select signal is
active in low, for PC33394 it is active in high.
F
Freescale Semiconductor, Inc.
n
.
相關PDF資料
PDF描述
DRM032 3-Phase SR Motor Control with Hall Sensors Reference Design
DRM040 Single Phase Digital Power Meter Reference Design
DRM041 Building an USB-DDC ICP Interface Board HardwareReference Design
DRM042 Universal Serial Bus Wireless Optical Mouse and Multimedia Keyboard reference design designer reference manual
DRM043 Li-on Battery Charger Reference Design Designer Reference Manual
相關代理商/技術參數(shù)
參數(shù)描述
DRM10 功能描述:DIP 開關/ SIP 開關 BCD 10 POS RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM1004 功能描述:DIP 開關/ SIP 開關 ROTARY DIP SWITCH PLASTICSHAFT RoHS:否 制造商:Omron Electronics 位置數(shù)量:10 開關類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型: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:否 類別:開關 >> DIP 系列:DR 特色產(chǎn)品:RDM Series Rotary DIP Switch 標準包裝:70 系列:RDM 電路:十六進制 位置數(shù):16 觸點額定電壓:0.1A @ 42VDC 觸動器類型:用于工具旋轉 觸動器電平:凹槽式 安裝類型:通孔 方向:頂部觸動 可清洗:是 其它名稱:EG4977-5RDMAR16PIT
DRM10C04 功能描述:編碼式波段開關 SW DIP MINI SHAFT 10POS T/H RoHS:否 制造商:C&K Components 位置數(shù)量:10 輸出代碼:Binary Coded Decimal 執(zhí)行器:Screwdriver 觸點額定值: 端接類型:Solder Pin 封裝:Tube