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

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
GFX_GPU_Copy_Mem8( 0x1000, 0x2000, 32*24*2 );
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
unsigned int palette_ptr_prop;
palette_ptr_prop = GFX_Read_Palette_Ptr();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
GFX_Write_Paltte_Ptr( GFX_Read_Palette_Ptr() + 4 );
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
unsigned int GFX_Read_Palette_Ptr(void);
unsigned int GFX_Write_Palette_Ptr(unsigned int palette_ptr);
unsigned int GFX_Read_Tilemap_Ptr(void);
Read the palette pointer.
GFX_Read_Palette_Ptr() reads the 16-bit palette pointer that points to the set of palettes referred to by
the palette index in each tile entry. This pointer is of course relative to the Propeller’s 32K memory space
and an absolute address. Each palette entry is a single 32-bit long that represents 4 colors in the format:
[color 3 | color 2 | color 1 | color 0] that are represented by the bitmaps as each 2-bit pair indexing as
color 0,1,2,3. Returns the 16-bit pointer value/address.
GFX_Write_Palette_Ptr(…) writes the 16-bit palette pointer palette_ptr that points to the set of palettes
referred to by the palette index in each tile entry each palette entry is a single 32-bit long that represents
4 colors [color 3 | color 2 | color 1 | color 0] that are represented by the bitmaps as each 2-bit pair
indexing as color 0,1,2,3. When this operation is performed, the palettes pointed to must be valid colors,
otherwise sync issues could occur since the color words can represent both color and sync. So make
sure that when you do alter the palette pointer you have built up value palette entries and that all potential
palette indices in your tile map are represented by a palette. Returns 1.
Read the palette pointer and then shift it by 4-bytes, in essence by a single palette of 4 colors down the
list.
GFX_Read_Tilemap_Ptr() reads the 16-bit tilemap pointer that points to the current tile map data
displayed. Each tile map entry is 2 bytes [palette index | character index], and the current tile map
width decides the pitch per row. The tile map pointer is of course relative to the Propeller’s 32K memory
space and an absolute address. Returns the 16-bit pointer value/address.
Read the tile map pointer.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
188

Related parts for Chameleon-PIC