Muutke küpsiste eelistusi

E-raamat: Programming 32-bit Microcontrollers in C: Exploring the PIC32

(Lucio Di Jasio is now Sales Manager in Europe for Microchip Inc.)
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 08-Apr-2011
  • Kirjastus: Newnes (an imprint of Butterworth-Heinemann Ltd )
  • Keel: eng
  • ISBN-13: 9780080560106
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 51,86 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 08-Apr-2011
  • Kirjastus: Newnes (an imprint of Butterworth-Heinemann Ltd )
  • Keel: eng
  • ISBN-13: 9780080560106
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

*Just months after the introduction of the new generation of 32-bit PIC microcontrollers, a Microchip insider and acclaimed author takes you by hand at the exploration of the PIC32

*Free CD-ROM includes source code in C and the Microchip MPLAB C32 compiler

*Includes handy checklists to help readers perform the most common programming and debugging tasks

The new 32-bit microcontrollers bring the promise of more speed and more performance while offering an unprecedented level of compatibility with existing 8 and 16-bit PIC microcontrollers. In sixteen engaging chapters, using a parallel track to his previous title dedicated to 16-bit programming, the author puts all these claims to test while offering a gradual introduction to the development and debugging of embedded control applications in C.
Author Lucio Di Jasio, a PIC and embedded control expert, offers unique insight into the new 32-bit architecture while developing a number of projects of growing complexity.
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 using the new PIC32 features and peripheral set.

You will learn about:
*basic timing and I/O operation
*debugging methods with the MPLAB SIM *simulator and ICD tools
*multitasking using the PIC32 interrupts
*all the new hardware peripherals
*how to control LCD displays
*experimenting with the Explorer16 board and *the PIC32 Starter Kit
*accessing mass-storage media
*generating audio and video signals
*and more!

TABLE OF CONTENTS
Day 1 And the adventure begins
Day 2 Walking in circles
Day 3 Message in a Bottle
Day 4 NUMB3RS
Day 5 Interrupts
Day 6 Memory
Part 2 Experimenting
Day 7 Running
Day 8 Communication
Day 9 Links
Day 10 Glass = Bliss
Day 11 It’s an analog world
Part 3 Expansion
Day 12 Capturing User Inputs
Day 13 UTube
Day 14 Mass Storage
Day 15 File I/O
Day 16 Musica Maestro!

*32-bit microcontrollers are becoming the technology of choice for high performance embedded control applications including portable media players, cell phones, and GPS receivers.
*Learn to use the C programming language for advanced embedded control designs and/or learn to migrate your applications from previous 8 and 16-bit architectures.
*All code examples and software tools required to get acquainted with Microchip’s MPLAB development environment, and to complete all the projects described in the book, are offered in the attached CDROM including the MPLAB C32 C Compiler (free Student Edition) and the full source code for more than 15 entertaining projects.

*Just months after the introduction of the new generation of 32-bit PIC microcontrollers, a Microchip insider and acclaimed author takes you by hand at the exploration of the PIC32

*Companion website includes source code in C and the Microchip MPLAB C32 compiler

*Includes handy checklists to help readers perform the most common programming and debugging tasks

The new 32-bit microcontrollers bring the promise of more speed and more performance while offering an unprecedented level of compatibility with existing 8 and 16-bit PIC microcontrollers. In sixteen engaging chapters, using a parallel track to his previous title dedicated to 16-bit programming, the author puts all these claims to test while offering a gradual introduction to the development and debugging of embedded control applications in C.
Author Lucio Di Jasio, a PIC and embedded control expert, offers unique insight into the new 32-bit architecture while developing a number of projects of growing complexity.
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 using the new PIC32 features and peripheral set.

You will learn about:
*basic timing and I/O operation
*debugging methods with the MPLAB SIM *simulator and ICD tools
*multitasking using the PIC32 interrupts
*all the new hardware peripherals
*how to control LCD displays
*experimenting with the Explorer16 board and *the PIC32 Starter Kit
*accessing mass-storage media
*generating audio and video signals
*and more!

