TI E2E 英文论坛海量技术问答的中文版全新上线,可点击相关论坛查看,或在站内搜索 “参考译文” 获取。

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.

CC2640R2F 4XS 封装 设置 5DB TX Power 问题

Other Parts Discussed in Thread: CC2640R2F, CC2650, CC1350STK, CC1350

Hi 大神们,请教个问题:

   我们板子上 CC2640R2F 的封装是 4XS 的,目前我软件改成 4XS 也可以开机了。

   现在我想把 TX Power 设置成 5DB,可是查看代码,CC2650EM_4XS 那段里没有 3/4/5 DB 的设置值。

    请问,4XS 的封装可以设置 3/4/5 DB 吗?对应的值是什么呢?

谢谢

   

#if defined( USE_FPGA )

// Differential Output (same as CC2650EM_7ID for now)

// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, GEN_TX_POWER_VAL( 0x07, 3, 0x0C ) },
{ TX_POWER_MINUS_18_DBM, GEN_TX_POWER_VAL( 0x09, 3, 0x0C ) },
{ TX_POWER_MINUS_15_DBM, GEN_TX_POWER_VAL( 0x0B, 3, 0x0C ) },
{ TX_POWER_MINUS_12_DBM, GEN_TX_POWER_VAL( 0x0B, 1, 0x14 ) },
{ TX_POWER_MINUS_9_DBM, GEN_TX_POWER_VAL( 0x0E, 1, 0x19 ) },
{ TX_POWER_MINUS_6_DBM, GEN_TX_POWER_VAL( 0x12, 1, 0x1D ) },
{ TX_POWER_MINUS_3_DBM, GEN_TX_POWER_VAL( 0x18, 1, 0x25 ) },
{ TX_POWER_0_DBM, GEN_TX_POWER_VAL( 0x21, 1, 0x31 ) },
{ TX_POWER_1_DBM, GEN_TX_POWER_VAL( 0x14, 0, 0x42 ) },
{ TX_POWER_2_DBM, GEN_TX_POWER_VAL( 0x18, 0, 0x4E ) },
{ TX_POWER_3_DBM, GEN_TX_POWER_VAL( 0x1C, 0, 0x5A ) },
{ TX_POWER_4_DBM, GEN_TX_POWER_VAL( 0x24, 0, 0x93 ) },
{ TX_POWER_5_DBM, GEN_TX_POWER_VAL( 0x30, 0, 0x93 ) } };

#elif defined( CC26XX )

#if defined( CC2650EM_7ID ) || defined( CC2650EM_5XD ) || defined( CC2650M5A )

// Differential Output

// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, GEN_TX_POWER_VAL( 0x07, 3, 0x0C ) },
{ TX_POWER_MINUS_18_DBM, GEN_TX_POWER_VAL( 0x09, 3, 0x0C ) },
{ TX_POWER_MINUS_15_DBM, GEN_TX_POWER_VAL( 0x0B, 3, 0x0C ) },
{ TX_POWER_MINUS_12_DBM, GEN_TX_POWER_VAL( 0x0B, 1, 0x14 ) },
{ TX_POWER_MINUS_9_DBM, GEN_TX_POWER_VAL( 0x0E, 1, 0x19 ) },
{ TX_POWER_MINUS_6_DBM, GEN_TX_POWER_VAL( 0x12, 1, 0x1D ) },
{ TX_POWER_MINUS_3_DBM, GEN_TX_POWER_VAL( 0x18, 1, 0x25 ) },
{ TX_POWER_0_DBM, GEN_TX_POWER_VAL( 0x21, 1, 0x31 ) },
{ TX_POWER_1_DBM, GEN_TX_POWER_VAL( 0x14, 0, 0x42 ) },
{ TX_POWER_2_DBM, GEN_TX_POWER_VAL( 0x18, 0, 0x4E ) },
{ TX_POWER_3_DBM, GEN_TX_POWER_VAL( 0x1C, 0, 0x5A ) },
{ TX_POWER_4_DBM, GEN_TX_POWER_VAL( 0x24, 0, 0x93 ) },
{ TX_POWER_5_DBM, GEN_TX_POWER_VAL( 0x30, 0, 0x93 ) } };

#elif defined( CC2650EM_4XS ) || defined( CC2650EM_4IS )

// Single-Ended Output

// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, GEN_TX_POWER_VAL( 0x07, 3, 0x0C ) },
{ TX_POWER_MINUS_18_DBM, GEN_TX_POWER_VAL( 0x09, 3, 0x10 ) },
{ TX_POWER_MINUS_15_DBM, GEN_TX_POWER_VAL( 0x0B, 3, 0x14 ) },
{ TX_POWER_MINUS_12_DBM, GEN_TX_POWER_VAL( 0x0E, 3, 0x14 ) },
{ TX_POWER_MINUS_9_DBM, GEN_TX_POWER_VAL( 0x0F, 1, 0x21 ) },
{ TX_POWER_MINUS_6_DBM, GEN_TX_POWER_VAL( 0x14, 1, 0x29 ) },
{ TX_POWER_MINUS_3_DBM, GEN_TX_POWER_VAL( 0x1C, 1, 0x35 ) },
{ TX_POWER_0_DBM, GEN_TX_POWER_VAL( 0x2C, 1, 0x56 ) },
{ TX_POWER_1_DBM, GEN_TX_POWER_VAL( 0x1F, 0, 0x6A ) },
{ TX_POWER_2_DBM, GEN_TX_POWER_VAL( 0x29, 0, 0x9C ) } };

#elif defined( CC2640R2EM_CXS )

// Single-Ended Output (WCSP)

// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, GEN_TX_POWER_VAL( 0xC3, 3, 0x0C ) },
{ TX_POWER_MINUS_18_DBM, GEN_TX_POWER_VAL( 0xC5, 3, 0x10 ) },
{ TX_POWER_MINUS_15_DBM, GEN_TX_POWER_VAL( 0xC7, 3, 0x10 ) },
{ TX_POWER_MINUS_12_DBM, GEN_TX_POWER_VAL( 0xC9, 3, 0x10 ) },
{ TX_POWER_MINUS_9_DBM, GEN_TX_POWER_VAL( 0xCC, 3, 0x19 ) },
{ TX_POWER_MINUS_6_DBM, GEN_TX_POWER_VAL( 0x4E, 1, 0x25 ) },
{ TX_POWER_MINUS_3_DBM, GEN_TX_POWER_VAL( 0x54, 1, 0x2D ) },
{ TX_POWER_0_DBM, GEN_TX_POWER_VAL( 0x10, 0, 0x46 ) },
{ TX_POWER_1_DBM, GEN_TX_POWER_VAL( 0x16, 0, 0x62 ) },
{ TX_POWER_2_DBM, GEN_TX_POWER_VAL( 0x25, 0, 0xBC ) } };


#else // unknown board package

#error "***BLE USER CONFIG BUILD ERROR*** Unknown CC2650 board type!"

#endif // <board>

#elif defined( CC13XX )

#if defined( CC1350LP_7XD ) || defined( CC2650EM_7ID )
// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, 0x0DC8 },
{ TX_POWER_MINUS_18_DBM, 0x0DCB },
{ TX_POWER_MINUS_15_DBM, 0x15CE },
{ TX_POWER_MINUS_12_DBM, 0x19D4 },
{ TX_POWER_MINUS_9_DBM, 0x1DDA },
{ TX_POWER_MINUS_6_DBM, 0x25E3 },
{ TX_POWER_MINUS_3_DBM, 0x2DEF },
{ TX_POWER_0_DBM, 0x5B29 },
{ TX_POWER_1_DBM, 0x6321 },
{ TX_POWER_2_DBM, 0x6F26 },
{ TX_POWER_3_DBM, 0x7F2C },
{ TX_POWER_4_DBM, 0x7734 },
{ TX_POWER_5_DBM, 0x5F3C } };

#elif defined ( CC1350STK_7XS)

// Single-Ended Output. NB! Copied from CC1350LP_7XD, may change

// Tx Power Values (Pout, IB, GC, TC)
const txPwrVal_t TxPowerTable[] =
{ { TX_POWER_MINUS_21_DBM, 0x0DC8 },
{ TX_POWER_MINUS_18_DBM, 0x0DCB },
{ TX_POWER_MINUS_15_DBM, 0x15CE },
{ TX_POWER_MINUS_12_DBM, 0x19D4 },
{ TX_POWER_MINUS_9_DBM, 0x1DDA },
{ TX_POWER_MINUS_6_DBM, 0x25E3 },
{ TX_POWER_MINUS_3_DBM, 0x2DEF },
{ TX_POWER_0_DBM, 0x5B29 },
{ TX_POWER_1_DBM, 0x6321 },
{ TX_POWER_2_DBM, 0x6F26 },
{ TX_POWER_3_DBM, 0x7F2C },
{ TX_POWER_4_DBM, 0x7734 },
{ TX_POWER_5_DBM, 0x5F3C } };
#else // unknown board package

#error "***BLE USER CONFIG BUILD ERROR*** Unknown CC1350 board type!"

#endif // <board>

#else // unknown platform

#error "ERROR: Unknown platform!"

#endif // <board>