SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519
The ADC peripheral clock (ADCCLK) is provided by the Section 2.4 and is used for the sampling clock (SAMPCLK). SYSOSC , HFCLK and ULPCLK are the available clock sources available for ADCCLK, which can support up to 48Mhz,. 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 and simultaneous sampling. Using the HFCLK as the clock source for ADCCLK is useful for when a very accurate, low-jitter, sampling period is needed. The ADC clock source can be selected by programming the SAMPCLK bits in the CLKCFG register. The conversion clock is sourced from a dedicated 80MHz local oscillator which enables high speed 12-bit conversions up to 4Msps.
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 12.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. The ADC uses the CLKFREQ.FRANGE value and the resolution mode, configured by CTL2.RES bits, to determine how many ADCCLK clock cycles a conversion will take before signaling the End of Conversion (EOC). See Table 12-2 below for more details on how to properly configure the CLKFREQ register and how that impacts the EOC signal generation.
CLKFREQ.FRANGE Values | ADCCLK Frequency Range (MHz) | Conversion Duration (Clock cycles) |
||
---|---|---|---|---|
12-bit | 10-bit | 8-bit | ||
0 | >1 to 4 | 1 | 1 | 1 |
1 | >4 to 8 | 2 | 2 | 1 |
2 | >8 to 16 | 3 | 3 | 2 |
3 | >16 to 20 | 4 | 4 | 3 |
4 | >20 to 24 | 5 | 4 | 3 |
5 | >24 to 32 | 6 | 6 | 4 |
6 | >32 to 40 | 8 | 7 | 5 |
7 | >40 to 48 | 9 | 8 | 6 |