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.

CC1310内部电压读取用哪个函数或者有什么方法?

Other Parts Discussed in Thread: CC1310

想读CC1310  LaunchPad的内部电压,用什么方法,有什么函数可以用么?

  • 可以读取下面三个内部信号。

    可以参考SDK中的adcbufcontinuous和adcsinglechannel例程,按你的需求调整一下ADC channel就可以了。

    * # Supported Internal Signals #
    * Below is a table of internal signals that can be measured using the ADC.
    * Since we are not connecting to a DIO, there is no DIO to internal signal mapping. The DIO field in the channel lookup table should be marked PIN_UNASSIGNED.
    * This table can be used to create virtual channel entries in the ADCBufCC26XX_adcChannelLut table in the board file.
    *
    * | DIO | Internal Signal CompBInput |
    * |--------------------|-------------------------------|
    * | PIN_UNASSIGNED | ADC_COMPB_IN_DCOUPL |
    * | PIN_UNASSIGNED | ADC_COMPB_IN_VSS |
    * | PIN_UNASSIGNED | ADC_COMPB_IN_VDDS |

  • 一种用ADC,精度高点,参考ADC single channel例程

    http://dev.ti.com/tirex/#/?link=Software%2FSimpleLink%20CC13x0%20SDK%2FExamples%2FDevelopment%20Tools%2FCC1310%20LaunchPad%2FTI%20Drivers%2Fadcsinglechannel%2FTI-RTOS%2FCCS%20Compiler%2Fadcsinglechannel

    另外一种方法用Battery monitor,精度低,只有6位ADC

    #include <ti\devices\cc13x0\driverlib\aon_batmon.h>
    static uint8_t GetBatteryVoltage(void)
    {
         // Return the battery voltage loosing some precision to fit in 8 bits
         return (uint8_t)((AONBatMonBatteryVoltageGet()) >> 3);
    }
  • 你好,请问下,问题1:手册里面有一个12位ADC换算公式(4.3v),没有看到6位的换算公式,我们供电电压是3v,然后调用这个函数后怎么换算为电压值呢?

    问题2: 你说这个是6位的ADC为何我debug时候看到是106的值呢,这应该是超过6位ADC上限了吧?

    以上是我所问的问题,新手,望多多指教,谢谢