Overview of New Book | In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D

In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D

Overview of New Book | In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D

Book Content

The book In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D introduces the latest TMS320F2837xD series DSPs from Texas Instruments (TI), with a detailed focus on the TMS320F28379D, covering its basic architecture, working principles, application configurations, and development examples. The book is divided into 15 chapters, starting with a brief introduction to the F28379D C28x+FPU architecture features, followed by a discussion of its basic usage methods, software and hardware development environment, and basic development processes based on the CCS 10.3 software environment. After detailing the hardware structure of the F28379D, the book focuses on the powerful on-chip peripherals, analyzing the workflow of on-chip interrupts and various timers, and describing the usage methods of commonly used peripherals and interfaces in control and communication fields, including General Purpose Input/Output (GPIO), Analog-to-Digital Converter (ADC), Enhanced Pulse Width Modulator (ePWM), Enhanced Quadrature Encoder Pulse (eQEP), Enhanced Capture Module (eCAP), Asynchronous Serial Communication Interface (SCI), Synchronous Serial Peripheral Interface (SPI), and Universal Parallel Port (uPP). Finally, the book showcases several key technologies and their corresponding development examples centered around the F28379D, providing readers with intuitive and practical technical references.

Authors of the Book

XU Qiwei, Associate Professor and Doctoral Supervisor at the College of Electrical Engineering, Chongqing University, currently serves as the head of the Power Electronics and Power Transmission Department. His main research directions include high-dynamic performance electric drive control systems and fault diagnosis system theory. He has led over 30 projects, including 173 projects, National Natural Science Foundation projects, and key scientific research projects at the Southern Grid level. He has published more than 50 papers in high-level academic journals, authorized over 10 national invention patents.

XU Jianing, currently employed at the College of Electrical Engineering, Harbin Institute of Technology. A postdoctoral researcher, he has led or participated in over 10 research projects, including the National 863 Electric Vehicle Major Project, State Grid Technology Projects, National Postdoctoral Fund projects, Heilongjiang Provincial Postdoctoral Fund, and major provincial and ministerial scientific public relations projects. His main research directions include smart grids, power system scheduling, energy internet, integrated source-grid-load-storage, and virtual power plants. He has published over 20 papers in SCI and EI journals and has multiple national invention patents authorized or applied for.

ZHAO Yizhou, a lecturer at the College of Electrical Engineering, Chongqing University, has led or participated in over 20 research projects, including National Natural Science Foundation projects and key scientific research projects at the Southern Grid level, as well as major provincial and ministerial scientific public relations projects. He has published over 20 papers in SCI and EI journals and has authorized or applied for over 10 national invention patents.

Target Audience of the Book

The book In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D is suitable for a wide range of electronic engineers and professionals in the field of automation control. It can also serve as a teaching or reference book for undergraduate and graduate courses in electronic information, communication, computer science, and automatic control at higher education institutions.

Table of Contents

Scroll up to view

Table of Contents

Chapter 1 Overview of DSP Chips 1

1.1 Concept and Characteristics of DSP 1

1.1.1 Basic Concept of DSP 1

1.1.2 Application Directions of DSP Chips 2

1.1.3 Current Development Status of DSP Chips 4

1.2 Basic Structure and Main Functions of DSP Chips 5

1.3 Basic Numerical Processing Related to DSP 8

1.3.1 Different Types of Numerical Operations in DSP Processors 8

1.3.2 Common Calibration Methods for Fixed-Point Numbers 9

1.3.3 Main Differences Between Fixed-Point and Floating-Point Processors 10

1.4 Specific Characteristics and Overall Resource Introduction of TMS320F2837xD 12

1.5 External Packaging and Pin Schematic of F28379D 16

1.5.1 External Packaging of F28379D 16

1.5.2 Pin Assignment and Schematic of F28379D 18

1.6 Electrical Characteristics and Minimum System Circuit Design of F28379D 27

1.6.1 Power Consumption Issues and Electrical Characteristics of F28379D 27

1.6.2 Minimum System Design of F28379D 31

1.7 Chapter Summary 34

1.8 Exercises 35

Chapter 2 Development Environment and Development Process 36

2.1 Setting Up the Development Environment 36

2.1.1 Installation of CCS 10.3 Software 36

2.1.2 F2837xD Computational Support Package 39

2.1.3 C2000Ware Installation 39

2.2 Introduction to CCS 10.3 Software and Development Process 41

2.3 Summary of Common Accelerated Development Methods 44

2.3.1 C2000Ware 45

2.3.2 MotorControl SDK 45

2.3.3 DigitalPower SDK 46

2.3.4 C2000 SafeTI Diagnostics Lib 47

2.4 Chapter Summary 48

