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.
我在定制 SBC 中使用 MSP430F5638、很难找到一些常量的定义。
ADC12REF_0至_7在哪里定义? DS 或 UG 中没有任何内容、仅在 msp430f5638.h 中列为 ADC12选择参考0至7
ADC12SHT0_0至_15的问题相同
在四个内部 ADC 通道中、A8和 A9有什么作用? 仅找到 A10温度和 A11电压=(AVcc - AVss)/2的说明。
ADC12REF_0等在头文件中定义。 它们只是处理 ADC12SREF0-2的简写方法。 您只需写入 ADC12REF_7、而不是写入 ADC12SREF0|ADC12SREF1|ADC12SREF2。 您几乎可以在每个多位特殊功能寄存器字段中找到这种情况。
对于 A8和 A9、方框图显示了它们连接到 VeREF+和 VeREF-。 这当然是 ADC12INCH 寄存器描述的内容。
它不在用户指南中。 从标题中:
#define ADC12SREF_0 (0x0000) /* ADC12 Select Reference 0 */ #define ADC12SREF_1 (0x0010) /* ADC12 Select Reference 1 */ #define ADC12SREF_2 (0x0020) /* ADC12 Select Reference 2 */ #define ADC12SREF_3 (0x0030) /* ADC12 Select Reference 3 */ #define ADC12SREF_4 (0x0040) /* ADC12 Select Reference 4 */ #define ADC12SREF_5 (0x0050) /* ADC12 Select Reference 5 */ #define ADC12SREF_6 (0x0060) /* ADC12 Select Reference 6 */ #define ADC12SREF_7 (0x0070) /* ADC12 Select Reference 7 */
当然有:
#define ADC12SREF0 (0x0010) /* ADC12 Select Reference Bit 0 */ #define ADC12SREF1 (0x0020) /* ADC12 Select Reference Bit 1 */ #define ADC12SREF2 (0x0040) /* ADC12 Select Reference Bit 2 */
这对我来说一直是显而易见的。
你(们)好
在 F5638中、VeREF 是外部电压基准、VREF 是内部电压基准
谢谢!