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

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):
// Include main system header
#include "CHAM_PIC_SYSTEM_V010.h"
// Include Cham UART driver
#include "Cham_PIC_UART_DRV_V010.h"
int main (void)
{
}
_____________________________________________________________________________________________
Function Prototype:
Parameters:
Return:
Description:
Example(s):
// Include main system header
#include "CHAM_PIC_SYSTEM_V010.h"
// Include Chameleon UART driver
#include "CHAM_PIC_UART_DRV_V010.h"
int main (void)
{
// Always call SYS_ConfigureClock first after main() begins
SYS_ConfigureClock(MAX_FCY_RATE);
// Initialize the uart driver at 115200 baud rate
UART_Init(115200);
// continue program below…
// Always call SYS_ConfigureClock first after main() begins
SYS_ConfigureClock(MAX_FCY_RATE);
void UART_Init(unsigned long BaudRate);
void UART_printf( const char *buff, ...);
BaudRate
UART_Init(…) initializes the UART driver using the specified baud rate. It also enables the receiver
interrupt.
This example shows a simple usage scenario.
buff
UART_printf(…) sends the given string (after processing all variable arguments) out of the previously
opened UART port.
This example shows a simple usage scenario. Notice how the string ends with “\r\n”. This is a carriage
return followed by a newline that is required in terminal programs such as HyperTerminal to get the cursor
to go to the beginning of the next line.
The desired baud rate. Most baud rates will work but this driver has been hand tuned for the
following frequencies: (9600, 19200, 38400, 57600, 115200).
None.
A string that can contain the normal C “printf” syntax along with variable arguments.
None.
// Configure clock for max
// Configure clock for max
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
148

Related parts for Chameleon-PIC