Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 223

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
allows you to draw with the mouse. The right mouse button changes the ASCII drawing character and the left mouse
button clears the screen. The program displays simultaneously on both the NTSC and VGA displays. Figure 30.2 shows
the demo in action.
Compiling and Running the MPLAB/TextPad Bootloader Version
Demo Version Description:
Main Source File:
Additional Files Required:
General Requirements:
Controls Required:
Technical Overview
This demo uses the Mouse_Read(...) API call to read the state of the mouse, it uses this to allow you to draw on the
NTSC/VGA screen with ASCII art characters. The main while() loop within the main() itself is shown below, this is where
all the action happens.
// main event loop
while(1)
{
// read the mouse event (if one)
Mouse_Read(&event);
// compute position
event.x = event.x / 10;
event.y = event.y / 10;
// left button hit? Clear screen?
if (event.buttons == 0X01)
// right button hit? update cursor character?
if (event.buttons == 0X02)
{
// clear the surface
NTSC_ClearScreen();
VGA_ClearScreen();
} // end if
CHAM_PIC_SYSTEM_V010.c|h
CHAM_PIC_I2C_SPI_DRV_V010.c|h
CHAM_PIC_NTSC_DRV_V010.c|h
CHAM_PIC_VGA_DRV_V010.c|h
CHAM_PIC_MOUSE_DRV_V010.h
Draws on the screen with the mouse using ASCII art.
CHAM_PIC_MOUSE_DEMO_01.C
Video ports connected to NTSC or VGA monitors.
PS/2 mouse plugged into Chameleon, draw ASCII art with the mouse. Left button to clear
the screen, right button to cycle thru different drawing characters.
Figure 30.2 – Mouse “ASCII Paint” demo in action.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
223

Related parts for Chameleon-PIC