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

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
}
_____________________________________________________________________________________________
Function Prototype:
Parameters:
Return:
Description:
Example(s):
UART_puts(“I’m Sorry Dave, I Can’t Do That.\r\n”);
_____________________________________________________________________________________________
Function Prototype:
Parameters:
Return:
Description:
Example(s):
unsigned char ReadBuf[5];
// Read the data in
int NumberRead = UART_read(ReadBuf,5);
// Display how much data we read
UART_printf(“We read in %d bytes\r\n”,NumberRead);
_____________________________________________________________________________________________
// Initialize the uart driver at 115200 baud rate
UART_Init(115200);
// Send the classic example “Hello World”
UART_printf(“Hello World!\r\n”);
void UART_puts( const char *buff);
int UART_read( unsigned char *Data, int Length);
buff
UART_puts(…) sends a null terminated string out of the UART. If you are sending a constant string out of
the UART, UART_puts(..) is less resource and computational demanding than the alternative
UART_printf(...).
This example shows a simple usage scenario.
Data
Length
Returns the actual amount of data read. This could be less than Length depending on the available data.
UART_read(…) attempts to read from the UART driver’s internal circular read buffer and stores the data
into the passed in Data buffer. This will read Length bytes if there is enough data available, otherwise it
returns the number of bytes actually read.
This example shows a simple usage scenario.
A null terminated string.
None.
A buffer to store data in. It must be as large or larger than Length.
The amount of data to read.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
149

Related parts for Chameleon-PIC