MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
16-Bit C <strong>Compiler</strong> User’s Guide<br />
4.13 Bit Reversed <strong>and</strong> Modulo Addressing ........................................................ 76<br />
4.14 Program Space Visibility (PSV) Usage ...................................................... 76<br />
Chapter 5. Data Types<br />
5.1 Introduction ................................................................................................... 79<br />
5.2 Highlights ...................................................................................................... 79<br />
5.3 Data Representation .................................................................................... 79<br />
5.4 Integer .......................................................................................................... 79<br />
5.5 Floating Point ............................................................................................... 80<br />
5.6 Pointers ........................................................................................................ 80<br />
Chapter 6. Additional C Pointer Types<br />
6.1 Introduction ................................................................................................... 81<br />
6.2 Managed PSV Pointers ................................................................................ 81<br />
6.3 PMP Pointers ............................................................................................... 83<br />
6.4 External Pointers .......................................................................................... 85<br />
Chapter 7. Device Support Files<br />
7.1 Introduction ................................................................................................... 91<br />
7.2 Highlights ...................................................................................................... 91<br />
7.3 Processor Header Files ................................................................................ 91<br />
7.4 Register Definition Files ............................................................................... 92<br />
7.5 Using SFRs .................................................................................................. 93<br />
7.6 Using Macros ............................................................................................... 95<br />
7.7 Accessing EEDATA from C Code - <strong>dsPIC</strong>30F dSCs only ............................ 96<br />
Chapter 8. Interrupts<br />
8.1 Introduction ................................................................................................... 99<br />
8.2 Highlights ...................................................................................................... 99<br />
8.3 Writing an Interrupt Service Routine .......................................................... 100<br />
8.4 Writing the Interrupt Vector ........................................................................ 102<br />
8.5 Interrupt Service Routine Context Saving .................................................. 112<br />
8.6 Latency ....................................................................................................... 112<br />
8.7 Nesting Interrupts ....................................................................................... 112<br />
8.8 Enabling/Disabling Interrupts ..................................................................... 113<br />
8.9 Sharing Memory Between Interrupt Service Routines <strong>and</strong> Mainline Code 114<br />
8.10 PSV Usage with Interrupt Service Routines ............................................. 117<br />
Chapter 9. Mixing Assembly Language <strong>and</strong> C Modules<br />
9.1 Introduction ................................................................................................. 119<br />
9.2 Highlights .................................................................................................... 119<br />
9.3 Mixing Assembly Language <strong>and</strong> C Variables <strong>and</strong> Functions ..................... 119<br />
9.4 Using Inline Assembly Language ............................................................... 121<br />
Appendix A. Implementation-Defined Behavior<br />
A.1 Introduction ................................................................................................ 129<br />
A.2 Highlights ................................................................................................... 129<br />
A.3 Translation ................................................................................................. 130<br />
A.4 Environment ............................................................................................... 130<br />
DS51284H-page iv © 2008 <strong>Microchip</strong> Technology Inc.