Part Number: MSP432P401R
Hi All,
I have been trying to figure out why my ADC14 application is so flaky. Sometimes it seems to work and sometimes not. I would really like to go at full speed if possible to make measurements from several different analog inputs at as near to the same time as possible with the ADC14. Because of this I was trying to set the clock so it would go at that frequency. I have narrowed my problem down to the following code. When I change the CS_DCO_FREQUENCY_48 to CS_DCO_FREQUENCY_24 it works wonderfully, but when I don't, single stepping along, it goes picking daises as soon as the MCLK is set at 48 MHz, and ends up at:
No source available for "0x9b28"
* This was modified by Rob Frohne ******************************************************************************/ #include <ti/devices/msp432p4xx/driverlib/driverlib.h> int main(void) { // Halting WDT WDT_A_holdTimer(); // Set to Vcore1 PCM_setCoreVoltageLevel(PCM_VCORE1); // Set to use DCDC PCM_setPowerState(PCM_AM_DCDC_VCORE1); // Initializes Clock System CS_setDCOCenteredFrequency(CS_DCO_FREQUENCY_48); CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); //CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_2 ); //CS_initClockSignal(CS_ACLK, CS_REFOCLK_SELECT, CS_CLOCK_DIVIDER_1); while(1) { } return 1; }
This is with a "Red Launchpad". Any ideas?
Thanks,
Rob