4 MPU6050 module VCC and GND for power supply:3-5v SCL and SDA for I2C communication with MSP430XCL and XDA to connect magnetic sensor
5 USCI I2C ModeFigure : I2C Bus Connection DiagramThe two pull up resistor is necessary for I2C mode to work properly
6 I2C data transferFigure : I2C Module Data TransferThe first byte after a START condition consists of a 7-bit slave address and the R/W bit. When R/W = 0, the master transmits data to a slave. When R/W = 1, the master receives data from a slave. The ACK bit is sent from the receiver after each byte on the 9th SCL clock.
9 USCI UART ModeIn asynchronous mode, the USCI_Ax modules connect the MSP430 to an external system via two external pins, UCAxRXD and UCAxTXD. UART mode is selected when the UCSYNC bit is cleared.In UART mode, the USCI transmits and receives characters at a bit rate asynchronous to another device. Timing for each character is based on the selected baud rate of the USCI. The transmit and receive functions use the same baud rate frequency.