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.

[参考译文] MSP430Ware 驱动程序库示例 ADC12_a_ex1_avccRef.c -可能的拼写错误

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/676666/msp430ware-driver-lib-example-adc12_a_ex1_avccref-c---possible-typo

主题中讨论的其他器件:MSP430WARE

您好、TI、

我在 MSP430Ware、库、驱动程序库、MSP430F5xx_6xx 下查看了这个 MSP430Ware 驱动程序库示例(版本3.60.00.10)、 示例项目、ADC12_A、ADC12_A_ex1_avccRef。

在第74行的 ADC12_A_ex1_avccRef.c 中,它调用 GPIO_setPeripheralModuleFunctionOutputPin().... 但是,我认为这应该是 GPIO_setPeripheralModuleFunctionInputPin()。   

请确认。

谢谢、

Tim Gilmour

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

    您好!

    感谢您的详细博文。 在尝试重复问题等时、它非常有用

    我在'ADC12_a_ex1_avccRef.c'代码示例中看到了您的意思。 但是、深入了解'gpio.c'文件中的 GPIO_setPeripheralModuleFunctionOutputPin ()函数、我看到该函数正在修改端口/引脚寄存器的 DIR 和 SEL 控制位。

    根据 MSP430F551x/F552x 数据表中的表6-54、DIR 控制位对于 ADC 功能无关紧要、但 SEL 控制位也很重要。 GPIO_setAsPeripheralModuleFunctionOutputPin ()函数设置我们想要的 SEL 控制位。 DIR 控制位被忽略。

    使用 GPIO_setAssPeripheralModuleFunctionInputPin()函数对于用户来说会更加直观,因此我将了解我们是否可以更新该函数。 希望这种解释对您有所帮助!

    此致、

    James

    MSP 客户应用

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

    有趣!  谢谢!