TI论坛
直播中

甘璐妲

7年用户 210经验值
私信 关注

请问如何读取CC1310 LaunchPad的内部电压?用什么方法,有什么函数可以用么?

本帖最后由 一只耳朵怪 于 2018-6-6 15:52 编辑

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

回帖(2)

盛越熊

2018-6-6 03:02:24
可以读取下面三个内部信号。
可以参考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 |
举报

何丽

2018-6-6 03:16:38
一种用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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分