This demo shows how to read and write port pins of a Netcruzer Single Board Computer. All ports on Netcruzer boards are named 0 - 41 (old names used to be T0 to T7, Y0 to Y11 and X0 to X11). For details how they map to the Microcontroller port pins, see modtronix.com/product/sbc66ec/ For this demo, connect a LED to port 38 (old port name Y8) (anode to port 38, cathode to 0V via a 1k resistor), and a button to port 34 (old port name Y4) (other side of button to 0V). This example will continuously check the state of the button input. When the button is pressed, it will turn on the LED on port 38 (old port name Y8). When not pressed, it will turn off the LED.
This project can be run on any of our SBC66 Netcruzer boards. For prototyping, we recommend combining this board with a Prototyping Board, like the PT66ECI for example. This low cost prototyping board makes all the I/O ports of the SBC66 board available via marked labels on the PCB. It also provides a reset and firmware button that simplifies prototyping.
This project is located in the "src/demos/io/port_read_write" 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 "SBC66ECL_R2" for the SBC66ECL Revision 2 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.
2012-08-08, David H. (DH):