Hi,
On reply to several questions about the simplest MSP430 like the G2231 communicating with the HMC5883L , creating an easy to use magnetic sensor, here is the c code for the Code Composer 5:
The ASPD9.zip contains the code and a photo of the device connections
Good luck
A. Ofek