i2c - slaa382 - Using the USCI I2C Master

i2c - slaa382 - Using the USCI I2C Master - Application...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Application Report SLAA382December 2007 Using the USCI I 2 C Master Uli Kretzschmar ........................................................................................................ MSP430 Systems Christian Hernitscheck ................................................................................. MSP430 Application Europe ABSTRACT This document is an overview of the use of the I 2 C master function set for MSP430 devices with the USCI module. These functions can be used by MSP430 master devices to ensure proper initialization of the USCI module and provide I 2 C transmit and receive functionality. A similar version with DMA support has also been included. The USCI I 2 C master function set only supports single-master transmitter/receiver mode using 7-bit device addressing. Note: The USCI I 2 C master package includes a demonstration application that can be used on any MSP430 2xx device with the USCI module. Contents 1 Introduction .......................................................................................... 2 2 Usage From C ...................................................................................... 3 2.1 Example With DMA ........................................................................ 3 2.2 Example Without DMA .................................................................... 4 3 Compiling the USCI I 2 C Master Code ........................................................... 5 4 Included Files ....................................................................................... 5 4.1 Function Description ...................................................................... 5 5 Examples of USCI I 2 C Master Usage ............................................................ 8 5.1 Receiving n Bytes ......................................................................... 8 5.2 Transmitting n Bytes ...................................................................... 8 5.3 Checking Presence of a Slave ........................................................... 9 6 Code Size ............................................................................................ 9 7 References .......................................................................................... 9 All trademarks are the property of their respective owners. SLAA382December 2007 1 Using the USCI I 2 C Master Submit Documentation Feedback www.ti.com 1 Introduction START Control byte containing slave address and direction bit (transmit) Data byte to slave More data bytes STOP Level controlled by master Level controlled by slave START Control byte containing slave address and direction bit (transmit) Data byte to slave More data bytes STOP Level controlled by master Level controlled by slave Introduction When using the MSP430 with peripherals, I 2 C is often used for communication. There are several MSP430 devices that have an incorporated USCI module, which is capable of this communication protocol....
View Full Document

Page1 / 10

i2c - slaa382 - Using the USCI I2C Master - Application...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online