Using App I/O with 8- and 16-Bit MCUs

At this time, no 8-bit devices support App I/O.

To use the Application In/Out window:

  • To directly write to App I/O, use the device-specific header file when building your application (per the example below.)
  • In the future, the 16-bit device library will have stdio.h functions printf() and scanf() that work with the Application In/Out feature. Currently these functions work with device UARTs.

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 dsPIC33EP256GP506 PIM. Software used was MPLAB X IDE v3.65 and MPLAB XC16 C compiler v1.30.

© 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.