A while ago I bought an MSP430 Launchpad, because they are $4.30.
Where do I find information about the commands / ***sequences of commands*** that are used to program it. There doesn't seem to be a 'manual' for it anywhere. And the issue isn't limited to this board/chip - what do I need to look for?
Now, please dont misunderstand - I know how to program, set up the boards, read schematics, read the .h files, etc. but there MUST be a better way to learn how to program these things than deconstructing online tutorials made by random enthusiasts (beside which, how did THEY learn it in the first place).
Here is some example code
void ConfigureAdc(void)
{
/* Configure ADC Channel */
ADC10CTL1 = INCH_4 + ADC10DIV_0 + CONSEQ_3 + SHS_0;
ADC10CTL0 = SREF_0 + ADC10SHT_2 + MSC + ADC10ON + ADC10IE;
ADC10AE0 = BIT4 + BIT3 + BIT2 + BIT1 + BIT0;
ADC10DTC1 = ADC_CHANNELS;
}
Now, do you see what I mean? I can look up all these things individually in the header file, but where is the 'manual' that tells me that things have to be done *this way* or in *this order*. How did the guy who originally wrote this code come up with it, trial and error