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.

[参考译文] CCS/MSP432P401R:MSP432 ADC14

Guru**** 2543090 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/588682/ccs-msp432p401r-msp432-adc14

器件型号:MSP432P401R

工具/软件:Code Composer Studio

我们是否有任何用于将 ADC14 (在 MSP432中)设置为"脉冲采样模式"的示例代码?  SLAU356D (MSP432P4xx 系列、技术参考手册)的667页介绍了该模式。

谢谢!

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

    您不清楚要使用哪个源、而是"adc14_single_conversion _repeer_timera_source"  
    示例将 ADC 配置为使用 TimerA 作为触发器、该触发器作为脉冲采样运行。  此代码可用  
    从 位于 dev.ti.com 的 Resource Explorer 中的以下路径:

    SimpleLink MSP432 SDK ->示例->开发工具-> MSP-EXP432P401R -> Driverlib  

    下面显示了代码片段以供参考:

    /*
    *配置 ADC 内存、单通道重复、A0
    *
    MAP_ADC14_configureSingleSampleMode (ADC_MEM0、TRUE);

    /*
    *配置 ADC 内存、基准和单端转换
    * A0转到 mem0、AVcc 是基准、转换是基准
    *单端
    *
    MAP_ADC14_configureConversionMemory (ADC_MEM0、ADC_VREFPS_AVCC_VREFNEG_VSS、
    ADC_INPUT_A0、false);
    /*
    *将样本触发器配置为来自 Timer_A0 CCR1和
    *上升沿,缺省采样代码被扩展(SHP=0)
    *
    MAP_ADC14_setSampleHoldTrigger (ADC_TRIGGER_SOURCE1、false);

    /*