{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

i2c - slaa382 - Using the USCI I2C Master

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

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

View Full Document Right Arrow Icon
Application Report SLAA382–December 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. SLAA382–December 2007 1 Using the USCI I 2 C Master Submit Documentation Feedback
Background image of page 1

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

View Full Document Right Arrow Icon