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

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
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 vertical scroll register to scroll an array of tiles (space invader characters) up and down. If we wanted
to we could scroll the image continuously by course scrolling after each smooth scroll thru the scanlines 0..7 of each
character. Below is an excerpt that shows the space invader rendering code and the smooth scrolling main loop:
NTSC_ClearScreen();
// basic white
NTSC_Color(0);
// draw a matrix of space invaders with extended characters
for (y = 0; y < 6; y++)
// enter infinite loop...
while(1)
{
for (x = 0; x < NUM_SPACE_INVADERS_PER_ROW; x++)
} // end for y
{
// set smooth scroll vertical position register 0..7
GFX_Set_VScroll( scroll_y );
// change scroll position
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
{
// position next invader
NTSC_SetXY(x*2 + SPACE_INVADERS_ORIGIN_X , y*2 + SPACE_INVADERS_ORIGIN_Y);
// draw next invader
NTSC_Term_Char( SPACE_INVADERS_CHAR_OFFSET + (y % 3) );
} // end for x
NTSC version smooth scrolls array of space invaders.
CHAM_PIC_NTSC_SMOOTH_SCROLL_DEMO_01.C
Video port connected to NTSC TV monitor.
None.
Figure 28.3 – NTSC smooth scrolling tilemap demo.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
211

Related parts for Chameleon-PIC