Jump to main content
MPLAB® XC32 C/C++ Compiler User's Guide for PIC32M MCUs
MPLAB® XC32 C/C++ Compiler User's Guide for PIC32M MCUs
  1. Home
  2. 3 How To's
  3. 3.3 Writing Source Code
  4. 3.3.2 Device-Specific Features

  • Notice to Development Tools Customers
  • 1 Preface
  • 2 Compiler Overview
  • 3 How To's
    • 3.1 Installing and Activating the Compiler
    • 3.2 Invoking the Compiler
    • 3.3 Writing Source Code
      • 3.3.1 C Language Specifics
      • 3.3.2 Device-Specific Features
        • 3.3.2.1 How Do I Set the Configuration Bits?
        • 3.3.2.2 How Do I Determine the Cause of Reset?
        • 3.3.2.3 How Do I Access SFRS?
        • 3.3.2.4 How Do I Find The Names Used To Represent SFRs And Bits?
      • 3.3.3 Memory Allocation
      • 3.3.4 Variables
      • 3.3.5 Functions
      • 3.3.6 Interrupts
      • 3.3.7 Assembly Code
    • 3.4 Getting My Application To Do What I Want
    • 3.5 Understanding the Compilation Process
    • 3.6 Fixing Code That Does Not Work
  • 4 XC32 Toolchain and MPLAB X IDE
  • 5 Command-line Driver
  • 6 ANSI C Standard Issues
  • 7 Device-Related Features
  • 8 Code Coverage
  • 9 Supported Data Types and Variables
  • 10 Memory Allocation and Access
  • 11 Floating-point Support
  • 12 Fixed-Point Arithmetic Support
  • 13 Operators and Statements
  • 14 Register Usage
  • 15 Stack
  • 16 Functions
  • 17 Interrupts
  • 18 Main, Runtime Start-up and Reset
  • 19 Library Routines
  • 20 Mixing C/C++ and Assembly Language
  • 21 Optimizations
  • 22 Preprocessing
  • 23 Linking Programs
  • 24 Embedded Compiler Compatibility Mode
  • 25 Common C Interface
  • 26 C Implementation-Defined Behavior
  • 27 C++ Implementation-Defined Behavior
  • 28 Deprecated Features
  • 29 Built-In Functions
  • 30 Built-In DSP Functions
  • 31 PIC32 DSP Library
  • 32 PIC32 Debug-Support Library
  • 33 DSP Wrapper Functions
  • 34 ASCII Character Set
  • 35 Document Revision History
  • The Microchip Website
  • Product Change Notification Service
  • Customer Support
  • Product Identification System
  • Microchip Devices Code Protection Feature
  • Legal Notice
  • Trademarks
  • Quality Management System
  • Worldwide Sales and Service

3.3.2 Device-Specific Features

This section discusses the code that needs to be written to set up or control a feature that is specific to Microchip PIC devices.

  • How Do I Set the Configuration Bits?
  • How Do I Determine the Cause of Reset?
  • How Do I Access SFRS?
  • How Do I Stop the Compiler From Using Certain Memory Locations?

See also the following linked information in other sections.

  • What Do I Need to Do When Compiling to Use a Debugger?

About

Company
Careers
Contact Us
Media Center
Investor Relations
Corporate Responsibility

Support

Microchip Forums
AVR Freaks
Design Help
Technical Support
Export Control Data
PCNs

Quick Links

microchipDIRECT.com
Microchip University
myMicrochip
Blogs
Reference Designs
Parametric Search
Microchip Logo

Microchip Technology Inc.

2355 West Chandler Blvd.

Chandler, Arizona, USA

Microchip Facebook
Microchip LinkedIn
Microchip Twitter
Microchip Instagram
Microchip Weibo

© Copyright 1998-2024 Microchip Technology Inc. All rights reserved. Shanghai ICP Recordal No.09049794

Terms Of Use
Privacy Notice
Legal
Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon