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

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
data16 = GFX_Read_Mem_Port16() ;
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
GFX_Write_Mem_Port16( 0x1234 ) ;
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
unsigned int src_ptr;
src_ptr = GFX_Get_Src_Ptr();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
unsigned int GFX_Write_Mem_Port16(unsigned int data);
unsigned int GFX_Get_Src_Ptr(void);
unsigned int GFX_Get_Dest_Ptr(void);
Write $1234 to the 16-bit WORD of memory currently pointed to by the source memory pointer.
Retrieve the source pointer.
Retrieve the destination pointer.
GFX_Write_Mem_Port16() writes a 16-bit value to prop_memory[ source_ptr ] = data, note source
pointer is always used for memory port operations (read or write). In the Propeller driver source_ptr is
the variable tile_src_addr_parm and is set using GFX_Set_Src_Ptr(unsigned int src_ptr) defined
below. The idea of this function is that it provides a simple mechanism to access the Propeller’s RAM.
This function also updates the source pointer automatically anticipating another read or write. The actual
code looks like:
tile_src_addr_parm += tile_mem_autoinc_parm
Thus, the variable tile_mem_autoinc_parm is used as the memory increment stride each read/write
operation. This comes in handy and reduces address updates when you access continuous memory.
There is of course a function to change tile_mem_autoinc_parm.
Finally, the function always returns 1.
GFX_Get_Src_Ptr() retrieves the 16-bit source pointer in the tile GPU for memory transfer and fill
operations. This address is absolute in the Propeller’s main RAM memory. Returns the pointer.
GFX_Get_Dest_Ptr() retrieves the 16-bit destination pointer in the tile GPU for memory transfer and fill
operations. This address is absolute in the Propeller’s main RAM memory. Returns the pointer.
' update src pointer based on auto increment value
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
192

Related parts for Chameleon-PIC