2.5 Exercises 49

Chapter 3 Hardware Structure of TMS320F28379D 50

3.1 Overview of F28379D Chip 50

3.2 C28x Core Computational Unit and Its Structure 52

3.2.1 Introduction to C28x+FPU Architecture 52

3.2.2 Reset and Reset Sources 56

3.2.3 Peripheral Interrupts and Maskable/Non-Maskable Interrupts 59

3.2.4 PIE Interrupt Vector Table 62

3.2.5 CPU Interrupt Vector Table 70

3.2.6 Chip Security Features 72

3.3 On-Chip RAM and Its Structure 77

3.3.1 Dedicated RAM 77

3.3.2 Local Shared RAM 77

3.3.3 Global Shared RAM 78

3.3.4 CPU Message RAM 79

3.3.5 CLA Message RAM 79

3.4 ROM Boot and Peripheral Boot 80

3.4.1 Boot ROM and Peripheral Boot 80

3.4.2 Dual Code Security Module 83

3.5 Watchdog and Configurable Logic Blocks 84

3.5.1 Introduction to CPU Timers 84

3.5.2 Non-Maskable Interrupts with Watchdog Timers 85

3.5.3 Watchdog 86

3.5.4 Configurable Logic Blocks 87

3.5.5 Functional Safety 89

3.6 Control Law Accelerator, Direct Memory Access, and Inter-Processor Communication 89

3.6.1 Control Law Accelerator 90

3.6.2 Direct Memory Access 92

3.6.3 Inter-Processor Communication Module 95

3.7 Chapter Summary 100

3.8 Exercises 100

Chapter 4 Basics of DSP Development 102

4.1 Common Target File Formats in CCS 102

4.2 CCS Project File Structure 106

4.3 Basics of CCS 10.3 Development 112

4.3.1 Common Terminology and Abbreviations 112

4.3.2 Overview of CCS Software 113

4.3.3 Introduction to CCS Software 116

4.3.4 Building and Compiling Projects 122

4.3.5 Setting Target Configuration Files and Program Debugging 128

4.4 C2000Ware Software Development Kit 135

4.4.1 Overview of C2000Ware 136

4.4.2 Quick Start to DSP Development Using C2000Ware 136

4.5 Lighting an LED – Initial Use of F28379D 138

4.6 Development of Dual-Core Applications on F28379D 142

4.6.1 Online Program Download 144

4.6.2 Offline Program Download 145

4.7 Chapter Summary 149

4.8 Exercises 149

Chapter 5 On-Chip Analog Peripheral Devices and Their Development Examples 151

5.1 Analog-to-Digital Converter (ADC) 152

5.1.1 On-Chip ADC Subsystem and Its Configuration Methods 155

5.1.2 Two Signal Modes of ADC 157

5.1.3 ADC Operating Conditions and Conversion Error Tables Under Different Modes 159

5.1.4 ADC Signal Model Parameters and Timing Diagrams 161

5.1.5 On-Chip Temperature Sensor 168

5.2 Comparator Subsystem 168

5.2.1 Functional Block Diagram and Packaging of Comparator Subsystem 169

5.2.2 Electrical Characteristics of Comparator Subsystem 170

5.3 Buffered Digital-to-Analog Converter 174

5.3.1 Buffered Digital-to-Analog Converter 174

5.3.2 Electrical Characteristics of Buffered Digital-to-Analog Converter 175

5.3.3 Dynamic Error of CMPSS DAC 177

5.4 Common Register Addresses and Functions of ADC 178

5.4.1 Base Address of ADC 178

5.4.2 ADC_REGS Register Mapping 179

5.4.3 ADC_REGS Access Type Codes 181

5.4.4 Field Definitions of Key ADC Registers 181

5.5 Chapter Summary 185

5.6 Exercises 185

Chapter 6 On-Chip Control Peripheral Devices and Their Development Examples 187

6.1 Enhanced Capture Module 187

6.2 Enhanced Pulse Width Modulation Module 190

6.3 Enhanced Quadrature Encoder Pulse (eQEP) 198

6.4 High-Resolution Pulse Width Modulation Module 201

6.5 Σ-Δ Filter Group 203

6.5.1 Electrical Characteristics and Timing Requirements of SDFM in ASYNC Mode 205

6.5.2 Electrical Characteristics and Timing Requirements of SDFM in GPIO Mode 208

6.6 Bus Architecture and Peripheral Connections 213

6.6.1 Device Identification Registers 213

6.6.2 Bus Master Access to Peripherals 214

6.7 eCAP and ePWM Common Register Information 215

6.7.1 eCAP Base Address Table 215

6.7.2 eCAP Register Distribution 215

