Book description
• A Microchip insider tells all on the newest, most powerful PICs ever!• FREE CD-ROM includes source code in C, the Microchip C30 compiler, and MPLAB SIM software
• Includes handy checklists to help readers perform the most common programming and debugging tasks
The new 16-bit PIC24 chip provides embedded programmers with more speed, more memory, and more peripherals than ever before, creating the potential for more powerful cutting-edge PIC designs. This book teaches readers everything they need to know about these chips: how to program them, how to test them, and how to debug them, in order to take full advantage of the capabilities of the new PIC24 microcontroller architecture.
Author Lucio Di Jasio, a PIC expert at Microchip, offers unique insight into this revolutionary technology, guiding the reader step-by-step from 16-bit architecture basics, through even the most sophisticated programming scenarios. This book’s common-sense, practical, hands-on approach begins simply and builds up to more challenging exercises, using proven C programming techniques. Experienced PIC users and newcomers to the field alike will benefit from the text’s many thorough examples, which demonstrate how to nimbly side-step common obstacles, solve real-world design problems efficiently, and optimize code for all the new PIC24 features.
You will learn about:
• basic timing and I/O operations,
• multitasking using the PIC24 interrupts,
• all the new hardware peripherals
• how to control LCD displays,
• generating audio and video signals,
• accessing mass-storage media,
• how to share files on a mass-storage device with a PC,
• experimenting with the Explorer 16 demo board, debugging methods with MPLAB-SIM and ICD2 tools, and more!
·A Microchip insider tells all on the newest, most powerful PICs ever!
·Condenses typical introductory "fluff" focusing instead on examples and exercises that show how to solve common, real-world design problems quickly
·Includes handy checklists to help readers perform the most common programming and debugging tasks
·FREE CD-ROM includes source code in C, the Microchip C30 compiler, and MPLAB SIM software, so that readers gain practical, hands-on programming experience
·Check out the author's Web site at http://www.flyingpic24.com for FREE downloads, FAQs, and updates
Table of contents
- Cover
- Contents (1/5)
- Contents (2/5)
- Contents (3/5)
- Contents (4/5)
- Contents (5/5)
- Preface
- Introduction
- PART I (1/5)
- PART I (2/5)
- PART I (3/5)
- PART I (4/5)
-
PART I (5/5)
- CHAPTER 1: THE FIRST FLIGHT (1/5)
- CHAPTER 1: THE FIRST FLIGHT (2/5)
- CHAPTER 1: THE FIRST FLIGHT (3/5)
- CHAPTER 1: THE FIRST FLIGHT (4/5)
-
CHAPTER 1: THE FIRST FLIGHT (5/5)
- Flight plan (1/5)
- Flight plan (2/5)
- Flight plan (3/5)
- Flight plan (4/5)
- Flight plan (5/5)
- Preflight checklist (1/5)
- Preflight checklist (2/5)
- Preflight checklist (3/5)
- Preflight checklist (4/5)
- Preflight checklist (5/5)
- The flight (1/5)
- The flight (2/5)
- The flight (3/5)
- The flight (4/5)
- The flight (5/5)
- Post-flight briefing (1/5)
- Post-flight briefing (2/5)
- Post-flight briefing (3/5)
- Post-flight briefing (4/5)
- Post-flight briefing (5/5)
- Notes for assembly experts
- Notes for PIC MCU experts
- Notes for C experts
- Tips and tricks
- Exercises
- Books
- Links
- CHAPTER 2: A LOOP IN THE PATTERN
- CHAPTER 3: MORE PATTERN WORK, MORE LOOPS
- CHAPTER 4: NUMB3RS
- CHAPTER 5: INTERRUPTS
- CHAPTER 6: TAKING A LOOK UNDER THE HOOD
-
PART II FLYING SOLOŽ
- CHAPTER 7: COMMUNICATION
- CHAPTER 8: ASYNCHRONOUS COMMUNICATION
- CHAPTER 9: GLASS BLISS
- CHAPTER 10: IT’S AN ANALOG WORLD
-
PART III – CROSS-COUNTRY FLYING
- CHAPTER 11: CAPTURING INPUTS
-
CHAPTER 12: THE DARK SCREEN
- Flight plan
- The flight (1/12)
- The flight (2/12)
- The flight (3/12)
- The flight (4/12)
- The flight (5/12)
- The flight (6/12)
- The flight (7/12)
- The flight (8/12)
- The flight (9/12)
- The flight (10/12)
- The flight (11/12)
-
The flight (12/12)
- Generating the composite video signal
- Using the Output Compare modules
- Memory allocation
- Image serialization
- Building the video module
- Testing the video generator
- Measuring performance
- The dark screen
- A test pattern
- Plotting
- A starry night
- Line drawing
- Bresenham algorithm
- Plotting math functions
- Two-dimensional function visualization
- Fractals
- Text
- Testing the TextOnGPage module
- Developing a text page video
- Testing the text page performance
- Post-flight briefing
- Tips and tricks
- Exercises
- Books
- Links
- CHAPTER 13: MASS STORAGE
-
CHAPTER 14: FILE I/O
- Flight plan
- The flight (1/9)
- The flight (2/9)
- The flight (3/9)
- The flight (4/9)
- The flight (5/9)
- The flight (6/9)
- The flight (7/9)
- The flight (8/9)
-
The flight (9/9)
- Sectors and Clusters
- The File Allocation Table (FAT)
- The Root Directory
- The treasure hunt
- Opening a fi le
- Reading data from a file
- Closing a file
- Creating the fileio module
- Testing fopenM() and freadM()
- Writing data to a file
- Closing a file, second take
- Accessory functions
- Testing the complete fileio module
- Code Size
- Post-flight briefing
- Tips and tricks
- Exercises
- Books
- Links
-
CHAPTER 15: VOLARE
- Flight plan
- The flight (1/8)
- The flight (2/8)
- The flight (3/8)
- The flight (4/8)
- The flight (5/8)
- The flight (6/8)
- The flight (7/8)
-
The flight (8/8)
- The PS/2 communication protocol
- Interfacing a PIC24 to the PS/2
- Input Capture
- Testing the Input Capture method using Stimulus Scripts
- Testing the PS/2 receive routines
- The simulation
- The Simulator Profile
- Another method – Change Notification
- Evaluating cost
- A third method – I/O polling
- Testing the I/O polling method
- Cost and efficiency of the solution
- Completing the interface: adding a FIFO buffer
- Completing the interface: performing key codes decoding
- Post-flight briefing (1/8)
- Post-flight briefing (2/8)
- Post-flight briefing (3/8)
- Post-flight briefing (4/8)
- Post-flight briefing (5/8)
- Post-flight briefing (6/8)
- Post-flight briefing (7/8)
- Post-flight briefing (8/8)
- Tips and tricks (1/8)
- Tips and tricks (2/8)
- Tips and tricks (3/8)
- Tips and tricks (4/8)
- Tips and tricks (5/8)
- Tips and tricks (6/8)
- Tips and tricks (7/8)
- Tips and tricks (8/8)
- Exercises (1/8)
- Exercises (2/8)
- Exercises (3/8)
- Exercises (4/8)
- Exercises (5/8)
- Exercises (6/8)
- Exercises (7/8)
- Exercises (8/8)
- Books (1/8)
- Books (2/8)
- Books (3/8)
- Books (4/8)
- Books (5/8)
- Books (6/8)
- Books (7/8)
- Books (8/8)
- Links (1/8)
- Links (2/8)
- Links (3/8)
- Links (4/8)
- Links (5/8)
- Links (6/8)
- Links (7/8)
- Links (8/8)
- Flight plan
- The flight
- Using the PIC24 OC modules in PWM mode
- Testing the PWM as a D/A converter
- Producing analog waveforms
- Reproducing voice messages
- A media player
- The WAVE file format
- The play() function (1/2)
- The play() function (2/2)
- The low level audio routines
- Testing the WAVE file player
- Optimizing the fi le I/O
- LED Profi ling
- Looking under the hood for more
- Post-flight briefing
- Tips and tricks
- Exercises
- Books
- Links
- About the Author
- Index (1/3)
- Index (2/3)
- Index (3/3)
Product information
- Title: Programming 16-Bit PIC Microcontrollers in C
- Author(s):
- Release date: March 2007
- Publisher(s): Newnes
- ISBN: 9780080475462
You might also like
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 …
book
C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming
Go beyond the jigsaw approach of just using blocks of code you don’t understand and become …
book
Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C
Now that you’ve built a few Arduino projects, and reused some pre-written sketches, it’s time to …
book
Advanced PIC Microcontroller Projects in C
This book is ideal for the engineer, technician, hobbyist and student who have knowledge of the …