i2c - slaa383 - Using the USCI I2C Slave

i2c - slaa383 - Using the USCI I2C Slave - Application...

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

View Full Document Right Arrow Icon
Application Report SLAA383–December 2007 Using the USCI I 2 C Slave Uli Kretzschmar ........................................................................................................ MSP430 Systems Christian Hernitscheck ................................................................................. MSP430 Application Europe ABSTRACT This document is an overview of the use of the I 2 C slave function set for MSP430 devices with the USCI module. The functions provided in the package can be used for MSP430 slave devices performing I 2 C communication and can handle both transmit and receive requests from I 2 C masters. Note: The USCI I 2 C slave 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 Initialization ................................................................................. 3 3 Compiling the USCI I 2 C Slave Code ............................................................. 4 4 Included Files ....................................................................................... 4 4.1 Function Description ...................................................................... 4 5 Code Size ............................................................................................ 5 6 References .......................................................................................... 5 All trademarks are the property of their respective owners. SLAA383–December 2007 1 Using the USCI I 2 C Slave Submit Documentation Feedback
Background image of page 1

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

View Full DocumentRight Arrow Icon
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 (receive) Data byte from slave More data bytes STOP Level controlled by master Level controlled by slave Introduction When using the MSP430 with peripheral modules, I 2 C is often used for communication. There are several MSP430 devices that have an USCI module, which is capable of this communication protocol. The USCI I 2 C slave function set offers some functions that make I 2 C communication easy. Instead of having to configure the different registers of the UCSI module, the user can use the included functions with well-defined parameters to start communication. These functions serve only for setting up the USCI module, and the user is free to include low-power mode functionality to allow the CPU to be turned off at the application level or to continue calculations during I 2 C communication. Transmitted and received bytes are managed using callback functions. The USCI I
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

i2c - slaa383 - Using the USCI I2C Slave - 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