6.7.3 eCAP Register Access Type Codes 216

6.7.4 ePWM Base Address Table 216

6.7.5 ePWM Register Distribution 217

6.7.6 ePWM Register Access Type Codes 219

6.7.7 Field Definitions of Key eCAP and ePWM Registers 220

6.8 Chapter Summary 223

6.9 Exercises 223

Chapter 7 Controller Area Network (CAN) Protocol 225

7.1 Overview of CAN Protocol 225

7.2 Basic Implementation of CAN Protocol 230

7.3 CAN Module Register Configuration Example Based on F28379D 237

7.4 Common Register Information and Field Descriptions of CAN 243

7.4.1 CAN Base Address List 244

7.4.2 CAN Register Distribution 244

7.4.3 CAN Register Access Type Codes 245

7.4.4 Field Descriptions of CAN Registers 246

7.5 Chapter Summary 249

7.6 Exercises 249

Chapter 8 I2C Serial Communication Protocol 251

8.1 Overview of I2C Serial Communication Protocol 252

8.2 Electrical Characteristics and Timing Features of I2C Module 257

8.3 Development Example of I2C Serial Communication Based on F28379D 265

8.4 Chapter Summary 268

8.5 Exercises 269

Chapter 9 Multi-Channel Buffered Serial Port (McBSP) 270

9.1 Overview of McBSP Serial Communication Port 270

9.2 Electrical Characteristics and Timing Features of McBSP Module 271

9.3 Data Loopback Operation Example Based on F28379D 280

9.4 Chapter Summary 286

9.5 Exercises 286

Chapter 10 Serial Communication Interface (SCI) 288

10.1 Overview of SCI Serial Communication Interface 288

10.2 Development Example of SCI Based on F28379D 297

10.3 Chapter Summary 301

10.4 Exercises 301

Chapter 11 Serial Peripheral Interface (SPI) 303

11.1 Overview of SPI Serial Peripheral Interface 303

11.2 Electrical Characteristics and Timing Requirements of SPI 305

11.3 Development Example of SPI Based on F28379D 309

11.4 Chapter Summary 313

11.5 Exercises 313

Chapter 12 Universal Serial Bus Controller (USB) 315

12.1 Overview of Universal Serial Bus 315

12.2 Electrical Characteristics and Timing Requirements of USB Protocol 316

12.3 USB Development Example 323

12.4 Field Information of Key Registers 326

12.5 Chapter Summary 328

12.6 Exercises 329

Chapter 13 Universal Parallel Port (uPP) 331

13.1 Overview of uPP Universal Parallel Port 331

13.2 Electrical Characteristics and Timing Requirements of uPP 334

13.3 Development Example of uPP Based on F28379D 337

13.4 Field Information of Key Registers 341

13.5 Chapter Summary 342

13.6 Exercises 343

Chapter 14 Key Technologies in DSP Development 345

14.1 Key Technologies in Sensing 346

14.1.1 Accurate Digital Representation of Analog Signals and ADC Optimization Solutions 346

14.1.2 Hardware Monitoring and Key Issues in ADC 352

14.1.3 Implementing Rotary Sensing Encoders with CLB 355

14.2 Key Technologies in Signal Processing 363

14.2.1 Trigonometric Function Accelerators and Fast Integer Division 364

14.2.2 Double Precision Floating Point Operations 375

14.3 Key Technologies in Control 380

14.3.1 Reducing Limit Cycle Oscillation Using HRPWM 380

14.3.2 Rapid Detection of Overcurrent, Undercurrent, and Overvoltage 384

14.4 Chapter Summary 386

14.5 Exercises 386

Chapter 15 General Purpose Input/Output (GPIO) 388

15.1 Basic Functions and Application Scenarios of GPIO 388

15.2 GPIO Structure and Related Register Configuration of F28379D 389

15.3 GPIO Development Example 397

15.4 Chapter Summary 400

15.5 Exercises 400

References 402

Book Features

1In today’s wave of digitalization and intelligence, Digital Signal Processing (DSP) technology shines like a brilliant pearl, illuminating various fields such as industrial control, communication, and consumer electronics. The TMS320F2837xD series DSP chips from TI, with their outstanding performance and rich features, have become a focal point in the industry.

2The book In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D gathers the essence of cutting-edge DSP development technologies from TI, deeply exploring every detail of the TMS320F28379D chip. It not only elaborates on the chip’s functional characteristics and working principles but also focuses on the application scenarios and register configurations of various peripheral resources, allowing you to grasp the core secrets of the chip accurately. Whether it is complex mathematical operation units or efficient on-chip peripheral modules, everything becomes clear and understandable under the analysis of this book, laying a solid foundation for you to flexibly apply them in practical development.

