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.

programming the MCU and 8520 for host controlled 8520 with codec

Other Parts Discussed in Thread: CC8520, CC2511

A. Your Application Note AN089 (Doc SWRA320) tests for 'Real World Range' using two CC85XXDK's, each one configured in host mode.  We would like an opportunity to use the same configuration to conduct our own testing under different conditions.  Would you please be able to provide:-
  1. the type of MCU you use
  2. the circuit diagram of the setup in terms of connections between CC85XXDK and the MCU
  3. the code to program both the CC85XXDK and the MCU
  4. details of how both units are programmed
  5. how the configurator can be used to assist in the programming
  6. any other details that may be useful to duplicate the setup
B. We also have a need to use a host controlled CC8520, together with the AIC3101, and am puzzled how you go about programming the 3 devices.  I note that this is similar to the question posed by Geoff Pickford on 05-13-2011 1:14 AM, but cannot see any TI answer as yet.  Could you please provide details on:-
  1. the connections between the 3 devices
  2. how to program the CC8520
  3. how to program the AIC3101
  4. how to program the MCU (assume same TI type as above)
  5. Can they all be programmed 'together' without having to connect and disconnect each one to program separately
C. We have to use a host controlled CC8520, and a codec in bidirectional operation (when FW1.2 is released), and therefore have to start from scratch in terms of many of the functions automatically taken care of in the autonomous mode.   Can you please:-
  1. provide any examples of program that you have for host controlled configurations
  2. how to program the 3 devices (if not covered above)
  3. any other reference programs or designs that relate to this configuration

  • Hi Geoff,

    A.

    1. When conducting the tests to produce AN089 I actually used the 8051 within the CC2511. But the testing is easily conducted with an MSP as well (recommended).

    2. I attach a pdf on how to connect the CC85XXDK to the MSP-EXP430F5438 Experimenter board: 7750.EHIF_Connection_MSP430.pdf

    3/4/5. Programming the CC85XXDK:

    The EHIF statistics commands used for this test are PS_RF_STATS and PS_AUDIO_STATS. These are available in both autonomous and host controlled operation. So to configure your CC85xx devices simply use the CC85XXDK Preloaded Demo project which is available from the Start page on the PPW Configurator. The device configurations in this project are by default in autonomous operation, but if you want, this can easily be changed in the device configuration panel on both the master and slave configurations.

    Programming the MSP430 on the Experimenter board:

    Very soon we will release a design note and example code for the use of some production test EHIF commands. The host in this setup is the MSP-EXP430F5438 Experimenter board. The example code should show the principles regarding the use of EHIF, and it should be easy to use this code as base for implementing any other EHIF command.

    B.

    The remaining questions from Geoff Pickford are answered now: http://e2e.ti.com/support/low_power_rf/f/382/t/110335.aspx

    1. I2C between CC8520 and AIC3101, SPI between CC8520 and host.

    2. The CC8520 can be programmed through SPI or I2C. Detailed information is found in the family user's guide: http://focus.ti.com/lit/ug/swru250f/swru250f.pdf

    3. You set up the codecs registers in the PPW Configurator. Enable custom setup in the Audio Interface panel, and the Audio Device Customization panel appears. The register settings are communicated to the codec from the CC85xx over I2C when the CC85xx transitions between the different network states. Detailed information is found in the PPW Configurators help menu.

    4. The MSP430 on the MSP-EXP430F5438 Experimenter board is flashed either via JTAG, BSL or a custom solution. See chapter 6.3.9 in the user guide for the device: http://focus.ti.com/lit/ug/slau208h/slau208h.pdf for more info.

    5. If some of the devices share programming pins, holding one device in reset while programming the other is the solution.

    C.

    1. Will be available in the DN and example code release mentioned in A.

    3. See the user guide for the MSP-EXP430F5438 Experimenter board (http://focus.ti.com/lit/ug/slau263e/slau263e.pdf) for info on how to do programming and debugging.

     

    Regards

    Kristoffer

  • Thank you very much Kristoffer. That gives us a clear idea as to how to proceed.

    I wonder if you could clear up another matter for us.  When the two way communication is available, we want to have a master in two way communication with two slaves. Is it possible for the audio from both slaves to be directed to one audio channel out of the master? Would the only way of doing this be to use the left channel for one slave and the right channel for the other?

    Cheers

    Geoff

  • Geoff,

    I'm not sure what you mean here, but you should be able to configure this a little how you want it in the Configurator. You could for example use the logical channels mic0 and mic1 (which will be added in FW1.2.0) and map these to whatever ADx pin on the master that you want. Have a look at the audio streaming panel in the PPW Configurator and play around with the options possible. You will have to configure this in the "Slave to master" section which is empty today, but it will look similar to the "Master to slave" section. Hope this answers your question :)

    -Kristoffer

  • Hi Kristoffer,

    You mentioned that there is an MSP example code for a host controller configuration being developed. Would you happen to have that available? I'd like to review it.

    Thanks, Chuck 

  • Hi Per,

    Thanks, that's exactly what i was looking for.

    Chuck