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

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
I have highlighted the single call to the mouse read function. One thing to note is that the mouse read function takes a
pointer to an gid_event structure, this is a generic structure that can potentially be used for other input devices such as
game controllers, track balls etc.
Summary
31.1 Serial, FLASH, and Port I/O Device Demos
The next group of demos illustrate the Serial port, FLASH memory, and Propeller Port I/O functionality. As usual, the
demos try to do something graphical, so they always support NTSC output and some might support VGA output as well.
But, they all usually use nothing more than text terminal graphics, so added VGA support is a couple lines of code.
The examples typically consist of the primary source file for the demo as well as:
// motion clamping
if (event.x < -2)
else
if (event.x > 2)
if (event.y < -2)
else
if (event.y > 2)
// update position
x += event.x;
y -= event.y;
// draw on both screens
NTSC_SetXY( x, y );
NTSC_Term_Char( cursor );
VGA_SetXY( x, y/2 );
VGA_Term_Char( cursor );
// slow things down a bit
DELAY_MS( 5 );
} // end while
{
// update the cursor character
if (++cursor >= (32+144))
} // end if
event.x = -2;
event.y = -2;
cursor = 33;
event.x = 2;
event.y = 2;
This demo once again shows how easy it is to interface peripherals to
the Chameleon with the Propeller doing all the work. Something that
might be fun to do is add a bitmap NTSC or VGA driver to the master
Propeller driver and then create a true paint program that allows pixel
level painting, filling, etc. and create something like the famous DPaint
that we used to use to make games in the 80’s and 90’s!
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
224

Related parts for Chameleon-PIC