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

MCU, MPU & DSP Development Tools AVR8 & PROPELLER DEV SYSTEM (SBC)

Chameleon-AVR

Manufacturer Part Number
Chameleon-AVR
Description
MCU, MPU & DSP Development Tools AVR8 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-AVR

Processor To Be Evaluated
AVR 328P
Data Bus Width
8 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
buffer functions then you might want to increase the buffers to 64, 128, 256 etc. But, for now 32/32 seems to work find in
all examples.
Next are all the global data structures and variables used by the API functions:
First we have a global baud rate, pointers to the circular buffers, and finally the buffers themselves. These are all declared
in the C file of course, these are simply the external references.
18.3 API Listing Reference
The API listing for the “UART and RS-232” module CHAM_UART_DRV_V010.c is listed in Table 18.2 categorized by
functionality.
Function Name
Initialization
int UART_Init(unsigned int baudrate);
int UART_Shutdown(void);
Transmission
int UART_putc(unsigned char ch);
void UART_Transmit(unsigned char ch);
void UART_Newline(void);
void UART_Print_String(char *string);
void UART_Print_Int(int num);
void Terminal_Clear_Screen(void);
Reception
int UART_getc(void);
int UART_Receive(int wait);
18.4 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Description:
int UART_Init(unsigned int baudrate);
UART_Init(…) initializes USART0 (the primary USART connected to the SER1 serial port). The
Table 18.2 – “UART and RS-232” module API functions listing.
Description
Initializes UART, ISRs, etc.
Shuts down the UART.
Transmits a character using interrupt buffer.
Transmits a single character immediately.
Sends an ASCII newline - CR/LF.
Prints a NULL terminated string.
Prints a signed integer.
Clears the VT100 terminal with ANSI code for clearscreen.
Receives a character thru interrupt buffer.
Waits for incoming character in receive buffer directly
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon AVR 8-Bit”
148

Related parts for Chameleon-AVR