This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5529: Use F5529 instead of F5969 as I2c master

Part Number: MSP430F5529
Hi, below is my program

I am trying to modify the I2c master program used for F5969 to be used for F5529, but the part about I2c setting in line 28, 34 and 89 keeps reporting undefined
Can you point out or fix the problem for me

Thanks and ragards
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <msp430.h>
#include <stdio.h>
#include <stdint.h>
volatile uint8_t TxCount, Control_Byte, i;
volatile uint8_t *PTxData; // Pointer to TX data
volatile uint8_t TxData[3], Msg1[]={1,2,3}, Msg2[]={4,5,6};
void main(void) {
WDTCTL = WDTPW | WDTHOLD; //Stop watchdog timer
PM5CTL0 &= ~LOCKLPM5; //Unlocks GPIO pins at power-up
P1DIR |= BIT0 + BIT2 + BIT3 + BIT4 + BIT5 ;
P3DIR |= BIT0 + BIT1 + BIT2 + BIT3 + BIT4 + BIT5 + BIT6 + BIT7;
P4SEL |= 0xFF; //Setup I2C
P1OUT = BIT1; // Pull-up resistor on P1.1
P1REN = BIT1; // Select pull-up mode for P1.1
P1IES = BIT1; // P1.1 Hi/Lo edge
P1IFG = 0; // Clear all interrupt flags
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX