Hi,
I was trying to test i2c interface from one MSP430F2419 to another MSP430F2419, as a basic interface testing, i staerted using the sample code which was available in TI site. i took the code MSP430x261x_uscibo_i2c_07 for slave board and MSP430x261x_uscib0_i2c_06 for my master board. In MSP430x261x_uscibo_i2c_07. c file, i found Receiver interrupt is enabled, but the vector address was named as TX_Isr.. can any one clear me on this. In my actual setup i need to use port 5 i2c lines, so what all configuration i need to change other than UCB1, P5SEL and UC1IE, UCBIAB1RX_VECTOR..
#include "msp430x26x.h"
volatile unsigned char RXData;
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P3SEL |= 0x06; // Assign I2C pins to USCI_B0
UCB0CTL1 |= UCSWRST; // Enable SW reset
UCB0CTL0 = UCMODE_3 + UCSYNC; // I2C Slave, synchronous mode
UCB0I2COA = 0x48; // Own Address is 048h
UCB0CTL1 &= ~UCSWRST; // Clear SW reset, resume operation
IE2 |= UCB0RXIE; // Enable RX interrupt
while (1)
{
__bis_SR_register(CPUOFF + GIE); // Enter LPM0 w/ interrupts
__no_operation(); // Set breakpoint >>here<< and read
} // RXData
}
// USCI_B0 Data ISR
#pragma vector = USCIAB0TX_VECTOR
__interrupt void USCIAB0TX_ISR(void)
{
RXData = UCB0RXBUF; // Get RX data
__bic_SR_register_on_exit(CPUOFF); // Exit LPM0
}
#endif