I am new to programming msp430. As I read through sample C code, I see lines similar to the ones below. Which book/manual/tutorial explains all these constants and variables and how to use them? How do you go about learning and understanding these? I have the Launchpad, and I watched the videos and read though the pdf file, but still no way I can come up with code like the one below on my own. What am I missing?
Sample C code:
...
_BIC_SR(OSCOFF); // Enable the LFXT1 crystal oscillator
UCSCTL6 &= (~XTS); // Select Low-frequency mode. XCAP bits define the capacitance at the XIN and XOUT pins.
UCSCTL6 |= (XCAP0); // Set XCAP0
UCSCTL6 |= (XCAP1); // Set XCAP1
...