//******************************************************************************
// MSP430G2xx3 Demo - USCI_B0 I2C Slave TX single bytes to MSP430 Master
//
// Description: This demo connects two MSP430's via the I2C bus. The master
// reads from the slave. This is the slave code. The TX data begins at 0
// and is incremented each time it is sent. An incoming start condition
// is used as a trigger to increment the outgoing data. The master checks the
// data it receives for validity. If it is incorrect, it stops communicating
// and the P1.0 LED will stay on. The USCI_B0 TX interrupt is used to know
// when to TX.
// ACLK = n/a, MCLK = SMCLK = default DCO = ~1.2MHz
//
// /|\ /|\
// MSP430G2xx3 10k 10k MSP430G2xx3
// slave | | master
// ----------------- | | -----------------
// -|XIN P1.7/UCB0SDA|<-|---+->|P1.7/UCB0SDA XIN|-
// | | | | |
// -|XOUT | | | XOUT|-
// | P1.6/UCB0SCL|<-+----->|P1.6/UCB0SCL |
// | | | P1.0|--> LED
//
// D. Dang
// Texas Instruments Inc.
// February 2011
// Built with CCS Version 4.2.0 and IAR Embedded Workbench Version: 5.10
//******************************************************************************
#include "msp430g2553.h"