NXP Semiconductors MC56F8013, 56F8000 Targeting User Manual

3-Phase BLDC Motor Control with Hall Sensors Using the MC56F8013
Targeting User Guide
56F8000
16-bit Hybrid Controllers
56F8013BLDCUG Rev. 1 11/2005
freescale.com
TABLE OF CONTENTS
About This Book
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-v
Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-v
Suggested Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-v
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-vi
Definitions, Acronyms, and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-vii
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preface-vii
Chapter 1 Introduction
1.1 Application Benefits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Chapter 2 System Description
2.1 Application Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2.2 Hardware Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.3 Software Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.3.1 Data Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Chapter 3 Setting Up the Application
3.1 Required Parts and Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Chapter 4 Running the Application
4.1 BLDC with Hall Sensor Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Freescale Semiconductor i Preliminary
Table of Contents, Rev. 1
ii Freescale Semiconductor
3-Phase BLDC Motor Control, Rev. 1
Preliminary
LIST OF FIGURES
2-2 System Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2-3 Main Data Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2-4 Speed Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
3-1 56F8000 Motor Control Daughter Card and 56F8013 Demonstration Board . . . . . . . . 3-1
Freescale Semiconductor iii Preliminary
List of Figures, Rev. 1
iv Freescale Semiconductor
3-Phase BLDC Motor Control, Rev. 1
Preliminary
About This Book
This manual describes the applications for 3-Phase BLDC motor control with Hall sensors using the 56F8013 device.
Audience
This document targets software developers using 3-Phase BLDC motor control for the 56F8013 processor.
Organization
Chapter 1, Introduction—provides a brief overview of this document
Chapter 2, System Description—describes the theory of BLDC motor control with Hall sensors for the 56F8013 processor
Chapter 3, Setting Up the Application—explains how to set up the application
Chapter 4, Running the Application—describes how the BLDC with Hall Sensor application operates
Suggested Reading
We recommend that you have a copy of the following references:
56F8013 Technical Data, MC56F8013
56F8013 Motor Control Demonstration System using the 56F8013 Demonstration Board User Guide, 56F8013MCSUG
3-Phase BLDC Motor Control with Hall Sensors using 56800/E Digital Signal Controllers, AN1916
56F8000 Peripheral Reference Manual, MC56F8000RM
Inside CodeWarrior: Core Tools, Metrowerks Corp.
Preface, Rev. 1
Freescale Semiconductor v Preliminary
Conventions
This document uses the following notational conventions:
Typeface,
Symbol or Term
Courier Monospaced Type
Italic Directory names,
Code examples //Process command for line flash
project names, calls, functions, statements, procedures, routines, arguments, file names, applications, variables, directives, code snippets in text
Bold Reference sources,
paths, emphasis
Meaning Examples
...and contains these core directories: applications contains applications software...
...CodeWarrior project, 3des.mcp is...
...the pConfig argument....
...defined in the C header file, aec.h....
...refer to the Targeting DSP56F80x Platform
manual....
...see: C:\Program Files\Motorola\help\tutorials
Blue Text Linkable on-line ...refer to Chapter 7, License....
Number Any number is consid-
ered a positive value, unless preceded by a
3V
-10
DES
-1
minus symbol to signify a negative value
ALL CAPITAL LETTERS
# defines/ defined constants
# define INCLUDE_STACK_CHECK
Brackets [...] Function keys ...by pressing function key [F7]
Quotation
Returned messages ...the message, “Test Passed” is displayed....
marks, “...”
...if unsuccessful for any reason, it will return “NULL”...
vi Freescale Semiconductor
3-Phase BLDC Motor Control, Rev. 1
Preliminary
Definitions, Acronyms, and Abbreviations
The following list defines the acronyms and abbreviations used in this document. As this template develops, this list will be generated from the document. As we develop more group resources, these acronyms will be easily defined from a common acronym dictionary. Please note that while the acronyms are in solid caps, terms in the definition should be initial capped ONLY IF they are trademarked names or proper nouns.
BLDC Brushless DC Motor
PI Proportional-Integral
PWM Pulse Width Modulation
References
The following sources were used to produce this book:
1. 56F8000 Peripheral Reference Manual, MC56F8000RM, Freescale Semiconductor, Inc.
2. 56F8013 Demonstration Board User Guide, MC56F8013DBUG, Freescale Semiconductor, Inc.
3. 56F8000 Motor Control Board User Guide, 56F8000MCBUG, Freescale Semiconductor, Inc.
4. DSP56800E Reference Manual, DSP56F800ERM, Freescale Semiconductor, Inc.
5. 56F8013 Technical Data, MC56F8013, Freescale Semiconductor, Inc.
6. 3-Phase BLDC Motor Control with Hall Sensors using 56800/E Digital Signal Controllers,
AN1916, Freescale Semiconductor, Inc.
7. 56800/E Accelerated Development System Resource Pak CD-ROM, CD342, Freescale Semiconductor, Inc. (available from the Literature Distribution Center)
Freescale Semiconductor vii Preliminary
Preface, Rev. 1
Loading...
+ 19 hidden pages