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

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
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
located here:
Also, there are numerous SPI and I
A few of which I highly recommend you read specifically are:
These cover AVR specific SPI controls as well as general software implementations and some interesting examples of
SPI controls. But, if you just want a quick overview, read on…
NOTE
CHAM_AVR_TWI_SPI_DRV_V010.c
CHAM_AVR_TWI_SPI_DRV_V010.h
DVD-ROM:\ CHAM_AVR \ DOCS \ DATASHEETS \ ATMega48_88_168_328_doc8161.pdf
DVD-ROM:\ CHAM_AVR \ DOCS \ I2C \ *.*
DVD-ROM:\ CHAM_AVR \ DOCS \ SPI \ *.*
DVD-ROM:\ CHAM_AVR \ DOCS \ SPI \ avr_spi_doc2585.pdf
DVD-ROM:\ CHAM_AVR \ DOCS \ SPI \ avr_spi_master_doc1108.pdf
DVD-ROM:\ CHAM_AVR \ DOCS \ SPI \ SPI.pdf
DVD-ROM:\ CHAM_AVR \ DOCS \ I2C \ avr315_TWI_I2C.pdf
DVD-ROM:\ CHAM_AVR \ DOCS \ I2C \ twi_programming.htm
DVD-ROM:\ CHAM_AVR \ DOCS \ I2C \ I2C_bus.pdf
ARDUINO
The Atmel processors have mult-functional 2-wire hardware devices inside them. These
devices can support I
of calling the interfaces “I
it has something to do with licensing as well. And to avoid licensing the I
Atmel created generalized hardware that supports the I
specifically for it. In any event, TWI = I
TIP
2
C” module consist of a single C source file and a number of functions for initialization, transmission and
2
Arduino tool users you will use the “Import Library” command from the main menu to
include CHAM_AVR_TWI_SPI_DRV_V010, however all this really does is add the line
of code:
#include < CHAM_AVR_TWI_SPI_DRV_V010.h >
To your program, which you can just do yourself. The Arduino tool already knows where
to look for other C/C++ files (since we copied them into the appropriate directories
already), thus for the Arduino tool simply add the header include manually or you can let
the tool do it from the main menu <Sketch -> Import Library>. The Arduino MAKE file is
rather complex and knows how to add all the C/C++ files we dumped into the library
directory, so there is little to do with the Arduino tool when accessing these libraries
other than including the header in your program.
C Library Module Primer
2
C as well as other protocols under programmability. Thus, instead
2
2
C” Atmel calls them “TWI” for “Two Wire Interfaces”. I suspect
C documents located on the DVD here:
2
C, I
- Main C file source for “SPI and I
- Header file for “SPI and I
2
C = TWI for our purposes, but the registers
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon AVR 8-Bit”
2
C format, but isn’t designed
2
C” module.
2
2
C protocols and their features. For more
2
C interface
C” module.
2
C material in the AVR 328 data sheet
152

Related parts for Chameleon-AVR