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.

[参考译文] MSP430F5529:再次 PxSEL ...

Guru**** 2419530 points
Other Parts Discussed in Thread: MSP430F5529, MSP-EXP430F5529LP

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1545479/msp430f5529-pxsel-again

器件型号:MSP430F5529
主题中讨论的其他器件: MSP-EXP430F5529LP

工具/软件:

您好:

我是 MSP430 MCU 新手、买了一个 Launchpad MSP-EXP430F5529LP。 在 MSP430F5529 的数据表中、我在表 3(终端功能)中看到了、例如:

通用数字 I/O
Comparator_B 输入 CB4
模拟输入 A4–ADC(在 F551x 器件上不可用)

我知道、该寄存器 PxSEL 在 GPIO 和另一个功能之间切换。 但如何在比较器和 ADC 之间进行选择呢?  在表 29 至 32(端口寄存器)中只有一个 PxSEL。 不像某些 MCU 那样是 PxSEL2。  MSP430x5xx 和 MSP430x6xx 系列用户指南也是如此。  

再见、Jürgen

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

    此处的相关项是数据表 (SLAS590P) 表 9-54。

    这表明通过设置 P6SEL.4=1 将 P6.4 设置为 A4。

    通过设置 P6SEL.4=0 和 CBCTL3:CBPD4 来选择 CB4 [参考用户指南 (SLAU208Q) 表 32-5]。