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.

how to set Single-Ended or Differential mode in sofeware

Other Parts Discussed in Thread: CC2640

    Dear,all

     I encountered a few problems, hope you solve the problem are as follows:

    chip:cc2640 4*4

    mode: Differential mode

     First, the tx power set -21dbm in the init fuction,when the RTOS system running, after 15 seconds, set the transmission power to 5 DBM(4dbm or 3dbm), the set tx power API funtion response ok,but transmitted power can't change(RSSI and tx current are not change ),the other is ok(2dbm ~-21dbm). When i use cc2640 7*7 chip ,Setting tx power is ok after the RTOS system running,Can you tell me why?

    Second,0 dbm tx power,the tx current is 20ma,and tx continue time is long,why?

      third,how to into sleep mode?iOnly need to change the xPOWER_SAVING to POWER_SAVING?

     fourth,how to reset device after the rtos running.?

     fifth,wake-up and pre_processing time is long,it have 2ms . and the recharge current is reach 35ma

     Set 4xd:

  • Hello user,
    1)
    How do you set the TX power?
    You can only call HCI_EXT_SetTxPowerCmd when the device's state is Standby.
    2)
    How are you measuring the current? Have you checked all GPIO settings. Ther might be some leakage through one of your pins.
    3)
    Yes, by defining POWER_SAVING the device will automatically enter standby whenever possible.
    4)
    Read the following sections in the TRM:
    6.7.1.2 Software-initiated System Reset
    6.7.1.3 Warm Reset Converted to System Reset
    6.7.2 Warm Reset
    ....

    To do a full chip reset:: SysCtrlSystemReset() defined in driverlib/sys_ctrl.h.
  • thanks,Eirik V
    1、i use HCI_EXT_SetTxPowerCmd to set tx power when Gap state is GAPROLE_WAITING,only 5dbm 4dbm 3dbm can not change tx power ,the other is ok.how to know the system standby?
    2、yes.the pcb boom have question,so the tx current is big.but i have other problems,first,the recharge current is big,Current can reach 35 ma,
    sencond,the wakeup and pre_processing time is long in a advertising event,it may have 2ms.why?
  • Hello user,
    1) That should be the correct way. Are you checking RSSI levels on a receiver for verification?
    2) We can review your design/layout if desired. Your current measurement results are to high. Either the measurement method or board configuration can be the casue. For more details on power measurements see here:
    Measuring Bluetooth Smart Power Consumption
    www.ti.com/.../swra478.pdf
  • 1、yeah, i use two methods to verifing tx power, tx current and rssi,why 2~ -21dbm is ok?
    2、how to review your design or layout? how to send pcb to you?
  • 1) You need to define CC2650EM_4XD as there are different power settings for differential and single ended ( see txPowerTable array in bleUserConfig.c ).

    2) You can post schematic and Gerber files here or you can send me a friend request and send the files privately if you do not want to share on the forum. I will however respond on the forum.
  • 1 ) I can't find CC2650EM_4XD ,there are only CC2650EM_7ID\CC2650EM_5XD\CC2650EM_4XS in SRF06EB folder.So i copy CC2650EM_4XS to SRF06EB folder,and rename CC2650EM_4XD.Morever,i modify board.c file in SRF06EB folder as follow:

    #if defined(CC2650EM_7ID)
    #include "CC2650EM_7ID/Board.c"
    #elif defined(CC2650EM_5XD)
    #include "CC2650EM_5XD/Board.c"
    #elif defined(CC2650EM_4XS)
    #include "CC2650EM_4XS/Board.c"
    #elif defined(CC2650EM_4XD)
    #include "CC2650EM_4XD/Board.c"
    #else
    #error "Must define either 'CC2650EM_7ID', 'CC2650EM_5XD', 'CC2650EM_4XD', or 'CC2650EM_4XS'. Please set include path to point to appropriate CC2650EM device"
    #endif

    and define CC2650EM_4XD.But it still not change TX power.
  • Hello user,
    Look in "bleUserConfig.c" which is located in the app project under the ICallBLE group. Make sure the following table is used for your device:
    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 ) } };
  • 1、i use rsm 4*4 chip.if i want to use 5dbm tx power, Should I use4xd schematic design or 4xs schematic design or two design can be?

    2、My board use 4xs schematic design,then i define CC2650EM_4XD,but i can not set 5dbm.why?

    3、I want use 5dbm,what needs to be modified in addition to defining CC2650EM_4XD ?

  • See your other post as well
    "For a single ended output (like CC2650EM-4XS) the maximum output power is 2 dBm. For a differential output (like the CC2650EM-4XD) the max output power is 5 dBm. See more processors.wiki.ti.com/.../CC26xx_HW_training_RF_Frontends_and_Antennas.pdf"

    To get 5 dBm, you need a differential front-end config with a balun, with a single ended front-end config, the max output power is 2 dBm. To make your new design, you can copy our CC2650EM-4XS for every pin except the two RF pins and the RXTX pin. For the RF part you copy the design from either the 7ID or 5XD desgin, the only difference between these two designs are that the 5XD has external biasing and will give a 1dB better sensitivity. Both the 7ID and 5XD designs can deliver 5 dBm output power.
  • thanks. For firmware,What are the places need to modify?
  • If you have a single ended front-end configuration in HW, you will not get 5 dBm no matter what you do in FW, your FW must match the front-end configuration you have on your board. To change the front end configuration, this is described in many different e2e post for instant
    e2e.ti.com/.../1541700