This demo shows how to configure a Relocatable Port as a PWM channel. The SBC66 Netcruzer boards have 9 PWM channels. They can be assigned to any of the Relocatable Ports. For the location of the Relocatable Ports, see modtronix.com/product/sbc66ec/ For this demo, connect a LED to port 6 (old port name X6), with anode to port 6 and cathode to 0V via a 1k resistor. Or, the DB66DEV1 development board can be used, which has LED1 on this port. This demo configures port 6 (old port name X6) as a PWM output, and will gradually increase and decrease the brightness of the LED every second.
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/pwm/pwm_demo1" 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):