Book description
For the first time in a single reference, this book provides the beginner with a coherent and logical introduction to the hardware and software of the PIC32, bringing together key material from the PIC32 Reference Manual, Data Sheets, XC32 C Compiler User's Guide, Assembler and Linker Guide, MIPS32 CPU manuals, and Harmony documentation. This book also trains you to use the Microchip documentation, allowing better life-long learning of the PIC32. The philosophy is to get you started quickly, but to emphasize fundamentals and to eliminate "magic steps" that prevent a deep understanding of how the software you write connects to the hardware.
Applications focus on mechatronics: microcontroller-controlled electromechanical systems incorporating sensors and actuators. To support a learn-by-doing approach, you can follow the examples throughout the book using the sample code and your PIC32 development board. The exercises at the end of each chapter help you put your new skills to practice.
Coverage includes:
- A practical introduction to the C programming language
- Getting up and running quickly with the PIC32
- An exploration of the hardware architecture of the PIC32 and differences among PIC32 families
- Fundamentals of embedded computing with the PIC32, including the build process, time- and memory-efficient programming, and interrupts
- A peripheral reference, with extensive sample code covering digital input and output, counter/timers, PWM, analog input, input capture, watchdog timer, and communication by the parallel master port, SPI, I2C, CAN, USB, and UART
- An introduction to the Microchip Harmony programming framework
- Essential topics in mechatronics, including interfacing sensors to the PIC32, digital signal processing, theory of operation and control of brushed DC motors, motor sizing and gearing, and other actuators such as stepper motors, RC servos, and brushless DC motors
For more information on the book, and to download free sample code, please visit http://www.nu32.org
- Extensive, freely downloadable sample code for the NU32 development board incorporating the PIC32MX795F512H microcontroller
- Free online instructional videos to support many of the chapters
Table of contents
- Cover image
- Title page
- Table of Contents
- Copyright
- Dedication
- Preface
- Acknowledgments
- I: Quickstart
-
II: Fundamentals
- Chapter 2: Hardware
-
Chapter 3: Software
- Abstract
- 3.1 The Virtual Memory Map
- 3.2 An Example: simplePIC.c
- 3.3 What Happens When You Build?
- 3.4 What Happens When You Reset the PIC32?
- 3.5 Understanding simplePIC.c
- 3.6 Bootloaded Programs vs. Standalone Programs
- 3.7 Build Summary
- 3.8 Useful Command Line Utilities
- 3.9 Chapter Summary
- 3.10 Exercises
- Chapter 4: Using Libraries
- Chapter 5: Time and Space
- Chapter 6: Interrupts
-
III: Peripheral Reference
- Chapter 7: Digital Input and Output
- Chapter 8: Counter/Timers
- Chapter 9: Output Compare
- Chapter 10: Analog Input
- Chapter 11: UART
- Chapter 12: SPI Communication
- Chapter 13: I2C Communication
- Chapter 14: Parallel Master Port
- Chapter 15: Input Capture
- Chapter 16: Comparator
- Chapter 17: Sleep, Idle, and the Watchdog Timer
- Chapter 18: Flash Memory
- Chapter 19: Controller Area Network (CAN)
- Chapter 20: Harmony and Its Application to USB
-
IV: Mechatronics
-
Chapter 21: Sensors
- Abstract
- 21.1 Contact: Buttons and Switches
- 21.2 Light
- 21.3 Angle of a Revolute Joint
- 21.4 Position of a Prismatic Joint
- 21.5 Acceleration and Angular Velocity: Gyros, Accelerometers, and IMUs
- 21.6 Magnetic Field Sensing: Hall Effect Sensors
- 21.7 Distance
- 21.8 Force
- 21.9 Temperature
- 21.10 Current
- 21.11 GPS
- 21.12 Exercises
- Chapter 22: Digital Signal Processing
- Chapter 23: PID Feedback Control
-
Chapter 24: Feedback Control of LED Brightness
- Abstract
- 24.1 Wiring and Testing the Circuit
- 24.2 Powering the LED with OC1
- 24.3 Playing an Open-Loop PWM Waveform
- 24.4 Establishing Communication with MATLAB
- 24.5 Plotting Data in MATLAB
- 24.6 Writing to the LCD Screen
- 24.7 Reading the ADC
- 24.8 PI Control
- 24.9 Additional Features
- 24.10 Chapter Summary
- 24.11 Exercises
- Chapter 25: Brushed Permanent Magnet DC Motors
- Chapter 26: Gearing and Motor Sizing
- Chapter 27: DC Motor Control
- Chapter 28: A Motor Control Project
- Chapter 29: Other Actuators
-
Chapter 21: Sensors
- Appendix A: A Crash Course in C
- Appendix B: Circuits Review
- Appendix C: Other PIC32 Models
- Index
Product information
- Title: Embedded Computing and Mechatronics with the PIC32 Microcontroller
- Author(s):
- Release date: December 2015
- Publisher(s): Newnes
- ISBN: 9780124202351
You might also like
book
Designing Embedded Systems with 32-Bit PIC Microcontrollers and MikroC
The new generation of 32-bit PIC microcontrollers can be used to solve the increasingly complex embedded …
book
Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming
Delve into the exciting world of embedded programming with PIC microcontrollers in C. The key to …
book
Programming 8-bit PIC Microcontrollers in C
Microcontrollers are present in many new and existing electronic products, and the PIC microcontroller is a …
book
Programming 16-Bit PIC Microcontrollers in C, 2nd Edition
New in the second edition: MPLAB X support and MPLAB C for the PIC24F v3 and …