EDF - OnePIC MCU  v1.1.0
16bit Wirless Demo User's Guide

RF4CE

Steps to build RF4CE Demo:

  1. Add 16bit_RF4CE source file folder using same procedure as in section 1A
  2. Select configuration OnePIC: 16bit_RF4CE

RF4CE GUI- wireless_rc_utility_v1.6.5.8.jar The ZENA driver must be installed first Once the GUI is started, Setup:

  1. File-> Configure Zena Wireless Adapter. 'USB Configuration' window will appear.
  2. Select ZENA Adapter RF4CE
  3. Select OK
  4. Ensure the OnePIC board is programmed with the RF4CE demo. The LCD line 1 should read 'Pairing.' If the demo is running.
  5. Click 'Pairing'. Within 10-15 seconds the pairing should complete.
  6. Pressed cap-touch buttons on the OnePIC board, see the arrow buttons light in the GUI.
    16bit_gui.jpg

MPLABX Feature: Configuration based Macro Definitions MPLABX allows you to define configuration specific macros, which can be used to conditionally compile source code.

This project defines 'WIRELESS_DEMO' when the respective wireless configurations are selected.

Example of use in main.c:

16bit_properties.jpg
16bit_macro.jpg

Using this feature, the function demo_main_loop() is only called when the current configuration defines the macro named 'WIRELESS_DEMO'. To define such a macro, open Project Properties, select the compiler of the configuration in which you'd like to define a macro, and enter the macro name.

32bit_showcase1.jpg