While setting up UCB1 for I2C master mode, I get an immediate UCBBUSY = 1 setting after clearing the UCSWRST bit. The SCL line (P5.4) is pulled up in hardware with a 4.7K resistor and I have checked the SCL line with a scope to verify it is @ 3.3V. Any other suggestions for why UCBBUSY is getting set?
Setup code is as follows:
I2C_B1_SCL_SEL_SET; // Set SCL pins to module select.
I2C_B1_SDA_SEL_SET; // Set SDA pin to module select.
UCB1CTL1 |= UCSWRST; // Enable SW reset
UCB1CTL0 = UCMST + UCMODE_3 + UCSYNC; // I2C Master, synchronous mode
UCB1CTL1 = UCSSEL_2 + UCSWRST; // Use SMCLK, keep SW reset
UCB1BR0 = 200; // fSCL = 20Mhz SMCLK/200 = ~100kHz
UCB1BR1 = 0x0;
UCB1CTL1 &= ~UCSWRST; // Clear SW reset, resume operation