Part Number: MSP430G2231
Tool/software: Code Composer Studio
Hello everyone
I need some help with coding the ADC10, this is for a program for a sun sensors so I wish to split different function into different file and i'm new to using CCS so i'm not sure what are the ways to call a function, i know i have to first add the header file for the function, but from that I have no idea how to actually call it. Another problem I need help understanding is input to the ADC, in order to read the analog signal with the ADC it must be set with all the parameter first, now do i do it in the ADC file or should it be done in the main file. My assumption is do it in the ADC file, does that mean I just have to call the ADC file first before everything and is defining array to store the ADC digital output required beforehand?
Thanks for your attention
Richard