Where to find MSP430 & CC430 code examples?
MSP340 is a huge family with a few different non-code-compatible serial communication modules. You'll need to figure out which sub-family you're using and check the code examples page at TI for that device. The MSPWare package also has a lot of examples. 

Beyond that it's usually a good bet to start with the evaluation module pages for the chip you're looking at and look for example code there.