Using App I/O with 32-Bit MCUs

To use the Application In/Out window:

  • Use the device-specific header file when building your application to use the macros assigned in the header (per Example below.)
  • Alternatively, the PIC32 MCU library has printf() and scanf() functions that work with the Application In/Out feature. Refer to the "32-Bit Language Tools Libraries" manual (DS51685), “PIC32 Debug-Support Library” chapter, "<sys/appio.h> PIC32 Debugging Support" section.

Example: Application In/Out Macro Usage
The following application code reads the application input register and writes out a padded value of the input to the application output register.

Hardware used was an MPLAB® REAL ICE™ in-circuit emulator and an Explorer 16/32 demo board with a PIC32MX795F512L PIM. Software used was MPLAB X IDE v3.65 and MPLAB XC32 C compiler v1.43.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.