Running the App I/O Code

To run the App I/O examples from Using App I/O with 8- and 16-Bit MCUs or Using App I/O with 32-Bit MCUs:

  1. Create a project using the Project wizard:
    1. Select a supported device.
    2. Select REAL ICE™ or ICD 3 as the hardware tool.
    3. Use an MPLAB® XC C Compiler as the language toolsuite.
  2. Select File > New File to create and name a new C Source File. In the Editor window that opens, add the previous code and save.
  3. Right-click on the project name in the Projects window and select Properties. In the Project Properties window, click on “xcnn-gcc” under Categories, where nn is either 16 or 32. Under “Option Categories”, select “General” and check the “Enable App IO” checkbox.
  4. Some examples may require a heap. In the Project Properties window, click on “xcnn-ld” under Categories, where nn 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)".
  5. Build the project (Right-click on the project name and select “Build”).
  6. Select Window > Debugging > PIC App IO to open the Application In/Out window.
  7. Click on the Properties button (on the left of the window in Figure 1) to launch the Set App IO Properties dialog. Under Capture click On.
  8. Debug Run or Run the project.
  9. Enter a text value in the Input text box. Hit <Enter>.
  10. View the output in the Output text box (Figure 2).

Figure 1: Set App I/O Properties

AppIO_Setup_X.gif

Figure 2: App In/Out Window

AppIO_Window_X.gif

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.

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