器件型号: CC1352P7
您好:
是否可以使用诸如 CMD_RADIO_SETUP 之类的全局命令、该命令使用 16 位字段 txPower 来设置高功率 20dBm、也许可以通过激活某些标志来实现?
现在只能使用使用 32 位参数(类型为 RF_TXPower Table_Value) 的)的 RF_setTxPower 命令。
谢谢、
Alex
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.
器件型号: CC1352P7
您好:
是否可以使用诸如 CMD_RADIO_SETUP 之类的全局命令、该命令使用 16 位字段 txPower 来设置高功率 20dBm、也许可以通过激活某些标志来实现?
现在只能使用使用 32 位参数(类型为 RF_TXPower Table_Value) 的)的 RF_setTxPower 命令。
谢谢、
Alex
您好 Alex、
可以、您可以使用 CMD_RADIO_SETUP 来启用 20dBm 高功率 PA。 txPower 支持一个特殊值、即设置 txPower = 0xFFFF。
必须 在 pRegOverride 中包含一个 TX20_POWER_OVERRIDE 条目以指定实际 功率配置。
参考资料: https://www.ti.com/lit/ug/swcu192/swcu192.pdf#page=2024
另请查看 SmartRF Studio 7 如何生成这些值
// Overrides for CMD_PROP_RADIO_DIV_SETUP_PA
uint32_t pOverridesTx20[] =
{
// The TX Power element should always be the first in the list
TX20_POWER_OVERRIDE(0x001B8ED2),
// The ANADIV radio parameter based on the LO divider (0) and front-end (0) settings
(uint32_t)0x11C10703,
// override_phy_tx_pa_ramp_genfsk_hpa.xml
// Tx: Configure PA ramping, set wait time before turning off (0x1F ticks of 16/24 us = 20.3 us).
HW_REG_OVERRIDE(0x6028,0x001F),
// Set TXRX pin to 0 in RX/TX and high impedance in idle.
HW_REG_OVERRIDE(0x60A8,0x0001),
(uint32_t)0xFFFFFFFF
};
此致、
Daniel
您好 Alex、
是的、您是对的。 您可以从 SmartRF Studio 的 Code Export 中获取覆盖值。 例如、17dBm
uint32_t pOverridesTx20[] =
{
// The TX Power element should always be the first in the list
TX20_POWER_OVERRIDE(0x00048022),
// The ANADIV radio parameter based on the LO divider (0) and front-end (0) settings
(uint32_t)0x11C10703,
// override_phy_tx_pa_ramp_genfsk_hpa.xml
// Tx: Configure PA ramping, set wait time before turning off (0x1F ticks of 16/24 us = 20.3 us).
HW_REG_OVERRIDE(0x6028,0x001F),
// Set TXRX pin to 0 in RX/TX and high impedance in idle.
HW_REG_OVERRIDE(0x60A8,0x0001),
(uint32_t)0xFFFFFFFF
};
此致、
Daniel