The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

Embedded (Software Development Kit) Targeting Motorola DSP56F80x


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet




Embedded (Software Development Kit)
Targeting Motorola DSP56F80x Platform
SDK126/D Rev. 03/21/2003
Motorola, Inc., 2003. rights reserved.
More Information This Product, www.freescale.com
More Information This Product, www.freescale.com
Contents
About This Book
Audience xlvii Organization xlvii Suggested Reading xlvii Conventions xlviii References. xlix
Chapter Introduction
Before Start Quick Start 1.2.1 Install CodeWarrior Development Tools .1-1 1.2.2 Install DSP56F80xEVM Hardware .1-2 1.2.3 Install 1.2.4 Build Released Software.
Chapter Directory Structure
DSP56F80x Directory Structure
Chapter Target Configuration DSP56F80x
Configuration 3.1.1 3DES 3.1.2 3.1.3 3.1.4 BLDC 3.1.5 3.1.6 BUTTON 3.1.7 CALLER_ID. 3.1.8 3.1.9 CAS_DETECT 3.1.10 COP. 3.1.11 CORE 3.1.12 3.1.13 3.1.14 DECODER 3.1.15
MOTOROLA
Table Contents More Information This Product, www.freescale.com
3.1.16 DSPFUNC 3.1.17 DTMF_DET 3.1.18 DTMF_GEN 3.1.19 FILEIO 3.1.20 FLASH 3.1.21 G.165. 3-10 3.1.22 G.711. 3-10 3.1.23 G.726. 3-10 3.1.24 GPIO 3-11 3.1.25 3-11 3.1.26 ITCN 3-12 3.1.27 LED. 3-12 3.1.28 MCFUNC 3-13 3.1.29 MEMORY 3-13 3.1.30 PCMASTER 3-14 3.1.31 3-14 3.1.32 PWM. 3-15 3.1.33 QUAD_TIMER 3-15 3.1.34 3-16 3.1.35 3-16 3.1.36 SPI. 3-17 3.1.37 3-17 3.1.38 STACK_CHECK 3-18 3.1.39 SWITCH 3-18 3.1.40 TIMER 3-19 3.1.41 3-19 3.1.42 V.8bis 3-19 3.1.43 V.22bis 3-20 3.1.44 V.42bis 3-20 Memory Configuration 3-21 3.2.1 External Memory Operation DSP56F801 DSP56F802 3-21 3.2.2 External Memory Operation DSP56F803 DSP56F805 3-21 3.2.2.1 Linker Command File 3-21 3.2.2.2 Linking: Memory Partitions .3-24 3.2.2.3 Programming Target Memory 3-25 3.2.3 External Memory Operation DSP56F807 3-26 3.2.3.1 Linker Command File 3-26 3.2.3.2 Linking: Memory Partitions .3-29 3.2.3.3 Programming Target Memory 3-30 3.2.4 Internal (Flash) Memory Operation DSP56F801 DSP56802 3-31 3.2.4.1 Linker Command File 3-31 3.2.4.2 Linking: Memory Partitions .3-34 3.2.4.3 Linking: Initialized Data Data RAM. 3-35 3.2.4.4 Programming Target Memory 3-36 3.2.5 Internal (Flash) Memory Operation DSP56F803 DSP56F805 3-37
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
3.2.6 Internal (Flash) Memory Operation DSP56F807 3-37 3.2.6.1 Linker Command File 3-37 3.2.6.2 Linking: Memory Partitions .3-40 3.2.6.3 Programming Target Memory 3-41 DSP56F80x Boot Sequence Configuration .3-42 3.3.1 Start-up Sequence Without Bootloader .3-42 3.3.1.1 Step Power-up/Reset. 3-43 3.3.1.2 Step Start-up Code 3-43 3.3.2 Start-up Sequence with Bootloader .3-43 3.3.2.1 Step Power-up/Reset. 3-45 3.3.2.2 Step Transition Application's Entry Point 3-45 3.3.2.3 Step Start-up Code 3-45 Clock (PLL) Configuration. 3-46
Chapter Interrupt Processing DSP56F80x
4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.4.10 4.4.11 4.4.12 4.4.13 4.4.14 4.4.15 4.4.16 Interrupt Dispatcher Super Fast Interrupt Dispatcher Fast Interrupt Dispatcher Normal Interrupt Dispatcher Overhead. Stack Requirements Nested Interrupts. Interrupt Priorities. Device Drivers Driver. Button Driver Driver. Driver. Decoder Driver File Driver Flash Driver GPIO Driver Driver Master Driver Driver Quad Timer Driver Driver. Driver Switch Driver Timer Driver
MOTOROLA
Table Contents More Information This Product, www.freescale.com
Chapter On-Chip Drivers
Driver 5.1.1 Introduction. 5.1.2 Initialization 5.1.3 Definition. 5.1.4 Device Independent Specifications 5.1.4.1 open. 5.1.4.2 write 5.1.4.3 read 5.1.4.4 close 5.1.4.5 ioctl 5.1.5 Low-Level Specification .5-10 5.1.6 Driver Application 5-10 Flash Driver 5-12 5.2.1 Introduction. 5-12 5.2.2 Initialization 5-13 5.2.3 Definition. 5-14 5.2.4 FLASH Device-Independent Specifications 5-16 5.2.4.1 open. 5-17 5.2.4.2 write 5-18 5.2.4.3 read 5-19 5.2.4.4 close 5-20 5.2.4.5 ioctl 5-21 5.2.5 Flash Low-Level Specification. 5-22 5.2.6 Flash Driver Application 5-22 Driver. 5-22 5.3.1 Introduction. 5-22 5.3.2 Initialization 5-22 5.3.3 Definition. 5-24 5.3.4 Device Independent Specifications 5-26 5.3.4.1 open. 5-27 5.3.4.2 write 5-28 5.3.4.3 read 5-29 5.3.4.4 close 5-30 5.3.4.5 ioctl 5-31 5.3.5 Low-Level Specifications 5-34 5.3.6 Driver Application 5-34 Driver. 5-35 5.4.1 Introduction. 5-35 5.4.2 Initialization 5-35 5.4.3 Definition. 5-38 5.4.4 Device-Independent Specifications 5-40 5.4.4.1 open. 5-41 5.4.4.2 read 5-42 5.4.4.3 close 5-43 5.4.4.4 ioctl 5-44
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com MOTOROLA
5.4.5 Low-Level Specifications .5-46 5.4.5.1 adcOpen 5-47 5.4.5.2 adcRead. 5-48 5.4.5.3 adcClose 5-49 5.4.5.4 adcIoctl 5-50 5.4.6 Driver Application. 5-52 Quad Timer Driver 5-53 5.5.1 Introduction. 5-53 5.5.2 Initialization 5-53 5.5.3 Definition. 5-55 5.5.4 Quad Device-Independent Specifications 5-59 5.5.4.1 open. 5-60 5.5.4.2 close 5-61 5.5.4.3 ioctl qtIoctl 5-62 5.5.5 Quad Timer Low-Level Specifications. 5-66 5.5.5.1 qtOpen. 5-67 5.5.5.2 qtClose 5-68 5.5.5.3 qtIoctl 5-69 5.5.6 Quad Timer Driver Application 5-70 GPIO Driver 5-71 5.6.1 Introduction. 5-71 5.6.2 Initialization 5-71 5.6.3 Definition. 5-71 5.6.4 GPIO Device-Independent Specifications 5-73 5.6.4.1 open. 5-74 5.6.4.2 close 5-75 5.6.4.3 ioctl 5-76 5.6.5 GPIO Low-Level Specifications .5-79 5.6.5.1 gpioOpen. 5-80 5.6.5.2 gpioClose 5-81 5.6.5.3 gpioIoctl 5-82 5.6.6 GPIO Driver Application 5-83 Quadrature Decoder Driver. 5-83 5.7.1 Introduction. 5-83 5.7.2 Initialization 5-83 5.7.3 Definition. 5-83 5.7.4 Quadrature Decoder Device-Independent Specification. 5-86 5.7.4.1 open. 5-87 5.7.4.2 close 5-88 5.7.4.3 decIoctl 5-89 5.7.5 Low-Level Device Driver Specification 5-97 5.7.5.1 decoderOpen 5-98 5.7.5.2 decoderClose. 5-99 5.7.5.3 decoderIoctl 5-100 5.7.6 Quadrature Decoder Driver Application. .5-100
MOTOROLA
Table Contents More Information This Product, www.freescale.com
Driver 5-101 5.8.1 Introduction. 5-101 5.8.2 Initialization 5-101 5.8.3 Definition. 5-103 5.8.4 Device-Independent Specification 5-106 5.8.4.1 open. 5-107 5.8.4.2 close 5-108 5.8.4.3 pwmIoctl 5-109 5.8.5 Low-Level Device Driver Specification 5-120 5.8.5.1 pwmOpen 5-121 5.8.5.2 pwmClose 5-122 5.8.6 Driver Application 5-123 Driver 5-124 5.9.1 Definition. 5-125 5.9.2 Specification 5-126 5.9.2.1 plldrvInitialize. 5-127 5.9.2.2 plldrvCalibrate (DSP56F801 DSP56F802 only) 5-131 5.9.3 Test Register 5-132 5.9.4 Status Register 5-132 5.9.5 DSP56F801 DSP56802 Clock Operation 5-132 5.9.5.1 DSP56F801 Clock Switch-Over Procedure 5-133 5.9.5.1.1 Disabling EXTAL XTAL Pull Resistors 5-135 5.9.5.1.2 External Crystal Oscillator Stabilization Delay 5-135 5.9.5.1.3 External Crystal Oscillator Select. .5-135 5.9.5.2 Internal Oscillator Control Register (IOSCTL) 5-135 5.10 Computer Operating Properly (COP) Driver .5-137 5.10.1 Initialization 5-137 5.10.2 Definition. 5-139 5.10.2.1 copInitialize() 5-140 5.10.2.2 copReload(). 5-141 5.10.2.3 copForceReset() 5-142 5.10.2.4 copGetSysStatus() copClrSysStatus() 5-143 5.10.3 Driver Application 5-145 5.11 Core Configuration Registers (CORE) Driver .5-147 5.12 Interrupt Controller (ITCN) Driver. 5-147 5.13 System Integration Module (SIM) Driver .5-149 5.13.1 Initialization 5-150 5.14 Driver. 5-151 5.15 Timer Driver 5-151
Chapter Off-Chip Drivers
Driver 6.1.1 Introduction. 6.1.2 Initialization 6.1.3 Definition.
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
6.1.4 Device-Independent Specifications 6.1.4.1 open. 6.1.4.2 close 6.1.4.3 ioctl 6.1.5 Low-Level Device Drivers Specifications 6.1.5.1 ledOpen 6.1.5.2 ledClose 6.1.5.3 ledIoctl 6-10 6.1.6 Driver Application 6-10 FILE Driver 6-11 6.2.1 Introduction. 6-11 6.2.2 Initialization 6-11 6.2.3 Definition. 6-12 6.2.4 File Device-Independent Specifications 6-13 6.2.4.1 open. 6-14 6.2.4.2 write 6-15 6.2.4.3 read 6-16 6.2.4.4 close 6-17 6.2.4.5 ioctl 6-18 6.2.5 Low-Level Services Specifications. 6-19 6.2.6 FILE Driver Application 6-19 Master Communication Driver 6-20 6.3.1 Introduction. 6-20 6.3.2 Initialization 6-20 6.3.3 Definitions 6-20 6.3.4 Master Driver Low-Level Specification 6-23 6.3.4.1 pcmasterdrvInit Initialize Master Driver Communication 6-24 6.3.4.2 pcmasterdrvGetAppCmdSts Application Command Status 6-25 6.3.4.3 pcmasterWriteAppCmdSts Write Application Command Status. 6-26 6.3.4.4 pcmasterdrvIsr Main communication function 6-27 6.3.4.5 pcmasterdrvRecorder Sample recorded variables 6-28 6.3.5 Master Driver Application 6-29 Switch Driver 6-29 6.4.1 Introduction. 6-29 6.4.2 Initialization 6-29 6.4.3 Definition. 6-29 6.4.4 Switch Device-Independent Specifications 6-30 6.4.4.1 open. 6-31 6.4.4.2 close 6-32 6.4.4.3 ioctl 6-33 6.4.5 Low-Level Services Specifications. 6-35 6.4.5.1 switchOpen 6-36 6.4.5.2 switchClose 6-37 6.4.5.3 switchIoctl. 6-38 6.4.6 Low-Level Services Specification 6-39 6.4.7 Switch Driver Application 6-39 6.4.8 Switch Driver Considerations 6-39
MOTOROLA
Table Contents More Information This Product, www.freescale.com
Brake Driver 6-40 6.5.1 Introduction. 6-40 6.5.2 Initialization 6-40 6.5.3 Definition. 6-40 6.5.4 Brake Device-Independent Specifications 6-41 6.5.4.1 open. 6-42 6.5.4.2 close 6-43 6.5.4.3 ioctl 6-44 6.5.5 Brake Driver Application 6-45 Button Driver 6-46 6.6.1 Introduction. 6-46 6.6.2 Initialization 6-46 6.6.3 Definition. 6-46 6.6.4 Button Device-Independent Specifications. 6-47 6.6.4.1 open. 6-48 6.6.4.2 close 6-49 6.6.5 Low-Level Services Specifications. 6-50 6.6.5.1 buttonOpen 6-51 6.6.5.2 buttonClose 6-52 6.6.6 Button Driver Application 6-53 Digital Analog Converter (DAC) Driver 6-53 6.7.1 Introduction. 6-53 6.7.2 Initialization 6-53 6.7.3 Definition. 6-53 6.7.4 Device-Independent Specification. 6-54 6.7.4.1 open. 6-55 6.7.4.2 write 6-56 6.7.4.3 close 6-57 6.7.4.4 ioctl 6-58 6.7.5 Low-Level Services Specification 6-59 6.7.5.1 dacOpen 6-60 6.7.5.2 dacWrite 6-61 6.7.5.3 dacClose 6-62 6.7.5.4 dacIoctl 6-63 6.7.6 Driver Application. 6-64
Chapter Libraries
Signal Processing Libraries 7.1.1 Functional Library 7.1.1.1 Trigonometric Math Function Performance 7.1.1.2 Signal Processing Function Performance 7.1.1.2.1 autoCorr 7.1.1.2.2 cbitrev 7.1.1.2.3 cfft 7.1.1.2.4 cifft 7.1.1.2.5 corr
viii Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com MOTOROLA
7.1.2 fir. 7.1.2.1 7.1.2.2 rfft 7.1.2.3 rifft Motor Control Library 7.2.1 Motor Control Function Library 7.2.2 Induction Motor Library. 7.2.3 Switched Reluctance Motor Library. .7-8 7.2.4 Brushless Motor Library Modem Libraries. 7.3.1 V.8bis Library 7.3.1.1 Background 7.3.1.2 Features Performance. 7.3.2 V.21 Library 7-10 7.3.2.1 Performance 7-10 7.3.3 V.22bis Library 7-11 7.3.3.1 Background 7-11 7.3.3.2 Features Performance. 7-12 7.3.4 V.42bis Library 7-13 7.3.4.1 Features Performance. 7-13 Security Libraries 7-14 7.4.1 Data Encryption Standard (DES) Library. .7-14 7.4.2 Triple Data Encryption Standard (3DES) Library 7-16 7.4.3 Library 7-17 Telephony Libraries 7-18 7.5.1 Acoustic Echo Canceller Library 7-18 7.5.2 Caller Library 7-19 7.5.3 Detect Library 7-20 7.5.4 Library 7-21 7.5.5 Common Tone Generation Library. 7-21 7.5.6 DTMF Generation Library 7-22 7.5.7 DTMF Detection Library 7-22 7.5.8 G.165 Library 7-23 7.5.9 G.168 Library 7-24 7.5.9.1 Performance 7-24 7.5.10 G.711 Library 7-25 7.5.11 G.726 Library 7-26 7.5.12 MFCR2 Detection Library 7-26 7.5.12.1 Performance 7-27 7.5.13 Library. 7-27 Speech Libraries 7-28 7.6.1 Voice Recognition (VRLite-1) Library .7-28
MOTOROLA
Table Contents More Information This Product, www.freescale.com
Chapter Library Tests
System Library 8.1.1 System Test. 8.1.1.1 Set-up System Test 8.1.1.2 Procedure System Test Tools Library 8.2.1 FIFO Test 8.2.1.1 Set-up FIFO Test. 8.2.1.2 Procedure FIFO Test Functions Library 8.3.1 Math Tests. 8.3.1.1 Set-up Math Test 8.3.1.2 Procedures Math Tests 8.3.2 Filter Test 8.3.2.1 Set-up Filter Test. 8.3.2.2 Procedure Filter Test 8.3.3 RFFT Test 8.3.3.1 Set-up RFFT Test 8.3.3.2 Procedure RFFT Test 8.3.4 CFFT Test 8.3.4.1 Set-up CFFT Test 8.3.4.2 Procedure CFFT Test
Chapter DSP56F801/802 Applications
Porting Applications Common Hardware Configuration Motor Control Applications 9.2.1 Settings Trimpots BLDC Sensorless with Back-EMF Zero Crossing Using Application 9.3.1 Files. 9.3.2 Specifications 9.3.3 Set-up 9.3.3.1 Jumper Settings 9.3.4 Build 9.3.5 Execute 3-Phase Induction Motor Control V/Hz Application Open Loop 9.4.1 Files. 9.4.2 Specification 9.4.3 Set-up 9-13 9.4.3.1 Jumper Settings 9-13 9.4.4 Build 9-14 9.4.5 Execute 9-15 Serial Bootloader 9-16 9.5.1 Files. 9-16 9.5.2 Target Configuration. 9-16
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
9.5.3 Set-up 9-17 9.5.3.1 Jumper Settings 9-17 9.5.4 Build 9-17 9.5.4.1 Download into Boot Flash 9-17 9.5.4.2 Host Terminal Program Set-up 9-18 9.5.5 Execute 9-18 9.5.6 Requirements Loaded Program .9-19 Application 9-20 Driver Application 9-20 Application 9-21 Quad Timer Application 9-21 9.10 Application 9-21 9.11 Timer Application. 9-21 9.11.1 Files. 9-21 9.11.2 Specifications 9-21 9.11.3 Set-up 9-22 9.11.4 Build 9-22 9.11.5 Execute 9-22
Chapter DSP56F803 Applications
10.1 Common Hardware Configuration Motor Control Applications 10-1 10.1.1 Settings Trimpots 10-1 10.1.2 Communication Port Settings 10-2 10.2 BLDC Motor Control Application with Hall Sensors 10-2 10.2.1 Files. 10-2 10.2.2 Specifications 10-3 10.2.3 Set-up 10-7 10.2.3.1 Jumper Settings 10-7 10.2.4 Build 10-9 10.2.5 Execute 10-10 10.3 BLDC Motor Control Application with Quadrature Encoder 10-10 10.3.1 Files. 10-10 10.3.2 Specifications 10-11 10.3.3 Set-up 10-15 10.3.3.1 Jumper Settings 10-15 10.3.4 Build 10-17 10.3.5 Execute 10-18 10.4 Synchro Motor Control Application with Quadrature Encoder. 10-18 10.4.1 Files. 10-18 10.4.2 Specifications 10-19 10.4.3 Set-up 10-23 10.4.3.1 Synchronous Motor Versus BLDC Motor 10-23 10.4.3.2 Jumper Settings 10-23 10.4.4 Build 10-25 10.4.5 Execute 10-26
MOTOROLA
Table Contents More Information This Product, www.freescale.com
10.5 BLDC Sensorless with Back-EMF Zero Crossing Application 10-27 10.5.1 Files. 10-27 10.5.2 Specifications 10-27 10.5.3 Set-Up 10-30 10.5.3.1 Jumper Settings 10-33 10.5.4 Build 10-35 10.5.5 Execute 10-35 10.6 BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 10-36 10.6.1 Files. 10-36 10.6.2 Specifications 10-36 10.6.3 Set-up 10-40 10.6.3.1 Jumper Settings 10-42 10.6.4 Build 10-44 10.6.5 Execute 10-44 10.7 3-Phase Synchronous Motor Vector Control 10-45 10.7.1 Files. 10-45 10.7.2 Specifications 10-45 10.7.3 Set-up 10-52 10.7.3.1 Synchronous Motor Versus BLDC Motor 10-54 10.7.3.2 Jumper Settings 10-54 10.7.4 .Build. 10-55 10.7.5 Execute 10-56 10.7.6 Master Software 10-57 10.8 3-Phase Motor Control Application .10-58 10.8.1 Files. 10-58 10.8.2 Specifications 10-58 10.8.3 Set-up 10-61 10.8.3.1 Jumper Settings 10-63 10.8.4 .Build. 10-65 10.8.5 Execute 10-66 10.9 3-Phase Sensorless Motor Control Application 10-67 10.9.1 Files. 10-67 10.9.2 Specifications 10-68 10.9.3 Set-up 10-73 10.9.3.1 Jumper Settings 10-73 10.9.4 Build 10-75 10.9.5 Execute 10-76 10.9.6 Master Software 10-77 10.10 3-Phase Motor Control with Encoder Application 10-78 10.10.1 Files. 10-78 10.10.2 Specifications 10-79 10.10.3 Set-up 10-82 10.10.3.1 Jumper Settings 10-83 10.10.4 .Build. 10-85 10.10.5 Execute 10-86 10.10.6 Master Software 10-87
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
10.11 3-Phase Induction Motor Control V/Hz Application Open Loop 10-87 10.11.1 Files. 10-87 10.11.2 Specification 10-88 10.11.3 Set-up 10-93 10.11.3.1 Jumper Settings 10-93 10.11.4 Build 10-95 10.11.5 Execute 10-95 10.12 3-Phase Induction Motor Control V/Hz Application Closed Loop 10-96 10.12.1 Files. 10-96 10.12.2 Specification 10-96 10.12.3 Set-up 10-103 10.12.3.1 Jumper Settings 10-104 10.12.4 Build 10-105 10.12.5 Execute 10-105 10.13 3-Phase ACIM Vector Control Application .10-106 10.13.1 Files. 10-106 10.13.2 Specification 10-106 10.13.3 Set-up 10-113 10.13.3.1 Jumper Settings 10-115 10.13.4 Build 10-116 10.13.5 Execute 10-117 10.13.6 Master Software Control. 10-118 10.14 Digital Power Factor Correction. 10-118 10.14.1 Files. 10-118 10.14.2 Specification 10-119 10.14.3 Set-up 10-121 10.14.3.1 Jumper Settings 10-121 10.14.4 Build 10-123 10.14.5 Execute 10-123 10.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 10-124 10.15.1 Files. 10-124 10.15.2 Specification 10-124 10.15.3 Set-up 10-125 10.15.3.1 Jumper Settings 10-126 10.15.4 Build 10-126 10.15.5 Execute 10-126 10.16 Serial Bootloader 10-126 10.16.1 Files. 10-126 10.16.2 Specification 10-127 10.16.3 Set-up 10-127 10.16.3.1 Jumper Settings 10-127 10.16.4 Build 10-127 10.16.4.1 Download into Boot Flash 10-128 10.16.4.2 Host Terminal Program Set-up 10-128 10.16.5 Execute 10-128 10.16.6 Requirements Loaded Program .10-129 10.16.7 Peripheral Usage. 10-130
MOTOROLA
Table Contents More Information This Product, www.freescale.com
xiii
10.17 Application 10-131 10.18 Driver Application 10-131 10.19 Application 10-131 10.20 Quad Timer Application 10-131 10.21 Application 10-131 10.22 Timer Application. 10-131 10.22.1 Files. 10-131 10.22.2 Specifications 10-132 10.22.3 Set-up 10-132 10.22.4 Build 10-132 10.22.5 Execute 10-133 10.23 10-133 10.24 Flash Application 10-133
Chapter DSP56F805 Applications
11.1 Common Hardware Configuration Motor Control Applications 11-1 11.1.1 Settings Trimpots 11-1 11.1.2 Communication Port Settings 11-2 11.2 BLDC Motor Control Application with Hall Sensors 11-2 11.2.1 Files. 11-2 11.2.2 Specifications 11-3 11.2.3 Set-up 11-7 11.2.3.1 Jumper Settings 11-7 11.2.4 Build 11-9 11.2.5 Execute 11-10 11.3 BLDC Motor Control Application with Quadrature Encoder 11-11 11.3.1 Files. 11-11 11.3.2 Specifications 11-11 11.3.3 Set-up 11-15 11.3.3.1 Jumper Settings 11-15 11.3.4 Build 11-17 11.3.5 Execute 11-18 11.4 Synchro Motor Control Application with Quadrature Encoder. 11-19 11.4.1 Files. 11-19 11.4.2 Specifications 11-19 11.4.3 Set-up 11-24 11.4.3.1 Synchronous Motor versus BLDC Motor 11-24 11.4.3.2 Jumper Settings 11-24 11.4.4 Build 11-26 11.4.5 Execute 11-27 11.5 BLDC Sensorless with Back-EMF Zero Crossing Application 11-28 11.5.1 Files. 11-28 11.5.2 Specifications 11-28 11.5.3 Set-up 11-32 11.5.3.1 Jumper Settings 11-34 11.5.4 Build 11-36
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com MOTOROLA
11.5.5 Execute 11-36 11.6 BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 11-37 11.6.1 Files. 11-37 11.6.2 Specifications 11-38 11.6.3 Set-up 11-41 11.6.3.1 Jumper Settings 11-43 11.6.4 Build 11-45 11.6.5 Execute 11-45 11.7 3-Phase Synchronous Motor Vector Control 11-46 11.7.1 Files. 11-46 11.7.2 Specifications 11-47 11.7.3 Set-up 11-53 11.7.3.1 Synchronous Motor Versus BLDC Motor 11-55 11.7.3.2 Jumper Settings 11-55 11.7.4 Build 11-56 11.7.5 Execute 11-57 11.7.6 Master Software 11-58 11.8 3-Phase Motor Control Application .11-59 11.8.1 Files. 11-59 11.8.2 Specifications 11-60 11.8.3 Set-up 11-63 11.8.3.1 Jumper Settings 11-65 11.8.4 Build 11-67 11.8.5 Execute 11-68 11.9 3-Phase Sensorless Motor Control Application 11-69 11.9.1 Files. 11-69 11.9.2 Specifications 11-70 11.9.3 Set-up 11-74 11.9.3.1 Jumper Settings 11-74 11.9.4 Build 11-76 11.9.5 Execute 11-77 11.9.6 Master Software 11-78 11.10 3-Phase Motor Control with Encoder Application 11-79 11.10.1 Files. 11-79 11.10.2 Specifications 11-79 11.10.3 Set-up 11-84 11.10.3.1 Jumper Settings 11-84 11.10.4 Build 11-86 11.10.5 Execute 11-87 11.10.6 Master Software 11-88 11.11 3-Phase Induction Motor Control V/Hz Application Open Loop 11-88 11.11.1 Files. 11-88 11.11.2 Specification 11-89 11.11.3 Set-up 11-94 11.11.3.1 Jumper Settings 11-95 11.11.4 Build 11-97
MOTOROLA
Table Contents More Information This Product, www.freescale.com
11.11.5 Execute 11-98 11.12 3-Phase Induction Motor Control V/Hz Application Closed Loop 11-98 11.12.1 Files. 11-98 11.12.2 Specification 11-99 11.12.3 Set-up 11-104 11.12.3.1 Jumper Settings 11-105 11.12.4 Build 11-107 11.12.5 Execute 11-107 11.13 3-Phase ACIM Vector Control Application .11-108 11.13.1 Files. 11-108 11.13.2 Specification 11-109 11.13.3 Set-up 11-115 11.13.3.1 Jumper Settings 11-117 11.13.4 Build 11-118 11.13.5 Execute 11-119 11.13.6 Master Software Control. 11-120 11.14 Digital Power Factor Correction. 11-121 11.14.1 Files. 11-121 11.14.2 Specification 11-121 11.14.3 Set-up 11-123 11.14.3.1 Jumper Settings 11-124 Note: Build 11-126 11.14.4 Execute 11-126 11.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 11-127 11.15.1 Files. 11-127 11.15.2 Specification 11-128 11.15.3 Set-up 11-128 11.15.3.1 Jumper Settings 11-129 11.15.3.2 Build 11-130 11.15.4 Execute 11-130 11.16 Serial Bootloader 11-130 11.16.1 Files. 11-130 11.16.2 Specification 11-131 11.16.3 Set-up 11-131 11.16.3.1 Jumper Settings 11-131 11.16.4 Build 11-131 11.16.4.1 Download into Boot Flash 11-131 11.16.4.2 Host Terminal Program Set-up 11-132 11.16.5 Execute 11-132 11.16.6 Requirements Loaded Program .11-133 11.16.7 Peripheral Usage. 11-134 11.17 Application 11-135 11.18 Driver Application 11-135 11.19 Application 11-135 11.20 Quad Timer Application 11-135 11.21 Application 11-135
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
11.22 Timer Application. 11-135 11.22.1 Files. 11-135 11.22.2 Specifications 11-136 11.22.3 Set-up 11-136 11.22.4 Build 11-136 11.22.5 Execute 11-137 11.23 11-137 11.24 Flash Application 11-137 11.25 Application 11-137 11.26 Application. 11-137
Chapter DSP56F807 Applications
12.1 Common Hardware Configuration Motor Control Applications 12-1 12.1.1 Settings Trimpots 12-1 12.1.2 Communication Port Settings 12-2 12.2 BLDC Motor Control Application with Hall Sensors 12-2 12.2.1 Files. 12-2 12.2.2 Specifications 12-3 12.2.3 Set-up 12-7 12.2.3.1 Jumper Settings 12-7 12.2.4 Build 12-9 12.2.5 Execute 12-10 12.3 BLDC Motor Control Application with Quadrature Encoder 12-10 12.3.1 Files. 12-10 12.3.2 Specifications 12-11 12.3.3 Set-up 12-15 12.3.3.1 Jumper Settings 12-15 12.3.4 Build 12-17 12.3.5 Execute 12-18 12.4 Synchro Motor Control Application with Quadrature Encoder. 12-19 12.4.1 Files. 12-19 12.4.2 Specifications 12-19 12.4.3 Set-up 12-23 12.4.3.1 Synchronous Motor versus BLDC Motor 12-23 12.4.3.2 Jumper Settings 12-23 12.4.4 Build 12-25 12.4.5 Execute 12-26 12.5 BLDC Sensorless with Back-EMF Zero Crossing Application 12-26 12.5.1 Files. 12-26 12.5.2 Specifications 12-27 12.5.3 Set-up 12-30 12.5.3.1 Jumper Settings 12-33 12.5.4 Build 12-35 12.5.5 Execute 12-36
MOTOROLA
Table Contents More Information This Product, www.freescale.com
xvii
12.6 BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 12-37 12.6.1 Files. 12-37 12.6.2 Specifications 12-37 12.6.3 Set-up 12-40 12.6.3.1 Jumper Settings 12-43 12.6.4 Build 12-45 12.6.5 Execute 12-46 12.7 3-Phase Synchronous Motor Vector Control 12-47 12.7.1 Files. 12-47 12.7.2 Specifications 12-47 12.7.3 Set-up 12-54 12.7.3.1 Synchronous Motor versus BLDC Motor 12-56 12.7.3.2 Jumper Settings 12-56 12.7.4 Build 12-57 12.7.5 Execute 12-58 12.7.6 Master Software 12-59 12.8 3-Phase Motor Control Application .12-60 12.8.1 Files. 12-60 12.8.2 Specifications 12-60 12.8.3 Set-up 12-63 12.8.3.1 Jumper Settings 12-65 12.8.4 Build 12-67 12.8.5 Execute 12-68 12.9 3-Phase Sensorless Motor Control Application 12-69 12.9.1 Files. 12-69 12.9.2 Specifications 12-70 12.9.3 Set-up 12-74 12.9.3.1 Jumper Settings 12-75 12.9.4 Build 12-77 12.9.5 Execute 12-78 12.9.6 Master Software 12-79 12.10 3-Phase Motor Control with Encoder Application 12-80 12.10.1 Files. 12-80 12.10.2 Specifications 12-81 12.10.3 Set-up 12-85 12.10.3.1 Jumper Settings 12-85 12.10.4 Build 12-87 12.10.5 Execute 12-88 12.10.6 Master Software 12-89 12.11 3-Phase Induction Motor Control V/Hz Application Open Loop 12-89 12.11.1 Files. 12-90 12.11.2 Specification 12-90 12.11.3 Set-up 12-96 12.11.3.1 Jumper Settings 12-96 12.11.4 Build 12-98 12.11.5 Execute 12-99
xviii
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
12.12 3-Phase Induction Motor Control V/Hz Application Closed Loop 12-100 12.12.1 Files. 12-100 12.12.2 Specification 12-100 12.12.3 Set-up 12-106 12.12.3.1 Jumper Settings 12-107 12.12.4 Build 12-109 12.12.5 Execute 12-110 12.13 3-Phase ACIM Vector Control Application .12-111 12.13.1 Files. 12-111 12.13.2 Specification 12-111 12.13.3 Set-up 12-118 12.13.3.1 Jumper Settings 12-119 12.13.4 Build 12-121 12.13.5 Execute 12-122 12.13.6 Master Software Control. 12-123 12.14 Digital Power Factor Correction Application 12-123 12.14.1 Files. 12-123 12.14.2 Specification 12-124 12.14.3 Set-up 12-126 12.14.3.1 Jumper Settings 12-127 12.14.4 Build 12-129 12.14.5 Execute 12-130 12.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop Application 12-131 12.15.1 Files. 12-131 12.15.2 Specification 12-132 12.15.3 Set-up 12-132 12.15.3.1 Jumper Settings 12-133 12.15.3.2 Build 12-133 12.15.4 Execute 12-134 12.16 Serial Bootloader 12-134 12.16.1 Files. 12-134 12.16.2 Specification 12-135 12.16.3 Set-up 12-135 12.16.3.1 Jumper Settings 12-135 12.16.4 Build 12-135 12.16.4.1 Download into Boot Flash 12-135 12.16.4.2 Host Terminal Program Set-up 12-136 12.16.5 Execute 12-136 12.16.6 Requirements Loaded Program .12-137 12.16.7 Peripheral Usage. 12-138 12.17 Application 12-139 12.18 Driver Application 12-139 12.19 Application 12-139 12.20 Quad Timer Application 12-139 12.21 Application 12-139
MOTOROLA
Table Contents More Information This Product, www.freescale.com
12.22 Timer Application. 12-139 12.22.1 Files. 12-139 12.22.2 Specifications 12-140 12.22.3 Set-up 12-140 12.22.4 Build 12-140 12.22.5 Execute 12-141 12.23 12-141 12.24 Flash Application 12-141 12.25 Application 12-141 12.26 Application. 12-141
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
List Tables
Table Table Table Table Table Table Table Table Table Table Table Table Table Table Table 5-10 Table 5-11 Table 5-12 Table 5-13 Table 5-14 Table 5-15 Table 5-16 Table 5-17 Table 5-18 Table 5-19 Table 5-20 Table 5-21 Table 5-22 Table 5-23 Table 5-24 Table 5-25 Table 5-26 Table 5-27 Table 5-28 Table 5-29
MOTOROLA
DSP56F80x Configuration DSP56F80x Configuration Overhead DSP56F80x (running from internal memory) Overhead DSP56F80x (running from external memory) Stack Requirements DSP56F80x Data Structure Members Driver open Arguments open. Driver Arguments write. Driver Arguments read Driver Arguments close. Driver Arguments ioctl Commands Flash Driver appconfig.h Settings 5-13 Flash Driver open Arguments open 5-17 Flash Driver Arguments write 5-18 Flash Driver Arguments read 5-19 Flash Driver Arguments close 5-20 Flash Driver Arguments 5-21 Flash ioctl Commands 5-21 Configuration Items appconfig.h 5-23 Data Structure Members 5-25 Control Register masks, SciCntl 5-25 Driver open Arguments open 5-27 Devices Specific DSP56F80x Chips 5-27 Driver Arguments write 5-28 Driver Arguments read 5-29 Driver Arguments close 5-30 Driver Arguments 5-31 ioctl Commands 5-31 appconfig.h Settings 5-35 Data Structure Members 5-39 Driver Arguments open. 5-41 Driver Arguments read 5-42 Driver Arguments close 5-43
List Tables More Information This Product, www.freescale.com
Table 5-30 Table 5-31 Table 5-32 Table 5-33 Table 5-34 Table 5-35 Table 5-36 Table 5-37 Table 5-38 Table 5-39 Table 5-40 Table 5-41 Table 5-42 Table 5-43 Table 5-44 Table 5-45 Table 5-46 Table 5-47 Table 5-48 Table 5-49 Table 5-50 Table 5-51 Table 5-52 Table 5-53 Table 5-54 Table 5-55 Table 5-56 Table 5-57 Table 5-58 Table 5-59 Table 5-60 Table 5-61 Table 5-62 Table 5-63 Table 5-64 Table 5-65 Table 5-66 Table 5-67 Table 5-68 Driver Arguments 5-44 ioctl Commands. 5-44 Driver Arguments open. 5-47 adcRead driver Arguments read 5-48 Driver Arguments close 5-49 GPIO Driver Arguments 5-50 Availability Quad Timers Specific Chips. 5-53 Quad Timers 5-54 Quad Timer Data Structure Members. 5-56 Quad Driver Arguments open 5-60 Quad Timer Driver Arguments close 5-61 Quad Timer Driver Arguments. 5-62 Quad Timer ioctl/qIoctl Commands 5-62 Quad Timer Driver Arguments open 5-67 Quad Timer Driver Arguments close 5-68 GPIO Driver open Arguments open 5-74 GPIO Ports Available Specific DSP56F80x Chips. 5-74 GPIO Driver Arguments close 5-75 GPIO Driver Arguments 5-76 GPIO ioctl Commands 5-76 GPIO Driver Arguments gpioOpen 5-80 GPIO Driver Arguments close 5-81 GPIO Driver Arguments 5-82 decoder_sCallback Data Structure Members 5-84 decoder_sState Data Structure Members 5-84 decoder_sEncScale Data Structure Members 5-84 decoder_sEncSignals Data Structure Members 5-85 Quadrature Decoder Driver open Arguments open 5-87 Quadrature Decoder Driver Arguments close 5-88 Quadrature Decoder Driver Arguments decIoctl 5-89 Low-Level Quadrature Decoder Driver open Arguments open 5-98 Low-Level Quadrature Decoder Driver Arguments decoderClose 5-99 Low-Level Quadrature Decoder Driver Arguments decoderIoctl 5-100 appconfig.h Configuration Settings 5-101 pwm_sCallback Data Structure Members 5-104 pwm_sComplementaryValues Data Structure Members 5-104 pwm_sIndependentValues Data Structure Members 5-104 pwm_sOutputControl Data Structure Members 5-104 pwm_sUpdateValueSetVlmode Data Structure Members 5-105
xxii
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Table 5-69 Table 5-70 Table 5-71 Table 5-72 Table 5-73 Table 5-74 Table 5-75 Table 5-76 Table 5-77 Table 5-78 Table 5-79 Table 5-80 Table 5-81 Table 5-82 Table 5-83 Table 5-84 Table 5-85 Table 5-86 Table 5-87 Table 5-88 Table Table Table Table Table Table Table Table Table Table 6-10 Table 6-11 Table 6-12 Table 6-13 Table 6-14 Table 6-15 Table 6-16 Table 6-17 Table 6-18 Table 6-19 pwm_sChannelControl Data Structure Members 5-105 Driver Arguments open 5-107 Devices Specific DSP56F80x Chips 5-107 Driver Arguments close 5-108 Driver Arguments pwmIoctl 5-109 Low-Level Driver Arguments pwmOpen 5-121 Low-Level Driver Arguments pwmClose 5-122 Driver Arguments plldrvInitialize 5-127 Control Register Definitions ControlReg. 5-127 Divide-By Register DivideReg 5-127 Test Register TestReg 5-128 Select Register SelectReg. 5-128 Control Register (COPCTL) Default Configuration 5-137 Timeout Register (COPTO) Default Configuration. 5-137 Driver Arguments copInitialize() 5-140 Driver Arguments copGetSysStatus() copClrSysStatus() 5-143 CORE Configuration 5-147 ITCN Default Configuration. 5-148 SYS_CNTL Default Configuration 5-150 Configuration Items appconfig.h 5-151 Driver Arguments open Driver Arguments close Driver Arguments LEDs Specific Boards (pParams input parameter) ioctl Commands Low-Level Driver Arguments open. Driver Arguments ledClose Low-Level Driver Arguments 6-10 File Driver open Arguments open 6-14 File Driver Arguments write 6-15 File Driver Arguments read 6-16 File Driver Arguments close 6-17 File Driver Arguments 6-18 File ioctl Commands. 6-18 Master Driver appconfig.h Settings 6-20 sPCMasterComm structure 6-22 timeBase format 6-22 pcmasterdrvInit parameters. 6-24 pcmasterdrvWriteAppCmdSts arguments 6-26
MOTOROLA
List Tables More Information This Product, www.freescale.com
xxiii
Table 6-20 Table 6-21 Table 6-22 Table 6-23 Table 6-24 Table 6-25 Table 6-26 Table 6-27 Table 6-28 Table 6-29 Table 6-30 Table 6-31 Table 6-32 Table 6-33 Table 6-34 Table 6-35 Table 6-36 Table 6-37 Table 6-38 Table 6-39 Table 6-40 Table 6-41 Table 6-42 Table 6-43 Table 6-44 Table 6-45 Table Table Table Table Table Table Table Table Table Table 7-10 Table 7-11 Table 7-12 Table 7-13 Switch DriverArguments open 6-31 Switch Driver Arguments close 6-32 Switch Driver Arguments 6-33 Switch ioctl Commands 6-33 Low-Level Switch Driver Arguments open 6-36 Low-Level Switch Driver Arguments close. 6-37 Low-Level Switch Driver Arguments switchIotcl 6-38 Brake Driver open Arguments open. 6-42 Availability Brake Devices Specific Platforms 6-42 Brake Driver Arguments close 6-43 Brake ioctl Arguments 6-44 Brake ioctl Commands 6-44 Button Driver Arguments open 6-48 Availability Button Devices Specific Platforms 6-48 Button Driver Arguments close 6-49 Button Driver Arguments open 6-51 Button Driver Arguments close 6-52 Driver Arguments open. 6-55 Driver Arguments write 6-56 Driver Arguments close 6-57 Driver Arguments ioctl 6-58 ioctl Commands. 6-58 dacOpen Driver Arguments dacOpen 6-60 Level dacWrite Driver Arguments dacWrite 6-61 Low-Level dacClose Driver Arguments dacClose. 6-62 Driver Arguments ioctl 6-63 Trigonometric Math Function Performance autoCorr Performance. cbitrev Performance cfft Performance cifft Performance corr Performance. Performance rfft Performance rifft Performance. V.8bis Memory MIPS Requirements. MIPS 7-10 Frequencies Used V.21 7-10 V.21 Memory MIPS Requirements Internal Memory DSP5680x 7-11
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com MOTOROLA
xxiv
Table 7-14 Table 7-15 Table 7-16 Table 7-17 Table 7-18 Table 7-19 Table 7-20 Table 7-21 Table 7-22 V.22bis Operating Range 7-12 V.22bis Memory MIPS Requirements. 7-12 V.42bis Memory MIPS Requirements. 7-13 V.42bis Cycle Count. 7-14 Memory MIPs Requirements External Memory DSP56F80x. 7-15 Cycle Counts External Memory DSP56F80x 7-15 3DES Memory MIPS Requirements External Memory DSP56F80x. 7-16 3DES Cycle Count External Memory DSP56F80x 7-16 Memory MIPS Requirements External Memory DSP56F80x. 7-18 Cycle Count External Memory DSP56F80x 7-18 Memory MIPS Requirements External Memory DSP56F80x. 7-19 Caller Memory MIPS Requirements External Memory DSP56F80x. 7-20 Detect Memory MIPS External Memory DSP56F80x 7-20 Memory MIPS Requirements External Memory DSP56F80x. 7-21 MIPS Memory Requirements External Memory DSP56F80x. 7-21 MIPS Memory Requirements External Memory DSP56F80x 7-22 MIPS Memory Requirements External Memory DSP56F80x 7-23 G.165 Memory MIPs Requirements External Memory DSP56F80x. 7-23 G.168 Memory MIPS Requirements Internal Memory DSP56F80x. 7-24 G.711 Memory MIPS External Memory DSP56F80x 7-25 G726 Memory MIPS Requirements External Memory DSP56F80x. 7-26 MFCR2 Detection Memory MIPS Internal Memory DSP56F80x. 7-27 Memory MIPS Requirements External Memory DSP56F80x. 7-28 VRLite-1 Memory MIPS Requirements External Memory DSP56F80x. 7-30 Instruction Cycle Counts External Memory DSP56F80x 7-30 Trimpot Settings Motor Board BLDC Motor Control Application DSP56F801EVM Jumper Settings
Table 7-23 Table 7-24 Table 7-25 Table 7-26 Table 7-27 Table 7-28 Table 7-29 Table 7-30 Table 7-31 Table 7-32 Table 7-33 Table 7-34 Table 7-35 Table 7-36 Table 7-37 Table 7-38 Table Table
MOTOROLA
List Tables More Information This Product, www.freescale.com
3-Phase Induction Motor Control V/Hz Application Open Loop Motor-Brake Specifications. Motor Application States 9-11 DSP56F801EVM Jumper Settings 9-14 Error Codes Serial Bootloader Application 9-19 Trimpot Settings Motor Board BLDC Motor Control Application 10-1 Trimpot Settings Low-Voltage BLDC Motor Control Application 10-1
Table Table Table Table Table 10-1 Table 10-2 10.2
BLDC Motor Control Application with Hall Sensors 10-2 Trimpot Settings High-Voltage BLDC Motor Control Application 10-2 Motor Application States 10-4 DSP56F803EVM Jumper Settings 10-8
Table 10-3 Table 10-4 Table 10-5 10.3
BLDC Motor Control Application with Quadrature Encoder. 10-10 Motor Application States 10-13 DSP56F803EVM Jumper Settings 10-16
Table 10-6 Table 10-7 10.4
Synchro Motor Control Application with Quadrature Encoder 10-18 Motor Application States 10-21 DSP56F803EVM Jumper Settings 10-24
Table 10-8 Table 10-9 10.5
BLDC Sensorless with Back-EMF Zero Crossing Application 10-27 DSP56F803EVM Jumper Settings 10-34
Table 10-10 10.6
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 10-36 DSP56F803EVM Jumper Settings 10-43
Table 10-11 10.7
3-Phase Synchronous Motor Vector Control 10-45 Motor Brake Specifications 10-46 Application States 10-50 DSP56F803EVM Jumper Settings 10-54
Table 10-12 Table 10-13 Table 10-14 10.8
3-Phase Motor Control Application 10-58 DSP56F803EVM Jumper Settings 10-64
Table 10-15 10.9
3-Phase Sensorless Motor Control Application 10-67 DSP56F803EVM Jumper Settings 10-74
Table 10-16
10.10 3-Phase Motor Control with Encoder Application. 10-78 Table 10-17 DSP56F803EVM Jumper Settings 10-84
xxvi
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
10.11 3-Phase Induction Motor Control V/Hz Application Open Loop 10-87 Table 10-18 Table 10-19 Table 10-20 Motor Brake Specifications 10-89 Motor Application States 10-91 DSP56F803EVM Jumper Settings 10-94
10.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 10-96 Table 10-21 Table 10-22 Table 10-23 Motor Brake Specifications 10-98 Motor Application States 10-100 DSP56F803EVM Jumper Settings 10-104
10.13 3-Phase ACIM Vector Control Application 10-106
Table 10-24 Table 10-25 Table 10-26
Motor Brake Specifications 10-107 Motor Application States 10-111 DSP56F803EVM Jumper Settings 10-115
10.14 Digital Power Factor Correction 10-118 Table 10-27 DSP56F803EVM Jumper Settings 10-122
10.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 10-124 10.16 Serial Bootloader. 10-126 Table 10-28 Table 11-1 Table 11-2 11.2 Error Codes Serial Bootloader Application 10-129 Trimpot Settings Motor Board BLDC Motor Control Application 11-1 Trimpot Settings Low-Voltage BLDC Motor Control Application 11-1
BLDC Motor Control Application with Hall Sensors 11-2 Trim Settings High-Voltage BLDC Motor Control Application 11-2 Motor Application States 11-4 DSP56F805EVM Jumper Settings 11-8
Table 11-3 Table 11-4 Table 11-5 11.3
BLDC Motor Control Application with Quadrature Encoder. 11-11 Motor Application States 11-13 DSP56F805EVM Jumper settings 11-16
Table 11-6 Table 11-7 11.4
Synchro Motor Control Application with Quadrature Encoder 11-19 Motor Application States 11-21 DSP56F805EVM Jumper settings 11-25
Table 11-8 Table 11-9 11.5
BLDC Sensorless with Back-EMF Zero Crossing Application 11-28 DSP56F805EVM Jumper Settings 11-35
Table 11-10 11.6
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 11-37 DSP56F805EVM Jumper Settings 11-44
List Tables More Information This Product, www.freescale.com xxvii
Table 11-11
MOTOROLA
11.7 3-Phase Synchronous Motor Vector Control 11-46 Motor-Brake Specifications. 11-48 Application States 11-51 DSP56F805EVM Jumper Settings 11-56
Table 11-12 Table 11-13 Table 11-14 11.8
3-Phase Motor Control Application 11-59 DSP56F805EVM Jumper Settings 11-66
Table 11-15 11.9
3-Phase Sensorless Motor Control Application 11-69 DSP56F805EVM Jumper Settings 11-75
Table 11-16
11.10 3-Phase Motor Control with Encoder Application. 11-79
Table 11-17
DSP56F805EVM Jumper Settings 11-85
11.11 3-Phase Induction Motor Control V/Hz Application Open Loop 11-88 Table 11-18 Table 11-19 Table 11-20 Motor-Brake Specifications. 11-90 Motor Application States 11-92 DSP56F805EVM Jumper Settings 11-96
11.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 11-98 Table 11-21 Table 11-22 Table 11-23 Motor-Brake Specifications. 11-100 Motor Application States 11-102 DSP56F805EVM Jumper Settings 11-106
11.13 3-Phase ACIM Vector Control Application 11-108 Table 11-24 Table 11-25 Table 11-26 Motor-Brake Specifications. 11-110 Application States 11-113 DSP56F805EVM Jumper Settings 11-117
11.14 Digital Power Factor Correction 11-121 Table 11-27 DSP56F805EVM Jumper Settings 11-125
11.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 11-127 11.16 Serial Bootloader. 11-130 Table 11-28 Table 12-1 Table 12-2 12.2 Error Codes Serial Bootloader Application 11-133 Trimpot Settings Motor Board BLDC Motor Control Applications. 12-1 Trimpot Settings Low-Voltage BLDC Motor Control Applications 12-1
BLDC Motor Control Application with Hall Sensors 12-2 Trimpot Settings High-Voltage BLDC Motor Control Applications 12-2 Motor Application States 12-5 BLDC Motor Control Application with Hall Sensors Jumper Settings 12-8
Table 12-3 Table 12-4 Table 12-5
xxviii
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
12.3 BLDC Motor Control Application with Quadrature Encoder. 12-10 Motor Application States 12-13 DSP56F807EVM Jumper Settings 12-16
Table 12-6 Table 12-7 12.4
Synchro Motor Control Application with Quadrature Encoder 12-19 Motor Application States 12-21 DSP56F807EVM Jumper Settings 12-24
Table 12-8 Table 12-9 12.5
BLDC Sensorless with Back-EMF Zero Crossing Application 12-26 DSP56F807EVM Jumper Settings 12-34
Table 12-10 12.6
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 12-37 DSP56F807EVM Jumper Settings 12-44
Table 12-11 12.7
3-Phase Synchronous Motor Vector Control 12-47 Motor-Brake Specifications. Application States DSP56F807EVM Jumper Settings DSP56F807EVM Jumper Settings 12-49 12-52 12-56 12-66
Table 12-12 Table 12-13 Table 12-14 Table 12-15 12.9
3-Phase Sensorless Motor Control Application 12-69 DSP56F807EVM Jumper Settings 12-76
Table 12-16
12.10 3-Phase Motor Control with Encoder Application. 12-80 Table 12-17 DSP56F807EVM Jumper Settings 12-86
12.11 3-Phase Induction Motor Control V/Hz Application Open Loop 12-89 Table 12-18 Table 12-19 Table 12-20 Motor-Brake Specifications 12-91 Motor Application States 12-94 DSP56F807EVM Jumper Settings 12-97
12.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 12-100 Table 12-21 Table 12-22 Table 12-23 Motor Brake Specifications 12-102 Motor Application States 12-104 DSP56F807EVM Jumper Settings 12-108
12.13 3-Phase ACIM Vector Control Application 12-111 Table 12-24 Table 12-25 Table 12-26 Motor Brake Specifications 12-112 Motor Application States 12-116 DSP56F807EVM Jumper Settings 12-120
MOTOROLA
List Tables More Information This Product, www.freescale.com
xxix
12.14 Digital Power Factor Correction Application 12-123 Table 12-27 DSP56F807EVM Jumper Settings 12-128
12.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop Application 12-131 12.16 Serial Bootloader. 12-134 Table 12-28 Error Codes Serial Bootloader Application 12-137
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
List Figures
Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure 3-10 Figure 3-11 Figure 3-12 Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Launch CodeWarrior Tools Select File/Open Select .\sdk\src\dsp56F80xevm\nos Directory Select buildall.mcp Project Buildall.mcp Project Execute Make Command DSP56F80x Directories Setup DSP56F803/DSP56F805 Memory Partitions. 3-24 Programming Target Memory 3-25 DSP56F807 Memory Partitions 3-29 Programming Target Memory 3-30 DSP56F801/802 Memory Partitions. 3-34 Linking: Initialized Data Data RAM. 3-35 Programming Target Memory 3-36 DSP56F807 Memory Partitions 3-40 Programming Target Memory 3-41 DSP56F80x Boot Sequence without Bootloader 3-42 DSP56F80x Boot Sequence with Bootloader. 3-44 Clock Configuration DSP56F80x 3-46 Trim Pots Pins (Top View) 5-10 DSP56F805EVM Board Overview 5-11 DSP56F805EVM Board: Connector 5-11 1kHz Sine Wave Output Digital Analog Converter 5-12 OCCS Block Diagram 5-124 Internal Oscillator Control Register (IOSCTL) 5-136 Basic Set-up File Utilization. 6-11 Typical Speaker-Dependent Speech Recognition Block Diagram 7-29 Trimpot Pins (Top View) RUN/STOP Switch IRQA Button Set-up motor board BLDC Motor Control Application DSP56F801EVM Jumper Reference Execute Make Command
MOTOROLA
List Figures More Information This Product, www.freescale.com
xxxi
3-Phase Induction Motor Control V/Hz Application Open Loop RUN/STOP Switch UP/DOWN Buttons Master Software Control Window Set-up 3-phase Induction Motor Control Application Open Loop DSP56F801EVM Jumper Reference Execute Make Command Execute Make Command Trimpot Pins (Top View) 9-11 9-12 9-13 9-14 9-15 9-22 10-1
Figure Figure Figure Figure Figure 9-10 Figure 9-11 Figure 10-1 10.2
BLDC Motor Control Application with Hall Sensors 10-2 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window BLDC Motor Control Application Set-up DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-4 10-4 10-6 10-7 10-8 10-9 10-9
Figure 10-2 Figure 10-3 Figure 10-4 Figure 10-5 Figure 10-6 Figure 10-7 Figure 10-8 10.3
BLDC Motor Control Application with Quadrature Encoder. 10-10 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window BLDC Motor Control Application Set-up DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-12 10-12 10-14 10-15 10-16 10-17 10-17
Figure 10-9 Figure 10-10 Figure 10-11 Figure 10-12 Figure 10-13 Figure 10-14 Figure 10-15 10.4
Synchro Motor Control Application with Quadrature Encoder 10-18 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up Synchro Motor Control Application. DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-20 10-20 10-22 10-23 10-24 10-25 10-26
Figure 10-16 Figure 10-17 Figure 10-18 Figure 10-19 Figure 10-20 Figure 10-21 Figure 10-22 10.5
BLDC Sensorless with Back-EMF Zero Crossing Application 10-27
Figure 10-23 RUN/STOP Switch UP/DOWN Buttons 10-28 Figure 10-24 USER 10-29 Figure 10-25 Master Software Control Window 10-30
xxxii
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Figure 10-26 Figure 10-27 Figure 10-28 Figure 10-29 Figure 10-30 10.6 Set-up Motor Board BLDC Motor Control Application Set-up Low-Voltage BLDC Motor Control Application Set-up High-Voltage BLDC Motor Control Application DSP56F803EVM Jumper Reference Execute Make Command 10-31 10-32 10-33 10-34 10-35
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 10-36 RUN/STOP Switch UP/DOWN Buttons USER Master Software Control Window Set-up motor board BLDC Motor Control Application Set-upof Low-Voltage BLDC Motor Control Application. Set-up High-Voltage BLDC Motor Control Application DSP56F803EVM Jumper Reference Execute Make Command 10-37 10-38 10-39 10-40 10-41 10-42 10-43 10-44
Figure 10-31 Figure 10-32 Figure 10-33 Figure 10-34 Figure 10-35 Figure 10-36 Figure 10-37 Figure 10-38 10.7
3-Phase Synchronous Motor Vector Control 10-45 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Synchronous Motor Control Application DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-49 10-50 10-51 10-53 10-54 10-55 10-56
Figure 10-39 Figure 10-40 Figure 10-41 Figure 10-42 Figure 10-43 Figure 10-44 Figure 10-45 10.8
3-Phase Motor Control Application 10-58 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Motor Control Application Set-up 3-phase Motor Control Application DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-59 10-60 10-61 10-62 10-63 10-64 10-65 10-66
Figure 10-46 Figure 10-47 Figure 10-48 Figure 10-49 Figure 10-50 Figure 10-51 Figure 10-52 Figure 10-53 10.9
3-Phase Sensorless Motor Control Application 10-67
Figure 10-54 RUN/STOP Switch UP/DOWN Buttons 10-70 Figure 10-55 USER LEDs. 10-70 Figure 10-56 Master Software Control Window 10-72
MOTOROLA
List Figures More Information This Product, www.freescale.com
xxxiii
Figure 10-57 Figure 10-58 Figure 10-59 Figure 10-60 Set-up 3-phase Motor Control Application DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-73 10-74 10-75 10-76
10.10 3-Phase Motor Control with Encoder Application. 10-78 Figure 10-61 Figure 10-62 Figure 10-63 Figure 10-64 Figure 10-65 Figure 10-66 Figure 10-67 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Motor Control Application DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-80 10-81 10-82 10-83 10-84 10-85 10-86
10.11 3-Phase Induction Motor Control V/Hz Application Open Loop 10-87 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Induction Motor Control Application Open Loop Figure 10-72 DSP56F803EVM Jumper Reference Figure 10-73 Execute Make Command Figure 10-68 Figure 10-69 Figure 10-70 Figure 10-71 10-90 10-91 10-92 10-93 10-94 10-95
10.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 10-96 Figure 10-74 Figure 10-75 Figure 10-76 Figure 10-77 RUN/STOP Switch UP/DOWN Buttons 10-99 USER LEDs. 10-100 Master Software Control Window 10-102 Set-up 3-phase Induction Motor Control Application Closed Loop 10-103 Figure 10-78 DSP56F803EVM Jumper Reference 10-104 Figure 10-79 Execute Make Command 10-105 10.13 3-Phase ACIM Vector Control Application 10-106 Figure 10-80 Figure 10-81 Figure 10-82 Figure 10-83 Figure 10-84 Figure 10-85 Figure 10-86 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase ACIM Vector Control Application DSP56F803EVM Jumper Reference Target Build Selection Execute Make Command 10-110 10-111 10-113 10-114 10-115 10-116 10-117
xxxiv
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
10.14 Digital Power Factor Correction 10-118 Figure 10-87 Figure 10-88 Figure 10-89 Figure 10-90 Figure 10-91 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Set-up Digital Application DSP56F803EVM Jumper Reference Execute Make Command 10-120 10-120 10-121 10-122 10-123
10.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 10-124 Figure 10-92 Set-up Digital 3-phase Motor V/Hz Open Loop Application 10-125 10.16 Serial Bootloader. 10-126
Figure 10-93 Execute Make Command 10-133 Figure 11-1 Trimpot Pins (Top view). 11-1 11.2 BLDC Motor Control Application with Hall Sensors 11-2 RUN/STOP Switch UP/DOWN Buttons 11-3 USER LEDs. 11-4 Master Software Control Window 11-6 Set-up BLDC Motor Control Application 11-7 DSP56F805EVM Jumper Reference 11-8 Target Build Selection 11-9 Execute Make Command 11-10
Figure 11-2 Figure 11-3 Figure 11-4 Figure 11-5 Figure 11-6 Figure 11-7 Figure 11-8 11.3
BLDC Motor Control Application with Quadrature Encoder. 11-11 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up BLDC Motor Control Application DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-12 11-13 11-14 11-15 11-16 11-17 11-18
Figure 11-9 Figure 11-10 Figure 11-11 Figure 11-12 Figure 11-13 Figure 11-14 Figure 11-15 11.4
Synchro Motor Control Application with Quadrature Encoder 11-19 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Synchro Motor Control Application Set-up. DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-20 11-21 11-23 11-24 11-25 11-26 11-27
Figure 11-16 Figure 11-17 Figure 11-18 Figure 11-19 Figure 11-20 Figure 11-21 Figure 11-22
MOTOROLA
List Figures More Information This Product, www.freescale.com
xxxv
11.5 BLDC Sensorless with Back-EMF Zero Crossing Application 11-28 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up Motor Board BLDC Motor Control Application Set-up Low-Voltage BLDC Motor Control Application Set-up High-Voltage BLDC Motor Control Application DSP56F805EVM Jumper Reference Execute Make Command 11-29 11-30 11-31 11-32 11-33 11-34 11-35 11-36
Figure 11-23 Figure 11-24 Figure 11-25 Figure 11-26 Figure 11-27 Figure 11-28 Figure 11-29 Figure 11-30 11.6
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 11-37 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Motor Board BLDC Motor Control Application Set-up. Low-Voltage BLDC Motor Control Application Set-up High-Voltage BLDC Motor Control Application Set-up DSP56F805EVM Jumper Reference Execute Make Command 11-38 11-39 11-40 11-41 11-42 11-43 11-44 11-45
Figure 11-31 Figure 11-32 Figure 11-33 Figure 11-34 Figure 11-35 Figure 11-36 Figure 11-37 Figure 11-38 11.7
3-Phase Synchronous Motor Vector Control 11-46 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Synchronous Motor Control Application DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-50 11-51 11-53 11-54 11-55 11-57 11-57
Figure 11-39 Figure 11-40 Figure 11-41 Figure 11-42 Figure 11-43 Figure 11-44 Figure 11-45 11.8
3-Phase Motor Control Application 11-59 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Setup 3-phase Motor Control Application Set-up Set-up 3-phase Motor Control Application DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-61 11-61 11-63 11-64 11-65 11-66 11-67 11-68
Figure 11-46 Figure 11-47 Figure 11-48 Figure 11-49 Figure 11-50 Figure 11-51 Figure 11-52 Figure 11-53
xxxvi
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
11.9 3-Phase Sensorless Motor Control Application 11-69 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Setup 3-phase Sensorless Motor Control Application Set-up DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-71 11-72 11-73 11-74 11-75 11-76 11-77
Figure 11-54 Figure 11-55 Figure 11-56 Figure 11-57 Figure 11-58 Figure 11-59 Figure 11-60
11.10 3-Phase Motor Control with Encoder Application. 11-79 Figure 11-61 Figure 11-62 Figure 11-63 Figure 11-64 Figure 11-65 Figure 11-66 Figure 11-67 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Setup 3-phase Sensorless Motor Control Application Set-up DSP56F805EVM Jumper Reference Target Build Selection Execute Make Command 11-81 11-82 11-83 11-84 11-85 11-86 11-87
11.11 3-Phase Induction Motor Control V/Hz Application Open Loop 11-88 Figure 11-68 Figure 11-69 Figure 11-70 Figure 11-71 Figure 11-72 Figure 11-73 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Ind. Motor Control Application Open Loop DSP56F805EVM Jumper Reference Execute Make Command 11-91 11-92 11-94 11-95 11-96 11-97
11.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 11-98 Figure 11-74 Figure 11-75 Figure 11-76 Figure 11-77 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Induction Motor Control Application Closed Loop Figure 11-78 DSP56F805EVM Jumper Reference Figure 11-79 Execute Make Command 11-101 11-102 11-104 11-105 11-106 11-107
11.13 3-Phase ACIM Vector Control Application 11-108 Figure 11-80 Figure 11-81 Figure 11-82 Figure 11-83 Figure 11-84
MOTOROLA
RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase ACIM Vector Control Application DSP56F805EVM Jumper Reference
List Figures More Information This Product, www.freescale.com
11-112 11-113 11-115 11-116 11-117
xxxvii
Figure 11-85 Target Build Selection 11-119 Figure 11-86 Execute Make Command 11-119 11.14 Digital Power Factor Correction 11-121 Figure 11-87 Figure 11-88 Figure 11-89 Figure 11-90 Figure 11-91 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Digital Application Set-up DSP56F805EVM Jumper Reference Execute Make Command 11-122 11-123 11-124 11-125 11-126
11.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop 11-127 Figure 11-92 Digital 3-phase Motor V/Hz Open Loop Application Set-up 11-129
11.16 Serial Bootloader. 11-130 Figure 11-93 Execute Make Command 11-136 Figure 12-1 Trimpot Pins (Top view). 12-1 12.2 BLDC Motor Control Application with Hall Sensors 12-2 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up BLDC Motor Control Application with Hall Sensors. DSP56F807 Jumper Reference Target Build Selection Execute Make Command 12-4 12-5 12-6 12-7 12-8 12-9 12-9
Figure 12-2 Figure 12-3 Figure 12-4 Figure 12-5 Figure 12-6 Figure 12-7 Figure 12-8 12.3
BLDC Motor Control Application with Quadrature Encoder. 12-10 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up BLDC Motor Control Application with Quadrature Encoder. DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-12 12-12 12-14 12-15 12-16 12-17 12-18
Figure 12-9 Figure 12-10 Figure 12-11 Figure 12-12 Figure 12-13 Figure 12-14 Figure 12-15 12.4
Synchro Motor Control Application with Quadrature Encoder 12-19 12-20 12-21 12-22 12-23 12-24
Figure 12-16 Figure 12-17 Figure 12-18 Figure 12-19
RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up Synchro Motor Control Application with Quadrature Encoder Figure 12-20 DSP56F807EVM Jumper Reference
xxxviii Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Figure 12-21 Target Build Selection 12-25 Figure 12-22 Execute Make Command 12-25 12.5 BLDC Sensorless with Back-EMF Zero Crossing Application 12-26 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up BLDC Sensorless with Back-EMF Zero Crossing Application Motor Board Set-up BLDC Sensorless with Back-EMF Zero Crossing Application Low-Voltage Set-up BLDC Sensorless with Back-EMF Zero Crossing Application High-Voltage DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-28 12-28 12-30 12-31 12-32 12-33 12-34 12-35 12-36
Figure 12-23 Figure 12-24 Figure 12-25 Figure 12-26 Figure 12-27 Figure 12-28
Figure 12-29 Figure 12-30 Figure 12-31 12.6
BLDC Sensorless with Back-EMF Zero Crossing Using Converter Application 12-37 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up BLDC Sensorless with Back-EMF Zero Crossing using Converter Application Motor Board. Set-up BLDC Sensorless with Back-EMF Zero Crossing using Converter Application Low-Voltage Set-up BLDC Sensorless with Back-EMF Zero Crossing using Converter Application High-Voltage DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-38 12-39 12-40 12-41 12-42 12-43 12-44 12-45 12-46
Figure 12-32 Figure 12-33 Figure 12-34 Figure 12-35 Figure 12-36 Figure 12-37 Figure 12-38 Figure 12-39 Figure 12-40 12.7
3-Phase Synchronous Motor Vector Control 12-47 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Synchronous Motor Control Application DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command RUN/STOP Switch UP/DOWN Buttons USER LEDs.
List Figures More Information This Product, www.freescale.com
Figure 12-41 Figure 12-42 Figure 12-43 Figure 12-44 Figure 12-45 Figure 12-46 Figure 12-47 Figure 12-48 Figure 12-49
MOTOROLA
12-51 12-52 12-53 12-55 12-56 12-57 12-58 12-61 12-62
xxxix
Figure 12-50 Figure 12-51 Figure 12-52 Figure 12-53 Figure 12-54 Figure 12-55 12.9 Master Software Control Window Set-up 3-Phase Motor Control Application High-Voltage Set-up 3-Phase Motor Control Application Low-Voltage DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-63 12-64 12-65 12-66 12-67 12-68
3-Phase Sensorless Motor Control Application 12-69 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-Phase Motor Control Application High-Voltage DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-72 12-73 12-74 12-75 12-76 12-77 12-78
Figure 12-56 Figure 12-57 Figure 12-58 Figure 12-59 Figure 12-60 Figure 12-61 Figure 12-62
12.10 3-Phase Motor Control with Encoder Application. 12-80 Figure 12-63 Figure 12-64 Figure 12-65 Figure 12-66 Figure 12-67 Figure 12-68 Figure 12-69 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-Phase Motor Control Application High-Voltage DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-82 12-83 12-84 12-85 12-86 12-87 12-88
12.11 3-Phase Induction Motor Control V/Hz Application Open Loop 12-89 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Induction Motor Control V/Hz Application Open Loop Figure 12-74 DSP56F807EVM Jumper Reference Figure 12-75 Target Build Selection Figure 12-76 Execute Make Command Figure 12-70 Figure 12-71 Figure 12-72 Figure 12-73 12-93 12-94 12-95 12-96 12-97 12-98 12-99
12.12 3-Phase Induction Motor Control V/Hz Application Closed Loop. 12-100 Figure 12-77 RUN/STOPSwitch UP/DOWN Buttons 12-103 Figure 12-78 USER LEDs. 12-104 Figure 12-79 Master Software Control Window 12-106
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Figure 12-80 Set-up 3-phase Induction Motor Control V/Hz Application Closed Loop Figure 12-81 DSP56F807EVM Jumper Reference Figure 12-82 Target Build Selection Figure 12-83 Execute Make Command
12-107 12-108 12-109 12-110
12.13 3-Phase ACIM Vector Control Application 12-111 Figure 12-84 Figure 12-85 Figure 12-86 Figure 12-87 Figure 12-88 Figure 12-89 Figure 12-90 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Master Software Control Window Set-up 3-phase Ind. Vector Control Application DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-115 12-116 12-118 12-119 12-120 12-121 12-122
12.14 Digital Power Factor Correction Application 12-123 Figure 12-91 Figure 12-92 Figure 12-93 Figure 12-94 Figure 12-95 Figure 12-96 RUN/STOP Switch UP/DOWN Buttons USER LEDs. Set-up Digital Power Factor Correction Application DSP56F807EVM Jumper Reference Target Build Selection Execute Make Command 12-125 12-126 12-127 12-128 12-129 12-130
12.15 Digital Power Factor Correction 3-phase Motor V/Hz Open Loop Application 12-131 Figure 12-97 Set-up Digital 3-phase Motor V/Hz Open Loop Application 12-133 12.16 Serial Bootloader. 12-134 Figure 12-98 Execute Make Command 12-140
MOTOROLA
List Figures More Information This Product, www.freescale.com
xlii
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
List Examples
Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example
MOTOROLA
3-10 3-11 3-12 3-13 3-14 3-15 3-16 3-17 3-18 3-19 3-20 3-21 3-22 3-23 3-24 3-25 3-26 3-27 3-28 3-29 3-30 3-31 3-32 3-33 3-34
3DES appconfig.h file appconfig.h file appconfig.h file BLDC appconfig.h file appconfig.h file. BUTTON appconfig.h file CALLER_ID appconfig.h file appconfig.h file CAS_DETECT appconfig.h file. appconfig.h file CORE appconfig.h file appconfig.h file appconfig.h file DECODER appconfig.h file appconfig.h file DSPFUNC appconfig.h file DTMF_DET appconfig.h file. DTMF_GEN appconfig.h file FILEIO appconfig.h file FLASH appconfig.h file G.165 appconfig.h file 3-10 G.711 appconfig.h file 3-10 G.726 appconfig.h file 3-10 GPIO appconfig.h file 3-11 appconfig.h file 3-11 ITCN appconfig.h file 3-12 appconfig.h file 3-12 MCFUNC appconfig.h file 3-13 MEMORY appconfig.h file 3-13 PCMASTER appconfig.h file. 3-14 appconfig.h file. 3-14 appconfig.h file 3-15 QUAD_TIMER appconfig.h file 3-15 appconfig.h file 3-16
List Examples More Information This Product, www.freescale.com xliii
Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example 3-35 3-36 3-37 3-38 3-39 3-40 3-41 3-42 3-43 3-44 3-45 5-10 5-11 5-12 5-13 5-14 5-15 5-16 5-17 5-18 5-19 5-20 5-21 5-22 5-23 5-24 appconfig.h file. 3-16 appconfig.h file 3-17 appconfig.h file 3-17 STACK_CHECK appconfig.h file 3-18 SWITCH appconfig.h file 3-18 TIMER appconfig.h file 3-19 appconfig.h file 3-19 V.8bis appconfig.h file 3-19 V.22bis appconfig.h file 3-20 V.42bis appconfig.h file 3-20 appconfig.h file 3-47 Example appconfig.h Additions Code Super Fast Interrupt Driver Usage with ioctl call Driver Usage Flash Driver Usage 5-20 Flash Driver Usage with IOCTL 5-21 Driver Usage 5-32 Driver Usage 5-45 Low-Level Driver Usage. 5-50 qt_sState 5-58 Quad Timer Driver Usage. 5-63 Low-Level Quad Timer Driver Usage (See also: Code Example 5-9) 5-69 GPIO Driver Usage. 5-78 GPIO Driver Usage. 5-82 decIoctl 5-95 Quadrature Decoder Driver Usage 5-95 Low-Level Quadrature Decoder Driver Usage (See also Code Example 5-14) 5-100 Data Structure Callback Functions 5-105 PWMioctl 5-117 Driver Usage 5-118 Low-Level Driver Usage (See also Code Example 5-18). 5-122 Reconfigure PLL_CONTROL_REG 5-129 Lock Detect, plldrv.c 5-129 Reconfiguring Divide-By Register 5-130 Reconfiguring Select Register 5-130 Dynamically setting Test Register (TESTR) 5-132
xliv
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example Code Example 5-25 5-26 5-27 5-28 5-29 6-10 6-11 6-12 6-13 Selecting External Clock appconfig.h File 5-133 DSP56F801 Clock switch-over procedure, plldrv.c 5-134 copInitialize() 5-140 Owerwriting Default Driver Settings appconfig.h. 5-143 Driver usage 5-144 Driver Usage Low-Level Driver Usage 6-10 File Driver Usage 6-18 Switch Driver Usage. 6-33 Low-Level Switch Driver Usage 6-38 Brake Driver Example 6-44 Button Driver Example. 6-49 Low-Level Button Driver Example 6-52 open Usage 6-55 write Usage 6-56 close Usage 6-57 ioctl Usage 6-58 Low-Level dacIoctl Usage 6-63 Internal Clock Selection
MOTOROLA
List Examples More Information This Product, www.freescale.com
xlvi
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
About This Book
This manual describes Motorola Embedded Software Development (SDK) develop software Motorola DSP56F80x processors (801, 803, 805, 807).
Audience
This document targets software developers using Motorola Embedded Software Development (SDK) develop applications Motorola DSP56F80x processors (801, 803, 805, 807).
Organization
Chapter Introduction,-provides brief overview this document Chapter Directory Structure,-provides description required core directories Chapter Target Configuration DSP56F80x,-focuses DSP5680x specifics Chapter Interrupt Processing DSP56F80x,-describes specifically
implement interrupts DSP5680x Chapter On-Chip Drivers,-isolates chip-specific functionality into libraries that part Board Support Package Chapter Off-Chip Drivers,-isolates evaluation module functionality into libraries that part Board Support Package Chapter Libraries,-describes libraries that part core libraries part DSP56F80x release Chapter Library Tests,-describes tests available confirm that libraries operating properly Chapter DSP56F801/802 Applications,-describes common hardware configurations using DSP56F801 DSP56F802 motor control applications Chapter DSP56F803 Applications,-describes common hardware configurations using DSP56F803 motor control applications Chapter DSP56F805 Applications,-describes common hardware configurations using DSP56F805 motor control applications Chapter DSP56F807 Applications,-describes common hardware configurations using DSP56F807 motor control applications
Suggested Reading
recommend that have copy following references: DSP56800 Family Manual, DSP56800FM/AD DSP56F80x User's Manual, DSP56F801-7UM/AD Inside CodeWarrior: Core Tools, Metrowerks Corp.
MOTOROLA
Preface More Information This Product, www.freescale.com
xlvii
Conventions
This document uses following notational conventions:
Typeface, Symbol Term
Courier Monospaced Type Italic
Meaning
Code examples
Examples
//Process command line flash
Directory names, project names, calls, functions, statements, procedures, routines, arguments, file names, applications, variables, directives, code snippets text
.and contains these core directories: applications contains applications software. .CodeWarrior project, 3des.mcp .the pConfig argument. .defined header file, aec.h.
Bold
Reference sources, paths, emphasis Linkable on-line number considered positive value, unless preceded minus symbol signify negative value defines/ defined constants Function keys Returned messages
.refer Targeting DSP56F80x Platform manual. .see: C:\Program Files\Motorola\Embedded SDK\help\tutorials .refer Chapter License. DES-1
Blue Text Number
CAPITAL LETTERS Brackets Quotation marks,
define INCLUDE_STACK_CHECK pressing function [F7] .the message, "Test Passed" displayed. unsuccessful reason, will return "NULL".
xlviii
Targeting Motorola DSP5680x Platform More Information This Product, www.freescale.com
MOTOROLA
Definitions, Acronyms, Abbreviations
following list defines acronyms abbreviations used this document. this template develops, this list will generated from document. develop more group resources, these acronyms will easily defined from common acronym dictionary. Please note that while acronyms solid caps, terms definition should initial capped ONLY they trademarked names proper nouns.
Caller Digital Signal Processor Digital Signal Processing Fast Fourier Transforms Finite Impulse Response Input/Output Integrated Development Environment Infinite Impulse Response Least Significant Multiply/Accumulate Million Instructions Second Most Significant On-Chip Emulation Operating Mode Register Program Counter Software Development Stack Pointer Serial Peripheral Interface Status Register Source
MIPS OnCEOMR
References
following sources were used produce this book:
DSP56800 Family Manual, DSP56800FM/AD
DSP56F80x User's Manual, DSP56F801-7UM/AD
Embedded Programmer's Guide, 101/D Function Library, SDK107/D Motor Control Library, SDK109/D V.8bis Library, SDK120/D V.22Library, SDK108/D V.42bis Library, SDK121/D Library, SDK110/D 3DES Library, SDK119/D Acoustic Echo Canceller Library, SDK125/D Caller Detection Library, SDK112/D
MOTOROLA
Preface More Information This Product, www.freescale.com
xlix
Detect Library, SDK124/D Detection Library, SDK123/D DTMF Generation Library, SDK114/D DTMF Detection Library, SDK113/D G.165 Line Echo Canceller Library, SDK115/D G.711 Log-PCM Library, SDK117/D G.726 Speech Codec Library, SDK118/D Voice Activity Detection Library, SDK122/D DSP56F803 Evaluation Module Hardware User's Manual, DSP56F803EVMUM/D DSP56F805 Evaluation Module Hardware User's Manual, DSP56F805EVMUM/D DSP56F807 Evaluation Module Hardware User's Manual, DSP56F807EVMUM/D
Targeting Motorola DSP5680x Platform More Information This Product, www.freescale.com
MOTOROLA
Chapter Introduction
This manual describes Motorola Embedded Software Development (SDK) develop software Motorola DSP56F80x processors (801, 802, 803, 805, 807).
Before Start
This manual contains information specific only applies Motorola DSP56F80x software development, user must familiar with described Programmer's Guide, before continuing. Motorola Embedded designed fully integrated with Metrowerks CodeWarrior development tools. Before start exploring full feature SDK, must first install become familiar with CodeWarrior development environment.
Quick Start
This chapter gives information need install SDK.
1.2.1 Install CodeWarrior Development Tools
previously mentioned, Motorola's Embedded designed fully integrated with Metrowerks CodeWarrior development tools. Using CodeWarrior tools, users build libraries, applications other software included part release. Once software built, CodeWarrior tools will allow users download executable images into target platform run/debug downloaded code. start installation process, perform following steps: Insert CodeWarrior CD-ROM into your computer's CD-ROM drive. Auto Install disabled your computer, click Start button, select Run, type CD-ROM's drive letter \Setup.exe Open: text box. (e.g. D:\Setup.exe) Follow CodeWarrior software installation instructions your screen. NOTE: After installing CodeWarrior, remember restart computer ensure that
Introduction More Information This Product, www.freescale.com
MOTOROLA
Introduction
newly-installed drivers will available use. Register CodeWarrior Click Start button, then select CodeWarrior Registration from CodeWarrior group. This runs MWRegister.exe program. Enter your registration number contact information. have registration number, leave Registration Number text blank. Click send resulting text file (e.g. MWRegistration.txt) license@MetroWerks.com. license will sent E-mail. Install license key. Locate license.dat file CodeWarrior installation directory open this file with standard text editor; example, Notepad. Copy type key, starting line bottom license.dat file. Save license.dat file. more detailed instructions, License_Install.txt file Licensing directory.
1.2.2 Install DSP56F80xEVM Hardware
DSP56F80x been designed tested with DSP56F80xEVM target hardware. want quickly exercise software applications included with SDK, DSP56F80xEVM hardware must installed. DSP56F80xEVM installation information provided with CodeWarrior installation found following document located CodeWarrior installation directory: <.>\CodeWarrior recommended that users read through this document before proceeding with software development. NOTE: DSP56F802 processor supported DSP56F801EVM target hardware.
1.2.3 Install
order integrate itself with development tools, CodeWarrior tools must installed prior installation (see Section 1.2). installed while CodeWarrior present, users only browse installed software, will able build, download released code. NOTE: CodeWarrior installed after SDK, must removed reinstalled after CodeWarrior installation will function properly.
start installation process, perform following steps: Execute Setup.exe from Follow software installation instructions your screen.
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Quick Start
1.2.4 Build Released Software
Once installed, users build released software DSP56F80x opening building top-level project, buildall.mcp, using CodeWarrior development environment. Step Launch Metrowerks CodeWarrior IDE; refer Figure 1-1.
Figure 1-1. Launch CodeWarrior Tools
Step Using File/Open command (Figure 1-2), select .\sdk\src\dsp56F80xevm\nos directory (Figure 1-3) buildall.mcp folder (Figure 1-4), open buildall.mcp project (Figure 1-5).
Figure 1-2. Select File/Open
MOTOROLA
Introduction More Information This Product, www.freescale.com
Introduction
Figure 1-3. Select .\sdk\src\dsp56F80xevm\nos Directory
Figure 1-4. Select buildall.mcp Project
Figure 1-5. Buildall.mcp Project
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Quick Start
Step Execute build pressing function [F7] choosing Make command from menu; Figure 1-6.
Figure 1-6. Execute Make Command
this point, buildall.mcp project will build every library application that part DSP56F80x release.
MOTOROLA
Introduction More Information This Product, www.freescale.com
Introduction
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Chapter Directory Structure
DSP56F80x Directory Structure
Figure 2-1. DSP56F80x Directories
DSP56F80xEVM release, there several domain-specific directories: motioncontrol contains libraries specific motion control signal contains variety signal processing libraries
MOTOROLA
Directory Structure More Information This Product, www.freescale.com
Directory Structure
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Chapter Target Configuration DSP56F80x
scalable software infrastructure that defines implements such services Board Support Package; Interrupt Handling; Memory Management; Input Output; Timers. These services building blocks SDK, each service configuration startup requirement. While
Programmer's Guide covers target configuration great detail, this section acts extension that manual, focusing DSP56F80x specifics. user should familiar with Target Configuration general, described Programmer's Guide, before continuing.
Configuration
configuration file appconfig.h contains following components services that user include executable program: 3DES, ADC, AEC, BLDC, BSP, BUTTON, CALLER_ID, CAN, CAS_DETECT, COP, CORE, CPT, DAC, DECODER, DES, DSPFUNC, DTMF_DET, DTMF_GEN, FILEIO, FLASH, G.165, G.165, G.726, GPIO, ITCN, LED, MCFUNC, MEMORY, PCMASTER, PLL, PWM, QUAD_TIMER, SCI, SIM, SPI, SRM, STACK_CHECK, SWITCH, VAD, V.8bis, V.22bis, V.42bis. Each these components described below.
3.1.1 3DES
Macro(s):
INCLUDE_3DES
Description: When INCLUDE_3DES defined included appconfig.h file shown below, Triple Data Encryption Standard (3DES) Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-1. 3DES appconfig.h file #define INCLUDE_3DES
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
Target Configuration DSP56F80x
3.1.2
Macro(s):
INCLUDE_ADC INCLUDE_IO_ADC
Description: When INCLUDE_ADC INCLUDE_IO_ADC defined included appconfig.h file shown below, Driver (Analog-to-Digital Converter) support will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_ADC used, service automatically included application provide device-independent interface Driver.
Code Example 3-2. appconfig.h file #define INCLUDE_ADC
3.1.3
Macro(s):
INCLUDE_AEC
Description: When INCLUDE_AEC defined included appconfig.h file shown below, Acoustic Echo Canceller Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-3. appconfig.h file #define INCLUDE_AEC
3.1.4 BLDC
Macro(s):
INCLUDE_BLDC
Description: When INCLUDE_BLDC defined included appconfig.h file shown below, Brushless Motor Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-4. BLDC appconfig.h file #define INCLUDE_BLDC
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.5
Macro(s):
INCLUDE_BSP
Description: When INCLUDE_BSP defined included appconfig.h file shown below, Board Specific Peripheral drivers included application. support includes Computer Operating Properly (COP) Driver, Core Configuration Registers (CORE) Driver, Driver support. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When component used, PLL, SIM, COP, ITCN, CORE components will automatically included application.
Code Example 3-5. appconfig.h file #define INCLUDE_BSP
3.1.6 BUTTON
Macro(s):
INCLUDE_BUTTON INCLUDE_IO_BUTTON
Description: When INCLUDE_BUTTON INCLUDE_IO_BUTTON defined included appconfig.h file shown below, Button Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When BUTTON component used, TIMER component will automatically included application. Also, when INCLUDE_IO_BUTTON used, service automatically included application provide device-independent interface Button Driver.
Code Example 3-6. BUTTON appconfig.h file #define INCLUDE_BUTTON
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
Target Configuration DSP56F80x
3.1.7 CALLER_ID
Macro(s):
INCLUDE_CALLER_ID
Description: When INCLUDE_CALLER_ID defined included appconfig.h file shown below, Caller Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-7. CALLER_ID appconfig.h file #define INCLUDE_CALLER_ID
3.1.8
Macro(s):
INCLUDE_CAN INCLUDE_IO_CAN
Description: When INCLUDE_CAN INCLUDE_IO_CAN defined included appconfig.h file shown below, Driver will included application. Default: Undefined included. Compatibility: DSP56F803, DSP56F805, DSP56F807 platforms only. Special Issues: When INCLUDE_IO_CAN used, service automatically included application provide device-independent interface Driver.
Code Example 3-8. appconfig.h file #define INCLUDE_CAN
3.1.9 CAS_DETECT
Macro(s):
INCLUDE_CAS_DETECT
Description: When INCLUDE_CAS_DETECT defined included appconfig.h file shown below, Detect Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-9. CAS_DETECT appconfig.h file #define INCLUDE_CAS_DETECT
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.10
Macro(s):
INCLUDE_COP
Description: When INCLUDE_COP defined included appconfig.h file shown below, Computer Operating Properly (COP) Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included component defined.
Code Example 3-10. appconfig.h file #define INCLUDE_COP
3.1.11 CORE
Macro(s):
INCLUDE_CORE
Description: When INCLUDE_CORE defined included appconfig.h file shown below, Core Configuration Registers (CORE) Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included component defined.
Code Example 3-11. CORE appconfig.h file #define INCLUDE_CORE
3.1.12
Macro(s):
INCLUDE_CPT
Description: When INCLUDE_CPT defined included appconfig.h file shown below, Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-12. appconfig.h file #define INCLUDE_CPT
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
Target Configuration DSP56F80x
3.1.13
Macro(s):
INCLUDE_DAC INCLUDE_IO_DAC
Description: When INCLUDE_DAC INCLUDE_IO_DAC defined included appconfig.h file shown below, Digital Analog Converter (DAC) Driver will included application. Default: Undefined included. Compatibility: DSP56F805 DSP56F807 platforms only. Special Issues: When component used, component will automatically beincluded application. Also, when INCLUDE_IO_DAC used, service automatically included application provide device-independent interface Digital Analog Converter (DAC) Driver.
Code Example 3-13. appconfig.h file #define INCLUDE_DAC
3.1.14 DECODER
Macro(s):
INCLUDE_DECODER INCLUDE_IO_DECODER
Description: When INCLUDE_DECODER INCLUDE_IO_DECODER defined included appconfig.h file shown below, Quadrature Decoder Driver will included application. Default: Undefined included. Compatibility: DSP56F803, DSP56F805, DSP56F807 platforms. Special Issues: When INCLUDE_IO_DECODER used, service automatically included application provide device-independent interface Quadrature Decoder Driver.
Code Example 3-14. DECODER appconfig.h file #define INCLUDE_DECODER
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.15
Macro(s):
INCLUDE_DES
Description: When INCLUDE_DES defined included appconfig.h file shown below, Data Encryption Standard (DES) Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-15. appconfig.h file #define INCLUDE_DES
3.1.16 DSPFUNC
Macro(s):
INCLUDE_DSPFUNC
Description: When INCLUDE_DSPFUNC defined included appconfig.h file shown below, DSPFUNC will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: following DSP56F80x core registers will changed:
Table 3-1. DSP56F80x Configuration
Operating Mode Register Saturation (SA) Rounding Definition Enables automatic saturation 32-bit arithmetic result Enables two's complement rounding (round
Table 3-2. DSP56F80x Configuration
Status Register Limit Definition Resets clears limit
Code Example 3-16. DSPFUNC appconfig.h file #define INCLUDE_DSPFUNC
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
Target Configuration DSP56F80x
3.1.17 DTMF_DET
Macro(s):
INCLUDE_DTMF_DET
Description: When INCLUDE_DTMF_DET defined included appconfig.h file shown below, DTMF Detection Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-17. DTMF_DET appconfig.h file #define INCLUDE_DTMF_DET
3.1.18 DTMF_GEN
Macro(s):
INCLUDE_DTMF_GEN
Description: When INCLUDE_DTMF_GEN defined included appconfig.h file shown below, DTMF Generation Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-18. DTMF_GEN appconfig.h file #define INCLUDE_DTMF_GEN
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.19 FILEIO
Macro(s):
INCLUDE_FILEIO INCLUDE_IO_FILEIO
Description: When INCLUDE_FILEIO INCLUDE_IO_FILEIO defined included appconfig.h file shown below, FILE Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When FILEIO component used, MEMORY components will automatically included application. Also, when INCLUDE_IO_FILEIO used, service automatically included application provide device-independent interface FILE Driver.
Code Example 3-19. FILEIO appconfig.h file #define INCLUDE_FILEIO
3.1.20 FLASH
Macro(s):
INCLUDE_FLASH INCLUDE_IO_FLASH
Description: When INCLUDE_FLASH INCLUDE_IO_FLASH defined included appconfig.h file shown below, Flash Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_FLASH used, service automatically included application provide device-independent interface Flash Driver.
Code Example 3-20. FLASH appconfig.h file #define INCLUDE_FLASH
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
Target Configuration DSP56F80x
3.1.21 G.165
Macro(s):
INCLUDE_G165
Description: When INCLUDE_G165 defined included appconfig.h file shown below, G.165 Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-21. G.165 appconfig.h file #define INCLUDE_G165
3.1.22 G.711
Macro(s):
INCLUDE_G711
Description: When INCLUDE_G711 defined included appconfig.h file shown below, G.711 Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-22. G.711 appconfig.h file #define INCLUDE_G711
3.1.23 G.726
Macro(s):
INCLUDE_G726
Description: When INCLUDE_G726 defined included appconfig.h file shown below, G.726 Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-23. G.726 appconfig.h file #define INCLUDE_G726
3-10
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.24 GPIO
Macro(s):
INCLUDE_GPIO INCLUDE_IO_GPIO
Description: When INCLUDE_GPIO INCLUDE_IO_GPIO defined included appconfig.h file shown below, GPIO Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_GPIO used, service automatically included application provide device-independent interface GPIO Driver. Also, GPIO component automatically included SWITCH component defined.
Code Example 3-24. GPIO appconfig.h file #define INCLUDE_GPIO
3.1.25
Macro(s):
INCLUDE_IO
Description: When INCLUDE_IO defined included appconfig.h file shown below, services will included application. Refer Chapter Chapter this manual Programmer's Guide more details about this service. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-25. appconfig.h file #define INCLUDE_IO
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-11
Target Configuration DSP56F80x
3.1.26 ITCN
Macro(s):
INCLUDE_ITCN
Description: When INCLUDE_ITCN defined included appconfig.h file shown below, Interrupt Controller (ITCN) Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included component defined.
Code Example 3-26. ITCN appconfig.h file #define INCLUDE_ITCN
3.1.27
Macro(s):
INCLUDE_LED INCLUDE_IO_LED
Description: When INCLUDE_LED INCLUDE_IO_LED defined included appconfig.h file shown below, Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When component used, GPIO component will automatically included application. Also, when INCLUDE_IO_LED used, service automatically included application provide device-independent interface Driver.
Code Example 3-27. appconfig.h file #define INCLUDE_LED
3-12
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.28 MCFUNC
Macro(s):
INCLUDE_MCFUNC
Description: When INCLUDE_MCFUNC defined included appconfig.h file shown below, MCFUNC will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-28. MCFUNC appconfig.h file #define INCLUDE_MCFUNC
3.1.29 MEMORY
Macro(s):
INCLUDE_MEMORY
Description: When INCLUDE_MEMORY defined included appconfig.h file shown below, Memory services will included application. Refer Programmer's Guide more details about this service. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included FILEIO component defined.
Code Example 3-29. MEMORY appconfig.h file #define INCLUDE_MEMORY
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-13
Target Configuration DSP56F80x
3.1.30 PCMASTER
Macro(s):
INCLUDE_PCMASTER
Description: When INCLUDE_PCMASTER defined included appconfig.h file shown below, Master Communication Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When PCMASTER component used, component will automatically included application.
Code Example 3-30. PCMASTER appconfig.h file #define INCLUDE_PCMASTER
3.1.31
Macro(s):
INCLUDE_PLL
Description: When INCLUDE_PLL defined included appconfig.h file shown below, Driver will included application. Section more information about PLL. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included component defined.
Code Example 3-31. appconfig.h file #define INCLUDE_PLL
3-14
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.32
Macro(s):
INCLUDE_PWM INCLUDE_IO_PWM
Description: When INCLUDE_PWM INCLUDE_IO_PWM defined included appconfig.h file shown below, Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_PWM used, service automatically included application provide device-independent interface Driver.
Code Example 3-32. appconfig.h file #define INCLUDE_PWM
3.1.33 QUAD_TIMER
Macro(s):
INCLUDE_QUAD_TIMER INCLUDE_IO_QUAD_TIMER
Description: When INCLUDE_QUAD_TIMER INCLUDE_IO_QUAD_TIMER defined included appconfig.h file shown below, Quad Timer Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_QUAD_TIMER used, service automatically included application provide device-independent interface Quad Timer Driver. Also, QUAD_TIMER component automatically included TIMER component defined.
Code Example 3-33. QUAD_TIMER appconfig.h file #define INCLUDE_QUAD_TIMER
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-15
Target Configuration DSP56F80x
3.1.34
Macro(s):
INCLUDE_SCI INCLUDE_IO_SCI
Description: When INCLUDE_SCI INCLUDE_IO_SCI defined included appconfig.h file shown below, Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_SCI used, service automatically included application provide device-independent interface Driver. Also, component automatically included FILEIO PCMASTER component defined.
Code Example 3-34. appconfig.h file #define INCLUDE_SCI
3.1.35
Macro(s):
INCLUDE_SIM
Description: When INCLUDE_SIM defined included appconfig.h file shown below, System Integration Module (SIM) Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: This component automatically included component defined.
Code Example 3-35. appconfig.h file #define INCLUDE_SIM
3-16
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.36
Macro(s):
INCLUDE_SPI INCLUDE_IO_SPI
Description: When INCLUDE_SPI INCLUDE_IO_SPI defined included appconfig.h file shown below, Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_SPI used, service automatically included application provide device-independent interface Driver. Also, component automatically included component defined.
Code Example 3-36. appconfig.h file #define INCLUDE_SPI
3.1.37
Macro(s):
INCLUDE_SRM
Description: When INCLUDE_SRM defined included appconfig.h file shown below, Switched Reluctance Motor Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-37. appconfig.h file #define INCLUDE_SRM
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-17
Target Configuration DSP56F80x
3.1.38 STACK_CHECK
Macro(s):
INCLUDE_STACK_CHECK
Description: When INCLUDE_STACK_CHECK defined included appconfig.h file shown below, stack check services will included application. Refer Programmer's Guide more details about this service. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-38. STACK_CHECK appconfig.h file
#define INCLUDE_MEMORY
3.1.39 SWITCH
Macro(s):
INCLUDE_SWITCH INCLUDE_IO_SWITCH
Description: When INCLUDE_SWITCH INCLUDE_IO_SWITCH defined included appconfig.h file shown below, Switch Driver will included application. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When INCLUDE_IO_SWITCH used, service automatically included application provide device-independent interface Switch Driver.
Code Example 3-39. SWITCH appconfig.h file #define INCLUDE_SWITCH
3-18
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Configuration
3.1.40 TIMER
Macro(s):
INCLUDE_TIMER
Description: When INCLUDE_TIMER defined included appconfig.h file shown below, Timer services will included application. Refer Programmer's Guide more details about this service. Default: Undefined included. Compatibility: DSP56F80x platforms. Special Issues: When TIMER component used, QUAD_TIMER component will automatically included application. Also, TIMER component automatically included BUTTON component defined.
Code Example 3-40. TIMER appconfig.h file #define INCLUDE_TIMER
3.1.41
Macro(s):
INCLUDE_VAD
Description: When INCLUDE_VAD defined included appconfig.h file shown below, Library will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-41. appconfig.h file #define INCLUDE_VAD
3.1.42 V.8bis
Macro(s):
INCLUDE_V8BIS
Description: When INCLUDE_V8BIS defined included appconfig.h file shown below, V.8bis will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-42. V.8bis appconfig.h file #define INCLUDE_V8BIS
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-19
Target Configuration DSP56F80x
3.1.43 V.22bis
Macro(s):
INCLUDE_V22
Description: When INCLUDE_V22 defined included appconfig.h file shown below, V.22bis will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-43. V.22bis appconfig.h file #define INCLUDE_V22
3.1.44 V.42bis
Macro(s):
INCLUDE_V42BIS
Description: When INCLUDE_V42BIS defined included appconfig.h file shown below, V.42bis will included application. Default: Undefined included. Compatibility: DSP56F80x platforms.
Code Example 3-44. V.42bis appconfig.h file #define INCLUDE_V42BIS
3-20
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Memory Configuration
Memory Configuration
explained Programmer's Guide, supports variety memory configurations providing different Linker Command Files with directives targeted particular memory model. DSP56F80x platform, includes Linker Command Files configured following memory models: External Memory Operation Internal (Flash) Memory Operation.
3.2.1 External Memory Operation DSP56F801 DSP56F802
Since DSP56F801 DSP56F802 processors have external memory interface, provides support External Memory Operation.
3.2.2 External Memory Operation DSP56F803 DSP56F805
Section 6.3, Memory Configuration, Programmer's Guide explains shows example memory configuration using Linker Command File. current chapter documents only differences that specific DSP56F803 DSP56F805 platforms.
3.2.2.1 Linker Command File
Linker.cmd file DSP56F803EVM/DSP56F805EVM External using both internal external data memory using external program memory (Mode MEMORY .pInterruptVector .pExtRAM .xAvailable .xCWRegisters .xIntRAM_DynamicMem .xReserved .xPeripherals .xFlash .xExtRAM .xExtRAM_DynamicMem .xStack .xCoreRegisters (RX) ORIGIN 0x0000, LENGTH 0x0086 (RWX) ORIGIN 0x0086, LENGTH 0xFF7A (RW) (RW) (RW) (RW) (RW) (RW) (RW) (RW) ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN 0x0000, 0x0030, 0x0040, 0x0800, 0x0C00, 0x1000, 0x2000, 0xE000, 0xF000, 0xFF80, LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH 0x0030 0x0010 0x07C0 0x0400 0x0400 0x1000 0xC000 0x1000 0x0F80 0x0080
FORCE_ACTIVE {FconfigInterruptVector} SECTIONS
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-21
Target Configuration DSP56F80x
Data Memory Layout _EX_BIT Internal Memory Partitions (for mem.h partitions) _NUM_IM_PARTITIONS IM_ADDR_1 IM_ADDR_2
External Memory Partition (for mem.h partitions) _NUM_EM_PARTITIONS EM_ADDR_1
.ApplicationInterruptVector vector.c (.text) .pInterruptVector .ApplicationCode Place code into Program (.text) (rtlib.text) (fp_engine.text) (user.text)
data placed into Program F_Pdata_start_addr_in_ROM F_Pdata_start_addr_in_RAM pramdata.c (.data) F_Pdata_ROMtoRAM_length F_Pbss_start_addr _P_BSS_ADDR pramdata.c (.bss) F_Pbss_length _P_BSS_ADDR; .pExtRAM .ApplicationData Define variables initialization code F_Xdata_start_addr_in_ROM ADDR(.xFlash) SIZEOF(.xFlash) F_StackAddr ADDR(.xStack); F_StackEndAddr ADDR(.xStack) SIZEOF(.xStack)/2 F_Xdata_start_addr_in_RAM
Define variables library FmemEXbit
3-22
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
Memory Configuration
WRITEH(_EX_BIT); FmemNumIMpartitions WRITEH(_NUM_IM_PARTITIONS); FmemNumEMpartitions WRITEH(_NUM_EM_PARTITIONS); FmemIMpartitionList FmemEMpartitionList /2);
Place rest data into External
(.data) (fp_state.data) (rtlib.data) F_Xdata_ROMtoRAM_length F_Xbss_start_addr _X_BSS_ADDR (rtlib.bss.lo) (.bss) F_Xbss_length _X_BSS_ADDR; Copy DATA
.xExtRAM
FArchIO ADDR(.xPeripherals); FArchCore ADDR(.xCoreRegisters);
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-23
Target Configuration DSP56F80x
3.2.2.2 Linking: Memory Partitions
Using memory directives Linker Command File, DSP56F803/DSP56F805 External Program code data that must into Program memory, well combination External Internal Data initialized uninitialized data.
application.o
data text
appconfig.o
Program Ext.
.pInterruptVector
data text
appconst.o
Step
.pExtRAM
data text
config.o
data text
const.o
Linker Command File
data text
pramdata.o
Data Int.
.xAvailable
MEMORY .pInterruptVector .pExtRAM .xAvailable .xCWRegisters .xIntRAM_DynamicMem .xReserved .xPeripherals .xFlash .xExtRAM .xExtRAM_DynamicMem .xStack .xCoreRegisters
(RX) ORIGIN Ox0000, LENGTH 0x0086 (RWX): ORIGIN 0x0086, LENGTH 0xFF7A (RW) (RW) (RW) (RW) (RW) (RW) (RW) (RW) ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN 0x0000, 0x0030, 0x0040, 0x0800, 0x0C00, 0x1000, 0x2000, 0xE000, 0xF000, 0xFF80, LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH 0x0030 0x0010 0x07C0 0x0400 0x0400 0x1000 0xC000 0x1000 0x0F80 0x0080
data text
vector.o
Used .xCWRegisters CodeWarrior Used .xIntRAM_DynamicMem Memory Manager
data text
Libraries
Data Ext.
.xExtRAM
data text
Run-Time Libs
data text
Used .xExtRAM_DynamicMem Memory Manager Software Stack
.xStack
Figure 3-1. Setup DSP56F803/DSP56F805 Memory Partitions
3-24
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
3.2.2.3 Programming Target Memory
Memory Configuration
Figure demonstrates executable file (which configured external memory
operation) will mapped into physical memory DSP56F805 target. This process will work DSP56F803 tatget well.
Program Ext.
Interrupt Vector Code Initialized Data Program
Program Memory
Uninitialized Data Program
External
0x0000 0xFFFF
Load DSP56F805 Memory
(Using CodeWarrior Tools Serial Bootloader)
Data Int.
Used CodeWarrior Used Memory Manager
Data Memory
Reserved Peripherals
0x0000 0x07FF
0x0800 0x0BFF 0x0C00 0x0FFF
Data Ext.
Initialized Uninitialized Data Data
Flash
0x1000 0x1FFF
Used Memory Manager Software Stack
Application.elf (Application.elf.S)
External Core Registers
0x2000 0xFF7F
0xFF80 0xFFFF
DSP56F805 Memory
Figure 3-2. Programming Target Memory
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-25
Target Configuration DSP56F80x
3.2.3 External Memory Operation DSP56F807
Section 6.3, Memory Configuration, Programmer's Guide explains shows example memory configuration using Linker Command File. current chapter documents only differences that specific DSP56F807 platform.
3.2.3.1 Linker Command File
Linker.cmd file DSP56F807EVM External using both internal external data memory using external program memory (Mode MEMORY
.pInterruptVector .pExtRAM .xAvailable .xCWRegisters .xIntRAM_DynamicMem .xPeripherals .xReserved .xFlash .xExtRAM .xExtRAM_DynamicMem .xStack .xCoreRegisters
(RX) ORIGIN 0x0000, LENGTH 0x0086 (RWX) ORIGIN 0x0086, LENGTH 0xFF7A (RW) (RW) (RW) (RW) (RW) (RW) (RW) (RW) ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN 0x0000, 0x0030, 0x0040, 0x1000, 0x1800, 0x2000, 0x4000, 0xE000, 0xF000, 0xFF80, LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH 0x0030 0x0010 0x0FC0 0x0800 0x0800 0x2000 0xA000 0x1000 0x0F80 0x0080
Special function required accomodate Flash programming Mode FORCE_ACTIVE FORCE_ACTIVE {FconfigInterruptVector} SECTIONS Data Memory Layout _EX_BIT Internal Memory Partitions (for mem.h partitions) _NUM_IM_PARTITIONS IM_ADDR_1 IM_ADDR_2
External Memory Partition (for mem.h partitions) _NUM_EM_PARTITIONS EM_ADDR_1
.ApplicationInterruptVector
3-26
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
vectorreset.c (.text) vector.c (.text)
Memory Configuration
.pInterruptVector .ApplicationCode Place code into Program (.text) (rtlib.text) (fp_engine.text) (user.text)
data placed into Program F_Pdata_start_addr_in_ROM F_Pdata_start_addr_in_RAM pramdata.c (.data) F_Pdata_ROMtoRAM_length F_Pbss_start_addr _P_BSS_ADDR pramdata.c (.bss) F_Pbss_length _P_BSS_ADDR; .pExtRAM .ApplicationData Define variables initialization code F_Xdata_start_addr_in_ROM ADDR(.xFlash) SIZEOF(.xFlash) F_StackAddr ADDR(.xStack); F_StackEndAddr ADDR(.xStack) SIZEOF(.xStack)/2 F_Xdata_start_addr_in_RAM
Define variables library FmemEXbit WRITEH(_EX_BIT); FmemNumIMpartitions WRITEH(_NUM_IM_PARTITIONS); FmemNumEMpartitions WRITEH(_NUM_EM_PARTITIONS); FmemIMpartitionList FmemEMpartitionList /2);
MOTOROLA
Target Configuration DSP56F80x More Information This Product, www.freescale.com
3-27
Target Configuration DSP56F80x
Place rest data into External (.data) (fp_state.data) (rtlib.data) F_Xdata_ROMtoRAM_length F_Xbss_start_addr _X_BSS_ADDR (rtlib.bss.lo) (.bss) F_Xbss_length _X_BSS_ADDR; Copy DATA
.xExtRAM
FArchIO ADDR(.xPeripherals); FArchCore ADDR(.xCoreRegisters);
3-28
Targeting Motorola DSP56F80x Platform More Information This Product, www.freescale.com
MOTOROLA
3.2.3.2 Linking: Memory Partitions
Memory Configuration
Using memory directives Linker Command File, DSP56F807 External Program code data that must into Program memory, well combination External Internal Data initialized uninitialized data.
application.o
data text
appconfig.o
Program Ext.
.pInterruptVector
data text
appconst.o
Step
.pExtRAM
data text
config.o
data text
const.o
Linker Command File
data text
pramdata.o
Data Int.
.xAvailable
MEMORY .pInterruptVector .pExtRAM .xAvailable .xCWRegisters .xIntRAM_DynamicMem .xPeripherals .xReserved .xFlash .xExtRAM .xExtRAM_DynamicMem .xStack .xCoreRegisters (RX) ORIGIN Ox0000, LENGTH 0x0086 (RWX): ORIGIN 0x0086, LENGTH 0xFF7A (RW) (RW) (RW) (RW) (RW) (RW) (RW) (RW) ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN ORIGIN 0x0000, 0x0030, 0x0040, 0x1000, 0x1800, 0x2000, 0x4000, 0xE000, 0xF000, 0xFF80, LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH LENGTH 0x0030 0x0010 0x0FC0 0x0800 0x0800 0x2000 0xA000 0x1000 0x0F80 0x0080
data text
vector.o
Used .xCWRegisters CodeWarrior Used .xIntRAM_DynamicMem Memory Manager
data text
L

Other recent searches


TLK2711 - TLK2711   TLK2711 Datasheet
STK14D88-3 - STK14D88-3   STK14D88-3 Datasheet
SM4001 - SM4001   SM4001 Datasheet
SM4007 - SM4007   SM4007 Datasheet
SGW50N60HS - SGW50N60HS   SGW50N60HS Datasheet
SBG-DT-04-0022 - SBG-DT-04-0022   SBG-DT-04-0022 Datasheet
R24S11BB2 - R24S11BB2   R24S11BB2 Datasheet
CS42324 - CS42324   CS42324 Datasheet
AU-1 - AU-1   AU-1 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive