This demo contains some test code for the DB66DEV1 development daughter board. The potentiometer, connected to analog input 3 (old port name X3) controls the frequency of the buzzer connected to port 34 (old port name Y4). This port is configured as a PWM output. The 4 buttons on the DB66DEV1 will simply control LEDs 1 to 4 (on/off when button pressed/depressed). LEDs 5 to 8 run from left to right, incremented each 100ms.
Information is written out to a serial LCD2S type display.
Additionally the the System LED blinks every second.
The DB66DEV1 has a potentiometer on port 3 (old port name X3). This port has an ADC (Analog to Digital) converter on all SBC66 Netcruzer boards. The SBC66 Netcruzer boards have 12 Analog input ports, port 0-5 and 30-35 (old port names X0-X5, and Y0-Y5). For details see modtronix.com/product/sbc66ec/ Port 3 is configured as an Analog Inputs. By default the ADC is configured for voltages between 0-2.5V, include "#define ADC_3V3_VREF" in projdefs.h for 0-3.3V range.
The DB66DEV1 has 4 button on ports 30, 31, 32 and 33 (old port names Y0, Y1, Y2 and Y3). They are all configured as inputs.
The DB66DEV1 has 8 LEDs on ports 6, 7, 8, 9, 26, 27, 28, 29 (Old port names X6, X7, X8, X9, T4, T5, T6 and T7). These ports are all configured as outputs.
The DB66DEV1 has a buzzer on port 34 (old port name Y4).
The project requires a SBC66 Netcruzer board with an USB Port (not USB Host), a DB66DEV1 development board, and a LCD2S type serial LCD display. The DB66DEV1 is plugged into the daughter board connector of the SBC66 board, and the LCD2S is plugged into the red Micro Match connector on the SBC66 board.
This project is located in the "src/demos/db66dev1/db66dev1_lcd2s" 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 A common error is "The system cannot find the path specified". This generally means you don't have the required XC16 compiler version installed. Go to "Project Properties", and select your installed XC16 compiler in the "Project Configuration" section.
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-05-03, David H. (DH):