This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP432E401Y:有关 ADC 时钟配置的问题(无法在120M 系统时钟下获取32M ADC 时钟以获取2M 采样率)

Guru**** 2539500 points
Other Parts Discussed in Thread: MSP432E401Y

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1183963/msp432e401y-questions-about-adc-clock-configuration-unable-to-get-32m-adc-clock-under-120m-system-clock-to-obtain-2m-sampling-rate

器件型号:MSP432E401Y

大家好、

当我使用 MSP432E401Y 的 ADC 模块时、我发现在设置相关时钟时、仅当 PLL 设置为320MHz 且主时钟设置为80MHz 时、ADC 才能达到2M 的采样率。 在以下代码中、我 通过一个5分频从320MHz PLL 生成 ADC 时钟。

我提出问题的原因似乎是 PLL 在将频率分频到 ADC 之前经历了2分频 、因此时钟仅为原始时钟的一半、 480MHz PLL 无法 通过7.5分频生成32M ADC 时钟。

 在整个代码中、我将 ADC0的 SSTSH0寄存器设置为0x0、尝试根据手册获取32M ADC 时钟。

g_ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
            SYSCTL_OSC_MAIN |
            SYSCTL_USE_PLL |
            SYSCTL_CFG_VCO_320), 80000000); 
            
            
ADCClockConfigSet(ADC0_BASE, ADC_CLOCK_SRC_PLL | ADC_CLOCK_RATE_FULL, 5);

此致、

凯瑟琳

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Katherine、

    我可以确认您的发现是准确的-只有在32MHz 下使用 PLL VCO 才能达到2MSPS 速率、因为 ADC 要求时钟频率为32MHz。

    使用480MHz PLL 无法达到2MSPS。

    此致、

    Ralph Jacobi