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.

  • TI Thinks Resolved

TAS5548: How to init TAS5548?

Prodigy 30 points

Replies: 5

Views: 258

Part Number: TAS5548

Dears,
       This is Leon Yu.
       Now I have a  new project using TAS5548.
     
    I always see there is only 384KHz wave output from PWM ports. I don't know what problem I get.
    The following is regesters for init.   Would you please help me to check it?
/*
*****************************************Copyright (c)*********************************************
** Shenzhen Fengfang Digital Technology
**
**
**
**
**
**
**
**
** File : FFD_SBDF_DspBootload.c
** Author : SystemTools


** Date: 2019/01/09
** Description: SBDF DSP Bootload File:Customer,Morel;ProductName,A861
**
**
***************************************************************************************************
*/

#include "FFD_SBDF_Memmap.h"
#include "stm32f10x.h"
#include "absacc.h"
#include "FFD_SBDF_Datatype.h" 

/* DSP Boot Load Data */ 
const uint8_t c_SBDFDSPBootload[] __at(SBDF_DSPBL_ADDR) = 

TAS5548_REGS_NUM, 
//Registers Description 
0x03,0x01, 
// ASRC1 
0xC5,0x04, 
// Channels Power down 
0x27,0x01, 
// Channels Mute 
0x0f,0x01, 
// Channels Gain 
0xD9,0x04, 

//Input Mixer 
0x41,32, 
0x42,32, 
0x43,32, 
0x44,32, 
0x45,32, 
0x46,32, 
0x47,32, 
0x48,32, 
// Output Mixer 
// Registers Data 
0xa0, 
0x07,0x10,0x01,0x00, // Enable MCLKO,LRCLKO,SCLKO,Using Internal sample rate to 96K,SDIN1 for ASRC output, 
0xf8, 
0xf8, 
0x00,0x00,0x00,0x48, 
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; 
  • Hi Leon-san,

    TAS5548 has the AM avoidance feature, the pwm switching frequency is able to be changed, so please refer to the following specification.

    Best regards,
    Kato

  • In reply to Sadanori Kato:

    Thank you for the great answer, Kato-san.

    Hi Leon,
    I think Kato-san gave a perfect answer. Please let us know if you have any other question.

    Best regards,
    Shawn Zheng
  • In reply to Sadanori Kato:

    Hi Sodanori-san,
    Maybe I have explained my issue clearly. I know the PWM frequency. I just don't clear how to use ASRC. Just now I try to disable ASRC( Write 0x00,0x01,0x60,0x66 to register 0xC4), the audio come out from DSP, then I write the default values(0x00,0x01,0x00,0x66), there are also audio data from PWM port. But, if I DO NOT write this register, there is still do not have valid data come out.
    Appreciate for your kindly support.
  • In reply to Shawn Zheng:

    Hi Shawn,
    Kato-san's feedback is not for my question. Thanks! From the block diagram descripted in the datasheet, I am not clear how to set ASRC's clocks.
  • In reply to Li YunJing:

    Hi Leon-san,

    Could you please confirm the following test results just in case ?

    For ASRC mode, does TAS5548 work normally if setting 0x00010066 to 0xC4 with 96kHz input data of left justified 16bits ?
    On the other hand, for ASRC bypass mode, does TAS5548 work normally if setting 0x00015066 to 0xC4 as well ?
    * the above typo was corrected.

    Best regards,
    Kato

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.