还有什么办法可以降低功耗,去进行串口数据收发吗?????
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.
http://processors.wiki.ti.com/index.php/Cc2640_Adding_a_UART_or_SPI_driver_to_a_Sample_Project
| Term (acronym) | Definition |
| Handshaking | A design paradigm in communication protocols where each transaction is preceded by an a request from the initiating processor and acknowledge from receiving processor (a handshake). |
| Master Ready (MRDY) | A GPIO pin whose logic level indicates the state of the master processor. MRDY is an active low (low true) signal. An MRDY event indicates that the master processor is ready to send or receive data. See NPI timing diagrams for more info |
| Slave Ready (SRDY) | A GPIO pin whose logic level indicates the state of the slave processor. SRDY is an active low (low true) signal. An SRDY event indicates that the slave processor is ready to send or receive data. |
| Transport Layer (TL) | An abstraction layer between the application and serial hardware (UART or SPI module within CC26xx) used for handling message framing and power management. |
| Network Processor Interface (NPI) | NPI is a serial communication protocol developed by TI. It is the foundation of our network processor project (SimpleNP), concepts and code are re-used from NPI to implement our TL. |
| Power Management (PM) | Refers to when the CC26xx device is allowed to enter into a low power sleep mode. |
| TI Real Time Operating System Drivers (TI RTOS drivers) | The TI RTOS provides software for communicating with the CC26xx hardware modules such as UART and SPI. This software in included in the TI RTOS release bundled with the BLE stack |
| BLE_STACK_INSTALL | Refers to the system path to the root folder of the BLE stack install for the CC26xx device, by default this is: C:\ti\simplelink |
| BLE_STACK_v1.4.1 | Refers to the system path to the root folder of the BLE stack install for the CC254x device, by default this is: C:\Texas Instruments\BLE-CC254x-1.4.1.43908 |
| signal | SmartRF06 pin | SmartRF05 pin |
| MRDY | RF1.10 | P18_14 |
| SRDY | RF1.12 | P18_7 |
| MISO | RF2.10 | P18_12 |
| MOSI | RF2.5 | P18_18 |
| CLK | RF2.6 | P18_16 |
| signal | SmartRF06 pin | SmartRF05 pin |
| MRDY | RF1.10 | P18_16 |
| SRDY | RF1.12 | P18_14 |
| Tx | P408.12 | P18_18 |
| Rx | P408.14 | P18_12 |
照下面的link做. 这个驱动考虑了低功耗.通过外部IO口控制穿裤偶是否进入低功耗.
static void NPITL_setPM(void)
{
if( npiPMSetConstraint )
{
return;
}
// set constraints for Standby and idle mode
Power_setConstraint(PowerCC26XX_SB_DISALLOW);
Power_setConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
npiPMSetConstraint = TRUE;
}
#endif // NPI_FLOW_CTRL = 1
#if (NPI_FLOW_CTRL == 1)
// -----------------------------------------------------------------------------
//! \brief This routine is used to release constraints on power manager
//!
//! \return void
// -----------------------------------------------------------------------------
static void NPITL_relPM(void)
{
if ( ! npiPMSetConstraint )
{
return;
}
// release constraints for Standby and idle mode
Power_releaseConstraint(PowerCC26XX_SB_DISALLOW);
Power_releaseConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
npiPMSetConstraint = FALSE;
}
#endif // NPI_FLOW_CTRL = 1