Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2592, BLE-STACK, , CC2650
Hi,
The related thread for this is here. I am using CC2640R2F-CC2592 EMK Reference Design Board. To get the max current given TXPower value I am using Energy Trace Probe. Here is the table below shared by TI CHS, which is set at ble_user_config.c
/*
const txPwrVal_t TxPowerTable[] =
{{ TX_POWER_10_2_DBM, GEN_TX_POWER_VAL( 0x0B, 3, 0x0C ) }, //output 10.2 dbm on CC2592
{ TX_POWER_12_4_DBM, GEN_TX_POWER_VAL( 0x0B, 1, 0x14 ) }, //output 12.4 dbm on CC2592
{ TX_POWER_15_1_DBM, GEN_TX_POWER_VAL( 0x0E, 1, 0x19 ) }, //output 15.1 dbm on CC2592
{ TX_POWER_17_5_DBM, GEN_TX_POWER_VAL( 0x12, 1, 0x1D ) }, //output 17.5 dbm on CC2592
{ TX_POWER_19_7_DBM, GEN_TX_POWER_VAL( 0x18, 1, 0x25 ) }, //output 19.7 dbm on CC2592
{ TX_POWER_21_3_DBM, GEN_TX_POWER_VAL( 0x21, 1, 0x31 ) }, //output 21.3 dbm on CC2592
{ TX_POWER_21_6_DBM, GEN_TX_POWER_VAL( 0x14, 0, 0x42 ) }, //output 21.6 dbm on CC2592
{ TX_POWER_22_1_DBM, GEN_TX_POWER_VAL( 0x18, 0, 0x4E ) }}; //output 22.1 dbm on CC2592
*/
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_15_DBM, GEN_TX_POWER_VAL( 0x0B, 3, 0x0C ) }, //output 10.2 dbm on CC2592
{ TX_POWER_MINUS_12_DBM, GEN_TX_POWER_VAL( 0x0B, 1, 0x14 ) }, //output 12.4 dbm on CC2592
{ TX_POWER_MINUS_9_DBM, GEN_TX_POWER_VAL( 0x0E, 1, 0x19 ) },//output 15.1 dbm on CC2592
{ TX_POWER_MINUS_6_DBM, GEN_TX_POWER_VAL( 0x12, 1, 0x1D ) },//output 17.5 dbm on CC2592
{ TX_POWER_MINUS_3_DBM, GEN_TX_POWER_VAL( 0x18, 1, 0x25 ) },//output 19.7 dbm on CC2592
{ TX_POWER_0_DBM, GEN_TX_POWER_VAL( 0x21, 1, 0x31 ) },//output 21.3 dbm on CC2592
{ TX_POWER_1_DBM, GEN_TX_POWER_VAL( 0x14, 0, 0x42 ) },//output 21.6 dbm on CC2592
{ TX_POWER_2_DBM, GEN_TX_POWER_VAL( 0x18, 0, 0x4E ) }}; //output 22.1 dbm on CC2592
#endif
here is my ble_user_config.h
#define TX_POWER_5_DBM 5 #define TX_POWER_4_DBM 4 #define TX_POWER_3_DBM 3 #define TX_POWER_2_DBM 2 #define TX_POWER_1_DBM 1 #define TX_POWER_0_DBM 0 #define TX_POWER_MINUS_3_DBM -3 #define TX_POWER_MINUS_6_DBM -6 #define TX_POWER_MINUS_9_DBM -9 #define TX_POWER_MINUS_12_DBM -12 #define TX_POWER_MINUS_15_DBM -15 #define TX_POWER_MINUS_18_DBM -18 #define TX_POWER_MINUS_21_DBM -21
Here are my current measurement results using Energy Trace.
TXPower = 10.2. dBM Beacon Interval = 100 ms:
Max Current = 169.1807 mA
Battery Life = 34.4 days
TXPower = 22.1 dBM Beacon Interval = 100 ms:
Max Current = 81.5864 mA
Battery Life = 51.2 days
As you can see from the results above the output is reversed. If I set the TXPower to 22.1 dBM the current should be 160 - 180 mA. How do I set the TxPowerTable so I will get the correct output?
-kel







