Other Parts Discussed in Thread: MSP-TS430RHB32A, , MSP430I2040
Tool/software: Code Composer Studio
I am using the MSP430i2041 installed in a MSP-TS430RHB32A - 32-pin Target Development Board, and i would like to use the DCO in external resistor mode.
I am working with the blink program for test purposes.
I have added the file "low_level_init.c" in the project file list of my CCS V7-3 workspace (see attached image)
i have inserted the line "CSCTL0 = DCOR;" into the "low_level_init.c" file as follows:
/* Calibrate DCO */
CSIRFCAL = *(TLV_address_for_parse + TLV_CAL_CSIRFCAL);
CSIRTCAL = *(TLV_address_for_parse + TLV_CAL_CSIRTCAL);
CSCTL0 = DCOR;
CSERFCAL = *(TLV_address_for_parse + TLV_CAL_CSERFCAL);
CSERTCAL = *(TLV_address_for_parse + TLV_CAL_CSERTCAL);
my two specific questions are:
1) is the above code snippet sufficient to program the MSP430 to use the external DCO resistor, or do i need additional code?
2) will the CCS compiler-linker build automatically create .obj and include my modified "low_level_init.c", or do i need to flag this in an option panel somewhere?