Programming 16-Bit PIC Microcontrollers in C

1st Edition

Learning to Fly the PIC 24

Authors: Lucio Di Jasio Lucio Di Jasio
Paperback ISBN: 9780750682923
eBook ISBN: 9780080475462
Imprint: Newnes
Published Date: 16th March 2007
Page Count: 400
45.95 + applicable tax
36.99 + applicable tax
59.95 + applicable tax
57.95 + applicable tax
Unavailable
Compatible Not compatible
VitalSource PC, Mac, iPhone & iPad Amazon Kindle eReader
ePub & PDF Apple & PC desktop. Mobile devices (Apple & Android) Amazon Kindle eReader
Mobi Amazon Kindle eReader Anything else

Institutional Access


Table of Contents

1. Take off…The most dangerous phases of flight… take off and landing. The parallel with learning a new development tool and possibly an entirely new language … We learn about the C30 compiler (student version) and we start developing code for the new 16-bit families of dsPIC and PIC24 microcontrollers. - Use of MPLAB and the Simulator as a familiar environment, - continuous parallels with assembly programming, Proceed through: 1.1. Step by step installation of the compiler 1.2. Walk through some of the most basic steps of creating a new MPLAB project with the C30 language suite 1.3. the first #include, accessing the PICmicro resources in C 1.4. the first interrupt 1.5. Timing clock and 1.6. Hello (Embedded) World 1.7. Linking and running within the simulator 2. Touch and Go… i.e. stay in the pattern and practice your landings. Debugging code with MLAB in a C30 project. 2.1. Watch for your Airspeed, that is: keep an eye on the clock (watch windows, stopwatch) 2.2. touch and goes, breakpoints and single stepping through C code (what the optimizer does to it) 2.3. use of the logic analyzer view 2.4. in the real cockpit: leaving the protected world of the simulator and starting to use the ICD2 2.5. tips for the perfect landing: print statements, bit toggling, asserts and other old tricks 3. Basic maneuvers basic C language constructs 3.1. allocating variables (and learn about RAM mapping) 3.2. loops (and learn about FLASH addressing ) 3.3. conditions (and learn about register mappings) 3.4. functions (and learn about interrupts and subroutine calls) 4. Inside the engine compartment advanced, for assembly experts who don’t trust

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!

Key Features

·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

Readership

PRIMARY MARKET: Embedded Engineers, Programmers, and Designers, SW & HW engineers

SECONDARY MARKET: electrical and computer engineering students, hobbyists


Details

No. of pages:
400
Language:
English
Copyright:
© Newnes 2007
Published:
Imprint:
Newnes
eBook ISBN:
9780080475462
Paperback ISBN:
9780750682923

Reviews

"No stone is left unturned. The book hits flash memory, communications, LCD support, and analog-to-digital converter support...Unless you are a C30 and PIC24 wiz already, pick up this book before beginning work with one." William Wong, Electronic Design.


About the Authors

Lucio Di Jasio Author

Lucio Di Jasio is now Sales Manager in Europe for Microchip Inc. He was previously Application Segments Manager at Microchip in Chandler AZ. He has been intimately involved in the development of Microchip PIC products for over 10 years and is a well known writer and expert on the use of PIC products both via his Newnes books and his work at events such as the Microchip Masters.

Affiliations and Expertise

Lucio Di Jasio is now Sales Manager in Europe for Microchip Inc.

Lucio Di Jasio Author

Lucio Di Jasio is now Sales Manager in Europe for Microchip Inc. He was previously Application Segments Manager at Microchip in Chandler AZ. He has been intimately involved in the development of Microchip PIC products for over 10 years and is a well known writer and expert on the use of PIC products both via his Newnes books and his work at events such as the Microchip Masters.

Affiliations and Expertise

Lucio Di Jasio is now Sales Manager in Europe for Microchip Inc.