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.

[参考译文] MSPM0G3107-Q1:ENC 清零、即使设置了 PWRDN

Guru**** 2394305 points
Other Parts Discussed in Thread: MSPM0G3507

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1506796/mspm0g3107-q1-enc-is-clear-even-pwrdn-is-set

器件型号:MSPM0G3107-Q1
Thread 中讨论的其他器件:MSPM0G3507

工具/软件:

我会再来的

因此、我使用了 具有 mspm0_sdk_2_04_00_06的 adc12_triggered_by_timer_event_LP_MSPM0G3507_nortos_ticlang 工程示例

但使用重复选项时、ADC 会进行连续采样(正常)

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/ADC_repeat_option

但如果没有重复选项、则只能使用第一个触发器

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/ADC_without_repeat_option

仅发生第一个事件

但即使我设置了 ADC12_CTL0_PWRDN_MANUAL、在数据表中、下面说仅通过软件关闭 ADC 电源。

但当我每次采样后设置 ENC 时, stange 但它的工作方式如我所期待的那样!

https://github.com/All-Circuits-Technologies/adc12_simultaneous_trigger_event_LP_MSPM0G3507_nortos_ticlang/tree/re-enable_ADC_after_each_convertion

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

    您好、Pierre:

    如果未处于重复模式、ADC 将需要在每次采样后设置使能转换位、这样这就是预期的行为。 电源模式 将调整功耗和启动时间(如果在自动模式下、ADC 需要3个 ULPCLK 周期来开始采样、这将增加一个过程所需的总时间)。  

    用户可以做的另一件事是将 ADC 设置为重复模式、但将触发器设置为需要另一个 ADC 触发器来移动到下一个转换寄存器。 当 MEMCTL[y].TRIG 设置为1时、需要另一个触发器才能进行下一次采样。

    MSPM0G TRM 中的第12.2.10节"转换模式"

    我还略微查看了您的代码、我确实看到您使用2个单独的事件进行同步采样。 最后4个事件通道15-12为1:2事件、因此可以有1个发布者和2个订阅者。 这样、您仅使用1个事件通道就可从同一事件触发两个 ADC。