Programming 16-Bit PIC Microcontrollers in C: Learning to Fly the PIC 24• 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 |
Common terms and phrases
allocated analog-to-digital converter application array ASCII asynchronous serial communication block buffer bytes character checklist chunk clock line cluster command configuration control registers cursor debugging default device display duty cycle EEPROM embedded-control entry error example execution Explorer16 board FError FIFO Figure file system fp->buffer function HyperTerminal ICD2 init initialization Input Capture integer interface interrupt flag interrupt service routine KBDReady key code keyboard LCD module lesson Logic Analyzer main loop microcontroller mode mov.w MPLAB C30 compiler NTSC operation Output Compare parity perform peripheral PIC microcontroller pointer PORTA prescaler program memory PS2State putLCD reset sampling screen SD card SD/MMC card sector sequence Serial EEPROM serial port signal simulator source file SPI2BUF status register string synchronization timer TMR1 UART unsigned char variable void Watch window write writeSPI2
Popular passages
Page 2 - What this book is not This book is not a replacement for the PIC24 datasheet, reference manual and programmer's manual published by Microchip Technology.