SLAU847D October 2022 – May 2024 MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
The ADC peripheral clock (ADCCLK) is provided by the Section 2.4 and is used for both sampling and conversion. SYSOSC , HFCLK and ULPCLK are the available clock sources available for ADCCLK, which can support up to 32Mhz. Refer to the device-specific data sheet for supported ADCCLK frequencies. Using the ULPCLK, which is the bus clock for all peripherals, is very useful for deterministic start of sampling. The ADC clock source can be selected by programming the SAMPCLK bits in the CLKCFG register.
SYSOSC needs to be active for the ADC to operate properly. If SYSOSC is not running and the ADC is triggered, the ADC will automatically request SYSCTL to enable and set SYSOSC to base frequency during the conversion. If SYSOSC is already enabled, it will remain the same frequency. The only exception to this is in STOP1 operating mode where SYSOSC will go to base frequency when the ADC is triggered.
In order to provide a way to ensure predictable sample rate operation between power modes, the CCONRUN and CCONSTOP bits can be set to signal the ADC that it can expect that the SYSOSC will already be ON when the device is in RUN and STOP modes respectively. When these bits are set, the ADC will not wait for an ACK from SYSCTL to make sure SYSOSC is running before starting sampling. This feature gives users the flexibility to save power in applications where deterministic sample timing is not a requirement. Refer to Section 14.2.6 for examples on how to properly use the CCONRUN and CCONSTOP control bits.
The user must configure the FRANGE bits in the CLKFREQ register to the appropriate setting based on the expected ADCCLK frequency. See the following table for more details on how to properly configure the CLKFREQ register.
CLKFREQ.FRANGE Values | ADCCLK Frequency Range (MHz) |
---|---|
0 | >1 to 4 |
1 | >4 to 8 |
2 | >8 to 16 |
3 | >16 to 20 |
4 | >20 to 24 |
5 | >24 to 32 |
When the internal voltage reference is used for ADC operation, the conversion clock (CONVCLK) frequency is not to exceed 4MHz. This requirement is satisfied using clock dividers that are applied on ADCCLK based on CLKFREQ. When CLKFREQ.FRANGE is set to a value from 0 to 5 and the internal voltage reference is not used, the ADCCLK is used directly as CONVCLK. When CLKFREQ.FRANGE is set to 6 or 7 and the internal voltage reference is not used, the ADCCLK is divided by 2 and then used as CONVCLK. The conversion clock generation from ADCCLK for various CLKFREQ.FRANGE values and reference selections are depicted below.