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.

关于MSP430G2332的程序(ADC10MEM)的问题

Other Parts Discussed in Thread: MSP430G2332

请教各位大神。。。我查看了关于这个芯片的示例程序,在MSP430G2332示例程序的msp430g2x32_adc10_01和msp430g2x32_adc10_02中 分别对应的是ADC10MEM < 0x1FF和ADC10MEM < 0x88。   这个2个程序代码中 ADC10MEM < 0x1FF对应的是是否小于0.5V   。ADC10MEM < 0x88对应的是是否小于0.2V。  请问这个是怎么计算的啊

  • Demo - ADC10, Sample A1, AVcc Ref, Set P1.0 if > 0.5*AVcc

    根据这个计算。

    说明了,参考电压是AVcc,门限设置为0.5倍的参考,

    因为一共是10BIT,01 1111 1111  刚好对应中间,你抛弃后面的8BIT,看前面的,只能是00 01 10 11 四种,而0.5倍就是第二个,所以是01,也就对应0x1FF