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.