Running the App I/O Code
To run the App I/O examples fromUsing App I/O with 8- and 16-Bit MCUs orUsing App I/O with 32-Bit MCUs:
- Create a project using the Project wizard:
- Select a supported device.
- SelectREAL ICE™ orICD 3 as the hardware tool.
- Use an MPLAB® XC C Compiler as the language toolsuite.
- SelectFile > New File to create and name a new C Source File. In theEditor window that opens, add the previous code and save.
- Right-click on the project name in theProjects window and selectProperties. In theProject Properties window, click on “xcnn-gcc” underCategories, wherenn is either 16 or 32. Under “Option Categories”, select “General” and check the “Enable App IO” checkbox.
- Some examples may require a heap. In theProject Properties window, click on “xcnn-ld” underCategories, wherenn is either 16 or 32. Under “Option Categories”, select “General” and enter a heap size (e.g., 512) in the text box "Heap size (bytes)".
- Build the project (Right-click on the project name and select “Build”).
- SelectWindow > Debugging > PIC App IO to open theApplication In/Out window.
- Click on theProperties button (on the left of the window in Figure 1) to launch theSet App IO Properties dialog. UnderCapture clickOn.
- Debug Run or Run the project.
- Enter a text value in the Input text box. Hit <Enter>.
- View the output in theOutput text box (Figure 2).
Figure 1: Set App I/O Properties
Figure 2: App In/Out Window
Change Input and Output Formats by opening the Set App IO Properties dialog and running the program again to see what outputs result for different inputs.



