Chameleon-AVR Nurve Networks, Chameleon-AVR Datasheet - Page 187

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

Chameleon-AVR

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

Specifications of Chameleon-AVR

Processor To Be Evaluated
AVR 328P
Data Bus Width
8 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
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
int GFX_GPU_Copy_Mem8(unsigned int dest_ptr, unsigned int src_ptr, unsigned int num_bytes);
unsigned int GFX_Read_Palette_Ptr(void);
unsigned int GFX_Write_Palette_Ptr(unsigned int palette_ptr);
Read the palette pointer.
space in BYTE side chunks, or in other words in the Prop's local memory of 32K, you can use this to
overwrite SPIN code, so watch out! The parameters are the destination address to copy to dest_ptr, the
source address to copy from src_ptr, and finally, the number of bytes num_bytes to copy. Typically, you
will use this function to copy tile maps, scroll, page flip, perform various animations, etc. Returns 1.
Assuming that the current tile map is 32x24 physically and virtually, and there are two tile maps, one
located at $1000 and the other at $2000, copy the later to the former.
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.
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_GPU_Copy_Mem8(…) copies a number of bytes from source to destination in the GPU memory
GFX_Read_Palette_Ptr() reads the 16-bit palette pointer that points to the set of palettes referred to by
GFX_Write_Palette_Ptr(…) writes the 16-bit palette pointer palette_ptr that points to the set of palettes
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon AVR 8-Bit”
187

Related parts for Chameleon-AVR