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

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
SPI related functions
int SPI_Init(void);
void SPI_Write(unsigned char Data8);
unsigned char SPI_Read(unsigned char *Success);
unsigned char SPI_WriteRead(unsigned char Data8);
SPI command function to communicate with Propeller
long SPI_Prop_Send_Cmd(int cmd, int data, int status);
int SPI_Prop_Print_String(int device, char *string);
19.5 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Parameters:
Return:
Description:
Example(s):
#include "CHAM_PIC_SYSTEM_V010.h"
// Include Cham TWI/SPI driver
#include "CHAM_PIC_I2C_SPI_DRV_V010.h"
int main (void)
{
}
_________________________________________________________________________________________________
Function Prototype:
Parameters:
Return:
// Always call SYS_ConfigureClock first after main() begins
SYS_ConfigureClock(MAX_FCY_RATE);
// Initialize the TWI/i2c interface at 100KHz
I2C_Init(100000);
// continue program below…
void I2C_Init(unsigned long ClockHz);
void I2C_WaitTillIdle();
The example shows a simple usage scenario.
ClockHz
I2C_Init(…) initializes the I
None.
[in] The desired I
None.
None.
2
C clock rate in Hz.
2
C peripheral hardware on the PIC24 with the specified clock rate.
// Configure clock for max
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
Initializes the primary SPI unit (connected to Propeller).
Writes a byte to the SPI interface.
Reads a byte from the SPI interface.
Writes and reads a byte to/from the SPI interface.
Sends a 3-byte command packet to Propeller.
Legacy function, use terminal NTSC/VGA driver to print
strings on the display.
164

Related parts for Chameleon-PIC