3It is worth mentioning that several senior industry experts have highly praised and recommended this book. Among them, Wang Qin from TI’s University Program in China personally wrote a recommendation preface, which undoubtedly recognizes the quality of this book. Their endorsement not only attests to the professionalism and practicality of the book’s content but also guides readers in their learning direction, making you feel more assured and confident while reading.

4The entire book is meticulously organized into 15 chapters, starting with Chapter 1, “Overview of DSP Chips,” which leads you to trace the development of DSP chips, deeply understanding their key position in industrial control, signal processing, and especially the unique advantages of the TMS320F2837xD series as TI’s control DSP products, giving you a macro grasp of the background and application value of this chip.

5Chapter 2, “Development Environment and Development Process,” details the steps for setting up the development environment for the TMS320F2837xD series DSP chips. From the installation and configuration of necessary software tools like CCS and C2000Ware to debugging methods, it explains everything step by step, ensuring you can smoothly set up your own development stage. Additionally, the author elaborates on the computer theories related to development, laying a solid foundation for subsequent hardware programming. Moreover, the efficient development processes summarized in this chapter serve as a valuable action guide, helping you quickly get started, avoid detours, and save precious time and effort.

6Chapter 3, “Hardware Structure of TMS320F28379D,” delves into the internal workings of the chip, meticulously analyzing its hardware architecture. The powerful computational capabilities of the high-performance CPU core C28x series, the rich features of various multifunctional peripherals, the exquisite design of the on-chip memory system, and the optimization strategies for clock and power management are all presented before you, making you feel as if you are inside the chip, fully understanding its operating mechanisms and preparing adequately for further development work.

7Chapter 4, “Basics of DSP Development,” is your first step into the field of DSP development. Here, you will learn the foundational knowledge of DSP programming, including application techniques of C/C++ language in this field, instruction set characteristics, practical methods for program optimization and debugging, etc. Moreover, through hands-on introductory teaching cases, you can quickly get started with DSP development, accumulating valuable practical experience and laying a solid foundation of confidence and capability for tackling complex programming tasks in the future.

8Chapters 5 and 6 focus on “On-Chip Analog and Control Peripheral Devices,” providing in-depth explanations of analog peripherals (such as ADC, comparator subsystems, DAC) and control peripherals (such as ePWM, eCAP, SDFM, etc.). Through rich examples, the functions, configuration methods, and usage environments of these peripherals are clearly presented, allowing you to flexibly utilize these peripheral resources according to project needs and achieve various complex functional designs.

9Communication protocols play a crucial role in modern electronic devices. Chapters 7 and 13 comprehensively introduce various commonly used serial/parallel communication protocols. Covering CAN, I2C, McBSP, SCI, SPI, USB, and uPP, each protocol is equipped with detailed usage instructions and example codes, as if opening doors to different communication worlds, enabling you to easily understand and apply these protocols for efficient communication and collaboration between devices.

10Chapter 14, “Key Technologies in DSP Development,” focuses on the three key technologies in DSP development: sensing, control, and signal processing. Through a perfect combination of case analysis and theoretical foundations, it demonstrates how to cleverly apply these technologies in practical projects, like a wise elder imparting unique secrets for solving engineering challenges, helping you navigate the path of DSP development and overcome one obstacle after another.

11Chapter 15, “General Purpose Input/Output Ports,” provides a detailed introduction to the development basics and usage methods of the GPIO section of F28379D, including GPIO pin functions, application scenarios, related register configurations, and field definition information. Although this is foundational content, it is the cornerstone for building complex systems, allowing you to precisely control every detail and create stable and reliable DSP application systems.

12With its comprehensive and in-depth content, authoritative expert recommendations, and clear knowledge system, this book is suitable for a wide range of electronic engineers, professionals in the field of automation control, and students in related majors such as electronic information. Whether you are a beginner just stepping into the DSP field, feeling lost and confused in this sea of knowledge, or a seasoned engineer who has been struggling in DSP development for years, seeking technical breakthroughs, this book will provide you with the most valuable references and guidance.

13In this era of rapid advancements in emerging technologies such as the Internet of Things and smart manufacturing, the application prospects of DSP chips are incredibly broad. Having a copy of In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D is like holding a key to unlock the door to future technology. It will guide you through the fields of digital signal processing, automation control, and embedded systems, helping you navigate the challenges of efficient engineering development and iteration, leading you to the shores of success.

14Do not hesitate; let this book become your loyal companion on the path of technical growth, exploring the infinite possibilities of DSP chips together!

This article is excerpted from In-Depth Understanding of DSP: Development and Practice Based on TMS320F28379D, published with the authorization of the publisher and authors.

Leave a Comment