This demo shows how to use the PT66DIN6 DIN Rail board with iMod ports. This demo can be used with any SBC66 Netcruzer board with an USB Port (not USB Host). To enable PT66DIN6 specific function, the following line must be added to this project's "HardwareProfile.h" file:
This will make iMod specific functions available in the IDE. These functions will appear in MPLAB X as code completion suggestions if the module name is types. For details, see PT66DIN6 Documentation.
Additionally this demo also implements debugging via the USB port and the Netcruzer USB Terminal App. During the program various debug messages are written, which will be displayed on the "Netcruzer USB Terminal" (running on a PC connected to the target board's USB port). This demo also monitors the USB port for Debug messages send to us.
- If "hi" is received, it replies with "Hello"
Use the "Netcruzer USB Terminal" App to send and receive USB Debug messages. It can be downloaded here: https://netcruzer.com/usbterminal/
The project requires a SBC66 Netcruzer board with an USB Port (not USB Host), AND a PT66DIN6 development board. The SBC board is plugged onto the PT66DIN6 board (as a daughter board). It requires a button and LED connected to iMod port 5 and 2. This can be provided by the im2BL iMod module with 2 LEDs and buttons. This module is however not required, and a button and LED can be connected to these pins of the iMod port via a 1k resistor to 0V.
This project is located in the "src/demos/pt66/pt66din6_debug_demo" folder of the Netcruzer Download. To compile for Netcruzer Board, open this project in MPLAB X, and select the "Project Configuration" for desired board. For example "SBC66ZL_R1" for the SBC66ZL Revision 1 board. For details click here
After compiling (build), the board can be programmed via the USB Bootloader or a PIC Programmer. USB Programming is simplified when using the SBC board together with a Prototype Board.
2013-10-31, David H. (DH):