TABLE OF CONTENTS
Day 1 And the adventure begins
Day 2 Walking in circles
Day 3 Message in a Bottle
Day 4 NUMB3RS
Day 5 Interrupts
Day 6 Memory
Part 2 Experimenting
Day 7 Running
Day 8 Communication
Day 9 Links
Day 10 Glass = Bliss
Day 11 It’s an analog world
Part 3 Expansion
Day 12 Capturing User Inputs
Day 13 UTube
Day 14 Mass Storage
Day 15 File I/O
Day 16 Musica Maestro!

*32-bit microcontrollers are becoming the technology of choice for high performance embedded control applications including portable media players, cell phones, and GPS receivers.
*Learn to use the C programming language for advanced embedded control designs and/or learn to migrate your applications from previous 8 and 16-bit architectures.
*All code examples and software tools required to get acquainted with Microchip’s MPLAB development environment, and to complete all the projects described in the book, are offered in a companion website including the MPLAB C32 C Compiler (free Student Edition) and the full source code for more than 15 entertaining projects.

Muu info

The FIRST book on Microchip's latest and greatest 32-bit architecture: the PIC32 written by a true Microchip insider!
Introduction xix
Part 1: Exploring
1(138)
Day 1: The Adventure Begins
3(22)
The Plan
3(1)
Preparation
3(3)
The Adventure Begins
6(2)
Compiling and Linking
8(2)
The Linker Script
10(1)
Building the First Project
11(1)
Using the Simulator
12(2)
Finding a Direction
14(2)
The JTAG Port
16(1)
Testing PORTB
17(2)
Mission Debriefing
19(1)
Notes for the Assembly Experts
20(2)
Notes for the PIC MCU Experts
22(1)
Notes for the C Experts
22(1)
Tips & Tricks
22(1)
Exercises
23(1)
Books
24(1)
Links
24(1)
Day 2: Walking in Circles
25(18)
The Plan
25(1)
Preparation
25(2)
The Exploration
27(1)
While Loops
28(3)
An Animated Simulation
31(4)
Using the Logic Analyzer
35(2)
Debriefing
37(1)
Notes for the Assembly Experts
38(1)
Notes for the 8-Bit PIC Microcontroller Experts
38(1)
Notes for the 16-Bit PIC Microcontroller Experts
38(1)
Notes for the C Experts
39(1)
Notes for the MIPS Experts
39(1)
Tips & Tricks
39(1)
Notes on Using the Peripheral Libraries
40(2)
Exercises
42(1)
Books
42(1)
Links
42(1)
Day 3: Message in a Bottle
43(18)
The Plan
43(1)
Preparation
43(1)
The Exploration
43(1)
Do Loops
44(1)
Variable Declarations
45(2)
for Loops
47(1)
More Loop Examples
48(1)
Arrays
49(1)
Sending a Message
50(3)
Testing with the Logic Analyzer
53(1)
Testing with the Explorer 16 Demonstration Board
54(1)
Testing with the PIC32 Starter Kit
55(2)
Debriefing
57(1)
Notes for the Assembly Experts
57(1)
Notes for the PIC Microcontroller Experts
58(1)
Notes for the C Experts
58(1)
Tips & Tricks
59(1)
Exercises
60(1)
Books
60(1)
Links
60(1)
Day 4: NUMB3RS
61(20)
The Plan
61(1)
Preparation
61(1)
The Exploration
61(3)
On Optimizations (or Lack Thereof)
64(1)
Testing
64(1)
Going long long
65(2)
Integer Divisions
67(2)
Floating Point
69(1)
Measuring Performance
70(3)
Debriefing
73(1)
Notes for the Assembly Experts
73(2)
Notes for the 8-Bit PIC® Microcontroller Experts
75(1)
Notes for the 16-Bit PIC and dsPIC® Microcontroller Experts
76(1)
Tips & Tricks
77(1)
Exercises
78(1)
Books
79(1)
Links
79(2)
Day 5: Interrupts
81(34)
The Plan
81(1)
Preparation
81(1)
The Exploration
81(1)
Interrupts and Exceptions
82(2)
Sources of Interrupt
84(1)
Interrupt Priorities
85(3)
Interrupt Handlers Declaration
88(2)
The Interrupt Management Library
90(1)
Single Vector Interrupt Management
90(5)
Managing Multiple Interrupts
95(3)
Multivectored Interrupt Management
98(5)
A Simple Application
103(5)
The Secondary Oscillator
108(1)
The Real-Time Clock Calendar (RTCC)
109(2)
Debriefing
111(1)
Notes for the PIC Microcontroller Experts
111(1)
Tips & Tricks
112(1)
Exercises
113(1)
Books
113(1)
Links
113(2)
Day 6: Memory
115(24)
The Plan
115(1)
Preparation
115(1)
The Exploration
116(2)
Memory Space Allocation
118(5)
Looking at the MAP
123(4)
Pointers
127(1)
The Heap
128(1)
The PIC32MX Bus
129(1)
PIC32MX Memory Mapping
130(4)
The Embedded-Control Memory Map
134(1)
Debriefing
135(1)
Notes for the C Experts
135(1)
Notes for the Assembly Experts
136(1)
Notes for the PIC Microcontroller Experts
136(1)
Tips & Tricks
137(1)
Exercises
137(1)
Books
138(1)
Links
138(1)
Part 2: Experimenting
139(130)
Day 7: Running
141(32)
The Plan
141(1)
Preparation
141(1)
The Exploration
142(2)
Performance vs. Power Consumption
144(2)
The Primary Oscillator Clock Chain
146(1)
The Peripheral Bus Clock
147(1)
Initial Device Configuration
148(2)
Setting Configuration Bits in Code
150(2)
Heavy Stuff
152(6)
Ready, Set, Go!
158(2)
Fine-Tuning the PIC32: Configuring Flash Wait States
160(3)
Fine-Tuning the PIC32: Enabling the Instruction and Data Cache
163(1)
Fine-Tuning the PIC32: Enabling the Instruction Pre-Fetch
164(1)
Fine-Tuning the PIC32: Final Notes
165(2)
Debriefing
167(1)
Notes for the Assembly Experts
167(1)
Notes for the PIC® Microcontroller Experts
167(1)
Tips & Tricks
168(3)
Exercises
171(1)
Books
171(1)
Links
171(2)
Day 8: Communication
173(24)
The Plan
173(1)
Preparation
173(1)
The Exploration
174(1)
Synchronous Serial Interfaces
174(2)
Asynchronous Serial Interfaces
176(1)
Parallel Interfaces
177(1)
Synchronous Communication Using the SPI Modules
178(4)
Testing the Read Status Register Command
182(4)
Writing Data to the EEPROM
186(1)
Reading the Memory Contents
187(1)
A 32-bit Serial EEPROM Library
187(4)
Testing the New SEE Library
191(2)
Debriefing
193(1)
Notes for the C Experts
193(1)
Notes for the Explorer 16 Experts
193(1)
Notes for the PIC24 Experts
194(1)
Tips & Tricks
194(1)
Exercises
195(1)
Books
196(1)
Links
196(1)
Day 9: Asynchronous Communication
197(22)
The Plan
197(1)
Preparation
197(1)
The Exploration
197(3)
UART Configuration
200(2)
Sending and Receiving Data
202(2)
Testing the Serial Communication Routines
204(2)
Building a Simple Console Library
206(3)
Testing a VT100 Terminal
209(2)
The Serial Port as a Debugging Tool
211(1)
The Matrix Project
211(3)
Debriefing
214(1)
Notes for the C Experts
214(1)
Notes for the PIC® Microcontroller Experts
215(1)
Tips & Tricks
215(1)
Exercises
216(1)
Books
216(1)
Links
217(2)
Day 10: Glass = Bliss
219(30)
The Plan
219(1)
Preparation
219(1)
The Exploration
219(2)
HD44780 Controller Compatibility
221(2)
The Parallel Master Port
223(1)
Configuring the PMP for LCD Module Control
224(1)
A Small Library of Functions to Access an LCD Display
225(6)
Building an LCD Library and Using the PMP Library
231(6)
Creating the include and lib Directories
237(3)
Advanced LCD Control
240(1)
Progress Bar Project
241(4)
Debriefing
245(1)
Notes for the PIC24 Experts
245(1)
Tips & Tricks
246(1)
Exercises
246(1)
Books
247(1)
Links
247(2)
Day 11: It's an Analog World
249(20)
The Plan
249(1)
Preparation
249(1)
The Exploration
249(4)
The First Conversion
253(1)
Automating Sampling Timing
254(1)
Developing a Demo
255(2)
Creating Our Own Mini ADC Library
257(1)
Fun and Games
258(3)
Sensing Temperature
261(5)
Debriefing
266(1)
Notes for the PIC24 Experts
266(1)
Tips & Tricks
267(1)
Exercises
267(1)
Books
268(1)
Links
268(1)
Part 3: Expansion
269(250)
Day 12: Capturing User Inputs
271(62)
The Plan
271(1)
Preparation
271(1)
Buttons and Mechanical Switches
272(3)
Button Input Packing
275(2)
Button Inputs Debouncing
277(3)
Rotary Encoders
280(3)
Interrupt-Driven Rotary Encoder Input
283(5)
Keyboards
288(1)
PS/2 Physical Interface
288(1)
The PS/2 Communication Protocol
289(1)
Interfacing the PIC32 to the PS/2
290(1)
Input Capture
290(6)
Testing Using a Stimulus Scripts
296(5)
The Simulator Profiler
301(1)
Change Notification
302(6)
Evaluating Cost
308(1)
I/O Polling
309(5)
Testing the I/O Polling Method
314(3)
Cost and Efficiency Considerations
317(2)
Keyboard Buffering
319(5)
Key Code Decoding
324(4)
Debriefing
328(1)
Notes for the PIC24 Experts
329(1)
Tips & Tricks
329(1)
Exercises
330(1)
Books
330(1)
Links
331(2)
Day 13: UTube
333(70)
The Plan
333(1)
Preparation
333(1)
The Exploration
334(3)
Generating the Composite Video Signal
337(5)
The Output Compare Modules
342(3)
Image Buffers
345(1)
Serialization, DMA, and Synchronization
346(7)
Completing a Video Library
353(4)
Testing the Composite Video
357(3)
Measuring Performance
360(1)
Seeing the Dark Screen
360(2)
Test Pattern
362(2)
Plotting
364(2)
A Starry Night
366(2)
Line Drawing
368(2)
Bresenham Algorithm
370(3)
Plotting Math Functions
373(3)
Two-Dimensional Function Visualization
376(5)
Fractals
381(8)
Text
389(2)
Printing Text on Video
391(3)
Text Test
394(1)
The Matrix Reloaded
395(3)
Debriefing
398(1)
Notes for the PIC24 Experts
399(1)
Tips & Tricks
399(2)
Exercises
401(1)
Books
402(1)
Links
402(1)
Day 14: Mass Storage
403(24)
The Plan
403(1)
Preparation
403(1)
The Exploration
404(1)
The Physical Interface
405(1)
Interfacing to the Explorer 16 Board
406(1)
Starting a New Project
407(1)
Selecting the SPI Mode of Operation
408(1)
Sending Commands in SPI Mode
408(3)
Completing the SD Card Initialization
411(2)
Reading Data from an SD/MMC Card
413(3)
Writing Data to an SD/MMC Card
416(3)
Testing the SD/MMC Interface
419(5)
Debriefing
424(1)
Tips & Tricks
425(1)
Exercises
426(1)
Books
426(1)
Links
426(1)
Day 15: File I/O
427(58)
The Plan
427(1)
Preparation
427(1)
The Exploration
428(1)
Sectors and Clusters
428(1)
The File Allocation Table
429(1)
The Root Directory
430(3)
The Treasure Hunt
433(11)
Opening a File
444(10)
Reading Data from a File
454(5)
Closing a File
459(1)
The Fileio Module
460(3)
Testing fopenM () and freadM ()
463(2)
Writing Data to a File
465(6)
Closing a File, Take Two
471(2)
Accessory Functions
473(3)
Testing the Complete Fileio Module
476(4)
Code Size
480(1)
Debriefing
481(1)
Tips & Tricks
481(1)
Exercises
482(1)
Books
482(1)
Links
483(2)
Day 16: Musica, Maestro!
485(34)
The Plan
485(1)
Preparation
485(1)
The Exploration
486(2)
OC PWM Mode
488(2)
Testing the PWM as a D/A Converter
490(2)
Producing Analog Waveforms
492(5)
Reproducing Voice Messages
497(1)
A Media Player
498(2)
The WAVE File Format
500(1)
The Play () Function
501(9)
The Audio Routines
510(3)
A Simple WAVE File Player
513(2)
Debriefing
515(1)
Tips & Tricks
516(1)
Exercises
516(1)
Books
516(1)
Links
517(1)
Disclaimer
517(1)
Final Note for the Experts
517(2)
Index 519
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.