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

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
// headers and globals go here…
int main (void)
{
}
19.0 SPI and I
The “SPI and I
reception. The SPI module is one of the most important in the system since all communications with the Propeller chip are
performed via the SPI hardware. The API consists of the following files listed below:
Before we discuss the module and functionality, let’s briefly review both SPI and I
detailed descriptions and tutorials on both protocols, I suggest reading the SPI and I
and reference manual located here:
Also, there are numerous SPI and I
A few of which I highly recommend you read specifically are:
unsigned char ReadValue;
unsigned char GuessNumber = rand()%10;
// initialization code goes here…
UART_Init(115200);
// Init vt100 emulation
UART_vt100Init();
// Clear screen
UART_vt100ClearScreen();
UART_vt100SetCursor(0,0);
UART_puts(“Guess a number between 0 and 9: ”);
While(1)
{
} // end while
Readvalue = UART_BlockRead();
UART_Newline();
if(GuessNumber == ReadValue)
{
}
else
{
}
CHAM_PIC_I2C_SPI_DRV_V010.c
CHAM_PIC_I2C_SPI_DRV_V010.h
DVD-ROM:\ CHAM_PIC \ DOCS \ DATASHEETS \ PIC24HJXXXXGPX06_08_10.pdf
DVD-ROM:\ CHAM_PIC \ DOCS \ PIC24_REF_MANUAL \ Section18-SPI.pdf
DVD-ROM:\ CHAM_PIC \ DOCS \ PIC24_REF_MANUAL \ Section19-I2C.pdf
DVD-ROM:\ CHAM_PIC \ DOCS \ I2C \ *.*
DVD-ROM:\ CHAM_PIC \ DOCS \ SPI \ *.*
DVD-ROM:\ CHAM_PIC \ DOCS \ I2C \ Using_C30_compiler_to_interface_serial_eeproms_AN1100.pdf
DVD-ROM:\ CHAM_PIC \ DOCS \ I2C \ basic_serial_i2c_eeprom_operation_00536.pdf
UART_vt100SetAttr(VT100_REVERSE);
UART_puts(“Correct! Press a key to try again.”);
UART_vt100SetAttr(VT100_REVERSE_OFF);
// Wait here
UART_BlockRead();
GuessNumber = rand()%10;
UART_vt100ClearScreen();
UART_vt100SetCursor(0,0);
UART_puts(“Guess a number between 0 and 9: ”);
UART_puts(“Wrong, try again\r\n”);
2
C” module consist of a single C source file and a number of functions for initialization, transmission and
2
C Library Module Primer
2
C documents located on the DVD here:
- Main C file source for “SPI and I
- Header file for “SPI and I
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
2
C” module.
2
C protocols and their features. For more
2
C” module.
2
C material in the PIC24 data sheet
155

Related parts for Chameleon-PIC