Details

Practical Microcontroller Engineering with ARM­ Technology


Practical Microcontroller Engineering with ARM­ Technology


1. Aufl.

von: Ying Bai

92,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 01.12.2015
ISBN/EAN: 9781119058007
Sprache: englisch
Anzahl Seiten: 1040

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

The first microcontroller textbook to provide complete and systemic introductions to all components and materials related to the ARM® Cortex®-M4 microcontroller system, including hardware and software as well as practical applications with real examples.<br /><br />This book covers both the fundamentals, as well as practical techniques in designing and building microcontrollers in industrial and commercial applications.<br /><br /> <ul> <li>Examples included in this book have been compiled, built, and tested</li> <li>Includes Both ARM® assembly and C codes</li> <li>Direct Register Access (DRA) model and the Software Driver (SD) model programming techniques and discussed</li> </ul> <p>If you are an instructor and adopted this book for your course, please email <a href="mailto:ieeeproposals@wiley.com">ieeeproposals@wiley.com</a> to get access to the instructor files for this book.</p>
<p>Preface xxix</p> <p>Acknowledgments xxxi</p> <p>Trademarks and Copyrights xxxiii</p> <p>Copyright Permissions xxxv</p> <p>About the Companion Website xxxix</p> <p><b>Chapter 1 Introduction to Microcontrollers and This Book 1</b></p> <p>1.1 Microcontroller Configuration and Structure 2</p> <p>1.2 The ARM<sup>® </sup>Cortex<sup>®</sup>M4 Microcontroller System 3</p> <p>1.3 The TM4C123GH6PM Microcontroller Development Tools and Kits 4</p> <p>1.4 Outstanding Features About This Book 5</p> <p>1.5 Who This Book Is For 5</p> <p>1.6 What This Book Covers 6</p> <p>1.7 How This Book Is Organized and How to Use This Book 8</p> <p>1.8 How to Use the Source Code and Sample Projects 9</p> <p>1.9 Instructors and Customers Supports 11</p> <p><b>Chapter 2 ARM<sup>®</sup> Microcontroller Architectures 13</b></p> <p>2.1 Overview and Introduction 13</p> <p>2.2 Introduction to ARM<b><sup>®</sup></b> Cortex<sup>®</sup>-M4 MCU 15</p> <p>2.2.1 The Architecture of ARM<sup>®</sup> Cortex<sup>®</sup>-M4 MCU 17</p> <p>2.3 The Memory Architecture 27</p> <p>2.3.1 The Memory Map 28</p> <p>2.3.2 The Stack Memory 29</p> <p>2.3.3 The Program Models and States 32</p> <p>2.3.4 The Memory Protection Unit (MPU) 33</p> <p>2.4 The Nested Vectored Interrupt Controller (NVIC) Architecture 34</p> <p>2.4.1 The Nested Vectored Interrupt Controller (NVIC) Features 35</p> <p>2.4.2 Exception and Interrupt Sources 35</p> <p>2.4.3 Exception Priority Levels and Mask Registers 35</p> <p>2.4.4 Respond and Process Exceptions and Interrupts 36</p> <p>2.4.5 Exception and Interrupt Vector Table 37</p> <p>2.5 The Debug Architecture 37</p> <p>2.6 Introduction to Tiva<sup>TM </sup>C Series ARM<sup>®</sup> Cortex<sup>®</sup>-M4 MCU-TM4C123GH6PM 38</p> <p>2.6.1 TM4C123GH6PM Microcontroller Overview 39</p> <p>2.6.2 TM4C123GH6PM Microcontroller On-Chip Memory Map 40</p> <p>2.6.3 TM4C123GH6PM Microcontroller General-Purpose Input–Output (GPIO) Module 44 </p> <p>2.6.4 TM4C123GH6PM Microcontroller System Controls 57</p> <p>2.7 Introduction to Tiva<sup>TM </sup>C Series LaunchPad<sup>TM </sup>TM4C123GXL Evaluation Board 72</p> <p>2.8 Introduction to EduBASE ARM<sup>®</sup> Trainer 77</p> <p>2.9 Chapter Summary 77</p> <p>Homework 79</p> <p><b>Chapter 3 ARM<sup>®</sup> Microcontroller Development Kits 83</b></p> <p>3.1 Overview and Introduction 83</p> <p>3.2 The Entire Tiva<sup>TM </sup>TM4C123G-based Development System 84</p> <p>3.3 Download and Install Development Suite and Specified Firmware 86</p> <p>3.4 Introduction to the Integrated Development Environment—Keil<b><sup>® </sup></b>MDK μVersion5 87</p> <p>3.4.1 The Keil<sup>®</sup> MDK-ARM<sup>®</sup> for the MDK-Cortex-M Family 88</p> <p>3.4.2 General Development Flow with MDK-ARM<sup>®</sup> 89</p> <p>3.4.3 Warming Up Keil<sup>®</sup> MDK Cortex-M Kit with Example Projects 91</p> <p>3.4.4 The Functions of the Keil<sup>®</sup> MDK-ARM<sup>®</sup> μVersion<sup>®</sup>5 GUI 95</p> <p>3.5 Embedded Software Development Procedure 127</p> <p>3.6 The Keil<sup>®</sup> ARM<b><sup>® </sup></b>-MDK μVision5 Debugger and Debug Process 128</p> <p>3.6.1 The ARM<b><sup>® </sup></b>μVision5 Debug Architecture 129</p> <p>3.6.2 The ARM<sup>®</sup> Debug Adaptor and Debug Adaptor Driver 130</p> <p>3.6.3 Tiva<sup>TM</sup>CSeries LaunchPad<sup>TM </sup>Debug Adaptor and Debug Adaptor Driver 132</p> <p>3.6.4 The ARM<sup>®</sup> μVersion5 Debug Process 133</p> <p>3.6.5 The ARM<sup>®</sup> Trace Feature 134</p> <p>3.6.6 The ARM<sup>®</sup> Instruction Set Simulator 136</p> <p>3.6.7 The ARM<sup>®</sup> Programs Running from SRAM 137</p> <p>3.6.8 ARM<sup>®</sup> Optimizations 139</p> <p>3.7 The TivaWare<sup>TM </sup>for C Series Software Suite 140</p> <p>3.7.1 The TivaWare<sup>TM </sup>C Series Software Package 142</p> <p>3.7.2 TivaWare<sup>TM </sup>C Series for TM4C123G LaunchPadTM Evaluation Kit 145</p> <p>3.8 The TivaWare<sup>TM</sup> for C Series Utilities and Other Supports 147</p> <p>3.8.1 Additional Utilities Provided by TivaWare<sup>TM</sup> for C Series 148</p> <p>3.9 Program Examples 151</p> <p>3.10 Chapter Summary 152</p> <p>Homework 152</p> <p><b>Chapter 4 ARM<sup>®</sup> Microcontroller Software and Instruction Set 155</b></p> <p>4.1 Overview and Introduction 155</p> <p>4.2 Introduction to ARM<sup>®</sup> Cortex<b><sup>® </sup></b>-M4 Software Development Structure 156</p> <p>4.3 Introduction to ARM<sup>®</sup> Cortex<b><sup>® </sup></b>-M4 Assembly Instruction Set 157</p> <p>4.3.1 The ARM<b><sup>®</sup></b>Cortex<sup>®</sup>-M4 Assembly Language Syntax 158</p> <p>4.3.2 The ARM<b><sup>®</sup></b> Cortex<sup>®</sup>-M4 Pseudo Instructions 160</p> <p>4.3.3 The ARM<b><sup>®</sup></b> Cortex<sup>®</sup>-M4 Addressing Modes 161</p> <p>4.3.4 The ARM<b><sup>®</sup></b> Cortex<sup>®</sup>-M4 Instruction Set Categories 172</p> <p>4.4 ARM<b><sup>®</sup></b> Cortex<sup>®</sup>-M4 Software Development Procedures 196</p> <p>4.5 Using C Language to Develop ARM<b><sup>®</sup></b> Cortex<b><sup>®</sup></b>-M4 Microcontroller Applications 197</p> <p>4.5.1 The Standard Data Types Used in Intrinsic Functions 198</p> <p>4.5.2 The CMSIS-Core-Specific Intrinsic Functions 200</p> <p>4.5.3 The Keil<sup>®</sup> ARM<sup>®</sup> Compiler-Specific Intrinsic Functions 202</p> <p>4.5.4 Inline Assembler 204</p> <p>4.5.5 Idiom Recognition 205</p> <p>4.5.6 C Programming Development Guideline and Procedure 206</p> <p>4.5.7 The TivaWare<sup>TM </sup>Peripheral Driver Library 213</p> <p>4.6 Chapter Summary 243</p> <p>Homework 244</p> <p><b>Chapter 5 ARM<sup>®</sup> Microcontroller Interrupts and Exceptions 261</b></p> <p>5.1 Overview and Introduction 261</p> <p>5.2 Exceptions and Interrupts in the ARM<sup>®</sup> Cortex<sup>®</sup>-M4 MCU System 263</p> <p>5.2.1 Exception and Interrupt Types 265</p> <p>5.2.2 Exceptions and Interrupts Management 265</p> <p>5.2.3 Exception and Interrupt Processing 268</p> <p>5.3 Exceptions and Interrupts in the TM4C123GH6PM Microcontroller System 273</p> <p>5.3.1 Local Interrupt Configurations and Controls for GPIO Pins 273</p> <p>5.3.2 Local Interrupt Configurations and Controls for GPIO Ports 276</p> <p>5.3.3 Global Interrupt Configurations and Controls 281</p> <p>5.3.4 The Vector Table and Vectors Used in the TM4C123GH6PM MCU 282</p> <p>5.3.5 The GPIO Interrupt Handling and Processing Procedure 284</p> <p>5.4 Developing GPIO Port Interrupt Projects to Handle GPIO Interrupts 285</p> <p>5.4.1 Two Software Packages Used in the TM4C123GH6PM MCU System 286</p> <p>5.4.2 Using DRA Programming Model to Handle GPIO Interrupts 290</p> <p>5.4.3 Using CMSIS Core Macros for NVIC Registers to Handle GPIO Interrupts 294</p> <p>5.4.4 Using TivaWare<sup>TM </sup>Peripheral Driver Library API Functions to Handle GPIO Interrupts 306</p> <p>5.4.5 Using CMSIS Core Access Functions to Handle GPIO Interrupts 313</p> <p>5.5 Comparison Among Four Interrupt Programming Methods 317</p> <p>5.6 Chapter Summary 318</p> <p>Homework 319</p> <p><b>Chapter 6 ARM<sup>®</sup> Microcontroller Memory System 333</b></p> <p>6.1 Overview and Introduction 333</p> <p>6.2 Memory Architecture in the TM4C123GH6PM MCU System 334</p> <p>6.2.1 Static Random Access Memory (SRAM) 336</p> <p>6.2.2 Flash Memory 336</p> <p>6.2.3 Flash Memory Protection Control 349</p> <p>6.2.4 Internal Read-Only Memory (ROM) 351</p> <p>6.2.5 Electrical Erased Programmable Read-Only Memory (EEPROM) 354</p> <p>6.3 Memory Map in TM4C123GH6PM MCU System 361</p> <p>6.4 Bit-Band Operations 362</p> <p>6.4.1 The Mapping Relationship Between the Bit-Band Region and the Bit-Band Alias Region 365</p> <p>6.4.2 The Advantages of Using the Bit-Band Operations 365</p> <p>6.4.3 An Illustration Example of Using Bit-Band Alias Addresses 367</p> <p>6.4.4 Bit-Band Operations for Different Data Sizes 369</p> <p>6.4.5 Bit-Band Operations Built in C Programs 369</p> <p>6.5 Memory Requirements and Memory Properties 370</p> <p>6.5.1 Memory Requirements 371</p> <p>6.5.2 Memory Access Attributes 372</p> <p>6.5.3 Memory Endianness 373</p> <p>6.6 Memory System Programming Methods 375</p> <p>6.6.1 The API Functions Used for Flash Memory Programming 376</p> <p>6.6.2 The API Functions Used for EEPROM Programming 378</p> <p>6.7 Memory System Programming Projects 380</p> <p>6.7.1 Flash Memory Programming 380</p> <p>6.7.2 EEPROM Programming 401</p> <p>6.7.3 Three Kinds of System Header Files in the TM4C123GH6PM MCU System 405</p> <p>6.7.4 Build Example EEPROM Programming Projects 408</p> <p>6.8 Chapter Summary 420</p> <p>Homework 421</p> <p><b>Chapter 7 ARM<sup>® </sup>Cortex<sup>®</sup>-M4 Parallel I/O Ports Programming 433</b></p> <p>7.1 Overview and Introduction 433</p> <p>7.2 GPIO Module Architecture and GPIO Port Configuration 434</p> <p>7.3 GPIO Port Control Registers 437</p> <p>7.3.1 GPIO Port Initialization and Configuration 438</p> <p>7.4 On-Board Keypad Interface Programming Project 440</p> <p>7.4.1 The Keypad Interfacing Programming Structure 441</p> <p>7.4.2 Create the Keypad Interfacing Programming Project (Polling-Driven) 442</p> <p>7.4.3 Set Up the Environment to Build and Run the Project 446</p> <p>7.5 Analog-to-Digital Converter Programming Project 446</p> <p>7.5.1 ADC Modules in the TM4C123GH6PM MCU System 446</p> <p>7.5.2 ADC Module Architecture and Functional Block Diagram 447</p> <p>7.5.3 ADC Module Components and Signal Descriptions 448</p> <p>7.5.4 Analog-to-Digital Converter 470</p> <p>7.5.5 Initialization and Configuration 473</p> <p>7.5.6 Build the Analog-to-Digital Converter Programming Project 475</p> <p>7.5.7 ADC Module API Functions Provided in the TivaWare<sup>TM </sup>Peripheral Driver Library 480</p> <p>7.6 PWM-Controlled DC and Step Motors Programming Project 486</p> <p>7.6.1 The PWM Principle and Implementations 487</p> <p>7.6.2 PWM Modules in the TM4C123GH6PM MCU System 487</p> <p>7.6.3 PWM Generator Functional Block Diagram 490</p> <p>7.6.4 PWM Module Architecture and Functional Block Diagram 502</p> <p>7.6.5 PWM Module Components and Signal Descriptions 509</p> <p>7.6.6 PWM Module Initialization and Configuration 513</p> <p>7.6.7 PWM Module Architecture in the EduBASE ARM<b><sup>®</sup></b> Trainer 515</p> <p>7.6.8 Build an Example PWM Programming Project 516</p> <p>7.7 The PWM API Functions in the TivaWare<sup>TM </sup>Peripheral Driver Library 521</p> <p>7.7.1 PWM Modules and Generators Configuration and Set Up Control Functions 521</p> <p>7.7.2 PWM Output Control Functions 523</p> <p>7.7.3 PWM Interrupt and Fault Control Functions 523</p> <p>7.8 Chapter Summary 525</p> <p>Homework 527</p> <p><b>Chapter 8 ARM<sup>®</sup> Cortex<sup>®</sup>-M4 Serial I/O Ports Programming 547</b></p> <p>8.1 Overview and Introduction 547</p> <p>8.2 GPIO Module Architecture and GPIO Port Configuration 548</p> <p>8.3 Synchronous Serial Interface (SSI) 551</p> <p>8.3.1 Asynchronous and Synchronous Communication Protocols and Data Framing 552</p> <p>8.3.2 Synchronous Serial Interface Architecture and Functional Block Diagram 555</p> <p>8.3.3 The Synchronous Data Transmission Format and Frame 556</p> <p>8.3.4 SSI Module Components and Signal Descriptions 560</p> <p>8.3.5 Build the On-Board LCD Interface Programming Project 572</p> <p>8.3.6 Build On-Board 7-Segment LED Interface Programming Project 589</p> <p>8.3.7 Build Digital-to-Analog Converter Programming Project 595</p> <p>8.3.8 SSI API Functions Provided by TivaWare<sup>TM </sup>Peripheral Driver Library 604</p> <p>8.4 Inter-Integrated Circuit (I2C) Interface 611</p> <p>8.4.1 I2C Module Bus Configuration and Operational Status 612</p> <p>8.4.2 I2C Module Architecture and Functional Block Diagram 613</p> <p>8.4.3 I2C Module Data Transfer Format and Frame 614</p> <p>8.4.4 I2C Module Operational Sequence 614</p> <p>8.4.5 I2C Module Major Operational Components and Control Signals 618</p> <p>8.4.6 I2C Module Running Speeds (Clock Rates) and Interrupts 620</p> <p>8.4.7 I2C Interface Control Signals and GPIO I2C Control Registers 622</p> <p>8.4.8 I2C Module Control Registers and Their Functions 623</p> <p>8.4.9 I2C Module Initializations and Configurations 630</p> <p>8.4.10 Build an Example I2C Module Project 631</p> <p>8.4.10.1 The BQ32000 Real Time Clock (RTC) 631</p> <p>8.4.10.2 The Interface Between the BQ32000 and EduBASE ARM<b><sup>®</sup></b> Trainer 633</p> <p>8.4.10.3 Create a DRA Model I2C Project DRAI2C 634</p> <p>8.4.10.4 Create the Source File DRAI2C 634</p> <p>8.4.10.5 Set Up the Environment to Build and Run the Project 638</p> <p>8.4.11 I2C API Functions Provided by TivaWare<sup>TM </sup>Peripheral Driver Library 639</p> <p>8.4.11.1 Master Operations 639</p> <p>8.4.11.2 I2C Module Status and Initialization API Functions 640</p> <p>8.4.11.3 I2C Module Sending and Receiving Data API Functions 641</p> <p>8.5 Universal Asynchronous Receivers/Transmitters (UARTs) 642</p> <p>8.5.1 Asynchronous Serial Communication Protocols and Data Framing 642</p> <p>8.5.2 Asynchronous Serial Interface Architecture and Functional Block Diagram 643</p> <p>8.5.3 UART Module Operations and Control Registers 645</p> <p>8.5.4 UART Module Control Signals and Related GPIO Pins 658</p> <p>8.5.5 UART Module Initializations and Configurations 659</p> <p>8.5.6 Build an Example UART Module Project 660</p> <p>8.5.7 The UART API Functions Provided by the TivaWare<sup>TM </sup>Peripheral Driver Library 664</p> <p>8.6 Chapter Summary 668</p> <p>Homework 669</p> <p><b>Chapter 9 ARM<sup>®</sup> Cortex<sup>®</sup>-M4 Timer and USB Programming 691</b></p> <p>9.1 Overview and Introduction 691</p> <p>9.2 General-Purpose Timers 692</p> <p>9.2.1 The GPTM Architecture and Functional Block Diagram 693</p> <p>9.2.2 The General-Purpose Timer Module Components 694</p> <p>9.2.3 The General-Purpose Timer Module Operational Modes 695</p> <p>9.2.4 The General-Purpose Timer Module Registers 704</p> <p>9.2.5 The General-Purpose Timer Module GPIO-Related Control Signals 712</p> <p>9.2.6 The General-Purpose Timer Module Initializations and Configurations 713</p> <p>9.2.7 Build an Example General Purpose Timer Project 717</p> <p>9.2.8 Popular Implementations on GPTM Modules 718</p> <p>9.2.9 The API Functions Used for General-Purpose Timer Module 727</p> <p>9.3 Watchdog Timers 732</p> <p>9.3.1 The Watchdog Timer Architecture and Functional Block Diagram 734</p> <p>9.3.2 The Watchdog Timer Operational Sequence and Timing Access 735</p> <p>9.3.3 The Watchdog Timer Registers 735</p> <p>9.3.4 The Watchdog Timer Module Initializations and Configurations 738</p> <p>9.3.5 Build an Example Watchdog Timer Project 739</p> <p>9.3.6 The API Functions Used for Watchdog Timer Modules 739</p> <p>9.4 Universal Serial Bus (USB) Controller 743</p> <p>9.4.1 The Hardware Configuration of the USB Devices 744</p> <p>9.4.2 The USB Components and Operational Sequence 745</p> <p>9.4.3 The Serial Interface Protocol of the USB Communications 747</p> <p>9.4.4 The USB Interface Used in the Embedded System 748</p> <p>9.4.5 The USB in the TM4C123GH6PM MCU System 749</p> <p>9.4.6 The USB Registers 761</p> <p>9.4.7 The USB Initializations and Configurations 774</p> <p>9.4.8 A USB Implementation Example Project 775</p> <p>9.4.9 The USB API Functions Provided by the TivaWare<sup>TM </sup>Peripheral Driver Library 780</p> <p>9.4.10 Build a USB Implementation Example Project Using the API Functions 788</p> <p>9.5 Chapter Summary 788</p> <p>Homework 790</p> <p><b>Chapter 10 ARM<sup>®</sup> Cortex<sup>®</sup>-M4 Other Peripherals Programming 805</b></p> <p>10.1 Overview and Introduction 805</p> <p>10.2 The Controller Area Network (CAN) 805</p> <p>10.2.1 CAN Standard Frame 806</p> <p>10.2.2 CAN Extended Frame 807</p> <p>10.2.3 Detecting and Signaling Errors 808</p> <p>10.2.4 The CAN Functional Block Diagram in the TM4C123GH6PM System 809</p> <p>10.2.5 The CAN Components and Operational Procedures 810</p> <p>10.2.6 The CAN Module Registers 823</p> <p>10.2.7 The CAN Module Interfacing and External Control Signals 833</p> <p>10.2.8 The CAN API Functions Provided by TivaWare<sup>TM </sup>Peripheral Driver Library 834</p> <p>10.2.9 A CAN Module Implementation Example Project 838</p> <p>10.3 The Quadrature Encoder Interface (QEI) 847</p> <p>10.3.1 Introduction to Quadrature Encoder 847</p> <p>10.3.2 The Working Principle of the Increment Rotary Encoder 849</p> <p>10.3.3 The Increment Rotary Encoder Applied in the Closed-Loop Control System 850</p> <p>10.3.4 The Increment Rotary Encoder Applied in the TM4C123GH6PM MCU System 851</p> <p>10.3.5 The QEI Module Registers 852</p> <p>10.3.6 The QEI Interfacing Signals and Related GPIO Pins 856</p> <p>10.3.7 The QEI Initialization and Configuration Process 856</p> <p>10.3.8 QEI API Functions Provided by the TivaWare<sup>TM </sup>Peripheral Driver Library 857</p> <p>10.3.9 An Implementation of Using Rotary Encoder for a Closed-Loop Control System 860</p> <p>10.4 The Continuous and Discrete PID Closed-Loop Control System 871</p> <p>10.4.1 Identify the Dynamic Model for the Motor Plant 873</p> <p>10.4.2 Design the PID Controller Using the MATLAB<b><sup>®</sup></b>Control System Toolbox<sup>TM </sup>878</p> <p>10.4.3 Simulate the PID Control System Using the MATLAB<b><sup>® </sup></b>SIMULINK<b><sup>®</sup></b> 881</p> <p>10.4.4 Build the Control Software to Implement the PID Controller 883</p> <p>10.5 The Fuzzy Logic Closed-Loop Control System 887</p> <p>10.5.1 The Fuzzification Process 887</p> <p>10.5.2 Design of Control Rules 889</p> <p>10.5.3 The Defuzzification Process 889</p> <p>10.5.4 Apply the Fuzzy Logic Controller to the DC Motor Control System 891</p> <p>10.5.5 Build the Fuzzy Logic Control Project Fuzzy-Control 894</p> <p>10.6 The Analog Comparators 899</p> <p>10.6.1 The Analog Comparator Architecture and Functional Block Diagram 899</p> <p>10.6.2 The Control Registers Used in the Analog Comparator Modules 899</p> <p>10.6.3 The Voltage Reference Registers Used in the Analog Comparator Modules 900</p> <p>10.6.4 The Interrupt Processing Registers Used in the Analog Comparator Modules 903</p> <p>10.6.5 The Input and Output Control Signals Used in the Analog Comparators 903</p> <p>10.6.6 The Initialization and Configuration Process for the Analog Comparator 904</p> <p>10.6.7 Build a Project to Test the Functions of the Analog Comparator Module 904</p> <p>10.6.8 Set Up the Environments to Build and Run the Project 907</p> <p>10.7 Chapter Summary 908</p> <p>Homework 909</p> <p><b>Chapter 11 ARM<sup>®</sup> Floating Point Unit (FPU) 927</b></p> <p>11.1 Overview and Introduction 927</p> <p>11.2 Three Types of the Floating-Point Data 928</p> <p>11.2.1 The Half-Precision Floating-Point Data 928</p> <p>11.2.2 The Single-Precision Floating-Point Data 930</p> <p>11.2.3 The Double-Precision Floating-Point Data 932</p> <p>11.3 The FPU in the Cortex<b><sup>®</sup></b>-M4 MCU 934</p> <p>11.3.1 The Architecture of the Floating-Point Registers 934</p> <p>11.3.2 The FPU Operational Modes 937</p> <p>11.4 Implementing the Floating-Point Unit 938</p> <p>11.4.1 Floating-Point Support in CMSIS-Core 938</p> <p>11.4.2 Floating-Point Programming in the TM4C123GH6PM MCU System 939</p> <p>11.4.3 An FPU Example Project Using the Direct Register Access Model 942</p> <p>11.5 Chapter Summary 946</p> <p>Homework 946</p> <p><b>Chapter 12 ARM<sup>®</sup> Memory Protection Unit (MPU) 951</b></p> <p>12.1 Overview and Introduction 951</p> <p>12.2 Implementation of the MPU 952</p> <p>12.2.1 Memory Regions, Types, and Attributes 953</p> <p>12.2.2 MPU Configuration and Control Registers 953</p> <p>12.3 Initialization and Configuration of the MPU 959</p> <p>12.4 Building A Practical Example MPU Project 960</p> <p>12.4.1 Create a New DRA Model MPU Project DRAMPU 960</p> <p>12.4.2 Set Up the Environment to Build and Run the Project 963</p> <p>12.5 The API Functions Provided by the TivaWare<sup>TM </sup>Peripheral Driver Library 964</p> <p>12.5.1 The MPU Set Up and Status API Functions 965</p> <p>12.5.2 The MPU Enable and Disable API Functions 967</p> <p>12.5.3 The MPU Interrupt Handler Control API Functions 968</p> <p>12.6 Chapter Summary 969</p> <p>Homework 970</p> <p>Index 975</p> <p>About the Author 987</p>
<p><b>Dr. Ying Bai</b> is a Professor in the Department of Computer Science and Engineering at Johnson C. Smith University (JCSU). Before joining JCSU, Dr. Bai worked as a software and senior software engineer at Motorola MMS, Schlumberger ATE Technology, Immix TeleCom, and LAM Research. He has published twelve books with publishers such as Prentice Hall, CRC Press LLC, Springer, Cambridge University Press and Wiley-IEEE Press in recent years.
<p><b>This book introduces the basic concepts and practical techniques in designing and building ARM<sup>®</sup> microcontrollers in industrial and commercial applications</b> <p><i>Practical Microcontroller Engineering with ARM<sup>®</sup> Technology</i> provides the full scope of components and materials related to ARM<sup>®</sup> Cortex<sup>®</sup>–M4 microcontroller systems. Chapters 2 through 9 provide the fundamentals and detailed discussions about ARM<sup>®</sup> Cortex<sup>®</sup>-M4 MCU applications with the most widely used peripherals such as flash memory, EEPROM, ADC, DAC, PWM, UART, USB, I2C, SSI, LCD and GPTM. The remaining chapters cover advanced and optional peripherals such as Control Area Network (CAN), Quadrature Encoder Interface (QEI), Analog Comparators (ACMP) and detailed discussions of Floating Point Unit (FPU) and ARM<sup>®</sup> Cortex<sup>®</sup>-M4 Memory Protection Unit (MPU). <p>Special features of this book: <ul> <li>The first microcontroller textbook to provide complete and systemic introductions and technologies to cover all components and materials related to ARM<sup>®</sup> Cortex<sup>®</sup>-M4 microcontroller system, including hardware and software, as well as practical applications with real examples</li> <li>ARM<sup>®</sup> assembly and C codes to assist users to develop professional projects with any language easily and efficiently</li> <li>70+ real-life example projects on the most popular peripherals with detailed line-by-line explanations and illustrations</li> <li>Both the Direct Register Access (DRA) model and the Software Driver (SD) model programming techniques with complete and applicable projects</li> <li>End-of-Chapter homework problems, including true/false and multiple choice questions, as well as lab projects</li> <li>12 chapters of teaching slides as well as homework and lab solutions for instructors</li> </ul> <p>Written for both students and experienced programmers, this book covers ARM Cortex-M4 in an easy-to-understand format, while providing the reader with the ability to test their knowledge through exercises throughout the book.

Diese Produkte könnten Sie auch interessieren:

Quantifiers in Action
Quantifiers in Action
von: Antonio Badia
PDF ebook
96,29 €
Managing and Mining Uncertain Data
Managing and Mining Uncertain Data
von: Charu C. Aggarwal
PDF ebook
96,29 €