引用: keven杨 发表于 2020-3-17 15:11
Hi jerry:
谢谢你的回复,因为硬件电路上我使用的是p1.2口控制tps,所以我使用的是函数: HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2 );来控制tps的工作或者旁路状态,我尝试过在读取电压值之前使用: HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2 ...
Before doing VDD measurement. You should:
1) disable PM IO port by:
HCI_EXT_MapPmInOutPortCmd(HCI_EXT_PM_IO_PORT_NONE, HCI_EXT_PM_IO_PORT_PIN2)
2) Set P1.2 to low by P1DIR |= 0x04;P1 |= 0x04
3) Check battery with battMeasure()
4) Set P1.2 to high
5) Enable PM IO port by:
HCI_EXT_MapPmInOutPortCmd(HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2)
Pleaes have a look on the doc "TI BLE HCI Vendor Specific HCI Guide.pdf" on details of the command "HCI_EXT_MapPmInOutPortCmd"
引用: keven杨 发表于 2020-3-17 15:11
Hi jerry:
谢谢你的回复,因为硬件电路上我使用的是p1.2口控制tps,所以我使用的是函数: HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2 );来控制tps的工作或者旁路状态,我尝试过在读取电压值之前使用: HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2 ...
Before doing VDD measurement. You should:
1) disable PM IO port by:
HCI_EXT_MapPmInOutPortCmd(HCI_EXT_PM_IO_PORT_NONE, HCI_EXT_PM_IO_PORT_PIN2)
2) Set P1.2 to low by P1DIR |= 0x04;P1 |= 0x04
3) Check battery with battMeasure()
4) Set P1.2 to high
5) Enable PM IO port by:
HCI_EXT_MapPmInOutPortCmd(HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2)
Pleaes have a look on the doc "TI BLE HCI Vendor Specific HCI Guide.pdf" on details of the command "HCI_EXT_MapPmInOutPortCmd"
举报