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

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
General Requirements:
Controls Required:
Technical Overview
The demo simply uses the NTSC GFX to animate the top and bottom overscan colors (this is only supported with the
default2 version of the driver and the NTSC system). Below is an excerpt of the code from the main while loop that
performs the animation.
// enter infinite loop...glowing the top and bottom overscan, tile engine functions required for this
while(1)
The code simply formats a Propeller compliant color and then calls the API function to change the top and bottom
overscan color, that’s it.
Summary
This demo shows how easy it is to use the advanced GFX tile engine API functions, in particular to animate the overscan
color on the NTSC display.
28.1.3 NTSC Smooth Scrolling Tilemap Demo
This demo illustrates the smooth scrolling feature of the default2 versions of the Propeller driver. The NTSC tile engine
supports course horizontal and vertical scrolling simply by changing the tile map base pointer. However, the engine also
supports pixel smooth scrolling in the vertical direction. This allows you to smoothly scroll the tile map any number of
rows you wish. First, you smooth scroll 0…7 pixels then you reset the smooth scroll register and course scroll and repeat.
To the user this will look like one continuous scrolling action. Figure 28.3 shows the demo in action.
{
// glow thru every color, every brightness
for (col = 0; col <= 15 ; col++)
} // end while
} // end for color
CHAM_PIC_SYSTEM_V010.c|h
CHAM_PIC_I2C_SPI_DRV_V010.c|h
CHAM_PIC_NTSC_DRV_V010.c|h
CHAM_PIC_GFX_DRV_V010.c|h
{
for (bright = 2; bright < 6; bright++)
{
// build up Propeller compatible color [chroma:4 | chroma bit:1 | luma:3]
color = (col << 4) | (0b00001000) | (bright);
// set top overscan
GFX_Set_Top_Overscan_Color( color & 0xFF );
// set bottom overscan
GFX_Set_Bottom_Overscan_Color( color
// slow things down a bit, so we can read the text!
DELAY_MS(100);
} // end for bright
Video port connected to NTSC TV monitor.
None.
& 0xFF );
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
210

Related parts for Chameleon-PIC