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.

TPS65930 sample code

Other Parts Discussed in Thread: TPS65930

Hi Guys,

Probably my questions has been asked before but I just can't what I am looking for. I am using the loop dsplink sample code and would like to add support to read/write to TPS65930 from the ARM application, or even better directly from the DSP. Is there anywhere sample code that shows how do you talk to TPS65930?

thanks

  • The TPS65930 communicates over I2C like any other I2C device. I don't think you'll find sample code apart from the code that is used in the BSP to communicate with the TPS and enable/disable regulators and so on.

    Why exactly would you need to communicate with the TPS? What scenario are you trying to achieve? Note that you need to be careful when changing registers in the TPS as some of them are critical for the CPU to run correctly.

  • Hi,

    thanks for the reply, sorry  I mispoke. I am not trying to program the registers on the TPS (even though I will do that later through I2C). I am looking for an application that uses high level APIs to receive/transmit/exchange audio buffers between the ARM and the audio codec (which happened to be TPS on the board). I am used to the DM642 (no ARM) where we exchange buffers between the task and the video codec through FVID_exchange() calls. Is there similar code out there to show how you can receive/transmit audio buffers in an ARM application?

    thanks 

  • If you are running Linux on your board, then you might want to have a look at the ALSA sound subsystem. It provides an API to play/record/mix sounds through any hardware sound device you have on your board (throught the TPS sound driver in your case). You can have a look at the "alsa-utils" opensource project (look it up online), which contains source code for tools such as "aplay", "arecord", etc...From this source code you'll find examples on how to exchange buffers with ALSA to have sounds played or recorded.

    Let us know if you intend on using another OS.

  • No I am using WinCE. Can you please provide me with a sample application?

    thanks

  • Any update on this issue please? thanks