Tool/software: TI-RTOS
Hi,
I'm trying to optimize current consumption of my application, and I doubt my LAUNCHXL-CC1310 is not entering standby mode. Even though my sleep() calls are for multiple seconds. Current consumed is around 3mA.
I ran pinStandby application without any modification, even that too is showing around 3mA current consumption when LEDs are off.
I'm measuring current using a series resistor of 4Ohms, as well with 18Ohms and an oscilloscope. Can this measuring method be so wrong??
Code is given below. All I'm using is EasyLink driver and GPIOs for input as well as output.
int main(void)
{
Semaphore_Params semParams;
/* Call driver init functions. */
Board_initGeneral();
#ifdef DEBUG
UART_init();
#endif
/* Open LED pins */
pinHandle = PIN_open(&pinState, pinTable);
if(!pinHandle) {
System_abort("Error initializing board LED pins\n");
}
/* Construct a Semaphore object to be use as a resource lock, inital count 1 */
Semaphore_Params_init(&semParams);
Semaphore_construct(&uartSemStruct, 1, &semParams);
/* Obtain instance handle */
uartSemHandle = Semaphore_handle(&uartSemStruct);
txTask_init(pinHandle);
/* Start BIOS */
BIOS_start();
return (0);
}
static void rfEasyLinkTxFnx(UArg arg0, UArg arg1)
{
uint32_t result;
// enable battery monitor enable
AONBatMonEnable();
//radio init
ret = EasyLink_init(EasyLink_Phy_625bpsLrm);
ret = EasyLink_setFrequency(867000000);
ret = EasyLink_enableRxAddrFilter((uint8_t *) (&addrFilter), 4, 1);
#ifdef DEBUG
log_init();
#endif
crypto_init();
while(1) {
batt_voltage = senseBatteryVoltage();
sensor_scan();
result = send_status();
Task_sleep(4 * 100000);
}
}
Any suggestions are welcome.