Tool/software: Code Composer Studio
The sampling frequency measurement is limited to 1 MHz
I want to raise the sampling frequency to 2 MHz
I tried the command
ADCClockConfigSet(ADC0_BASE, ADC_CLOCK_SRC_PLL | ADC_CLOCK_RATE_FULL, 1);
But I got an error that the compiler does not recognize the function
I checked the ADC.C file and there is no such function
I’m using SW-DK-TM4C129X-2.0.1.11577.exe
It appears in the user manual but not ADC.C !!!
I try to implement it by
GetSysCtlClockFreq_var= SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480), SYS_CLK_FREQ);
HWREG(ADC0_BASE + ADC_O_PC) |= 0x7;//Full conversion rate
HWREG(ADC0_BASE + ADC_O_CC) =1;
Bat the sampling frequency still limited to 1 MHz
Thanks
Haim