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.

TLV320DAC3120: Generation of 2kHz tone beep for 2 seconds ,Fs=44.1Khz, Fin=2kHz.

Part Number: TLV320DAC3120
Other Parts Discussed in Thread: TLV320AIC3120,

hi,

I am trying to generate beep of 2KHz for 2sec, but i am not getting the beep for 2sec it is less than the time expected.

My second question is that, although i have changed volume setting , I am not getting loud enough beep.

this is the setting configuration.

can you help me out for the same   

Select Page 0
w 30 00 00
# PLL_CLKIN = MCLK, CODEC_CLKIN = MCLK
# MCLK=2,048000Hz
w 30 04 00
# DAC Instruction set PRB_P25
w 30 3C 19

# NDAC ON div=1
w 30 0B 81
# MDAC ON div=2
w 30 0C 82
# DOSR = 128
w 30 0D  00
w 30 0E  80

# DAC Volume -63.5 dB
w 30 41 81

# Select Page 0
w 30 00 00
# DAC mute off
w 30 40 04
# DAC power up
w 30 3F 80

# Select Page 1
w 30 00 01
# Class d driver power up
w 30 20 86
# Class D route enable
w 30 26 95
# Class D output driver mute off 
w 30 2A 04

# Select Page 0
w 30 00 00

# Beep length=017700
w 30 49 01
w 30 4A 77
w 30 4B 00
# sin wave coff=23FB
w 30 4C 23
w 30 4D FB
# cos wave coff=7AD7
w 30 4E 7A
w 30 4F D7
# Beep generate -2dB
w 30 47 84

Thanks,

Zanza Bhatt

  • Hi Zanza,

    Welcome to e2e.
    Only the time is less that the expected? Is the beep signal frequency correct?
    You took the example values from the following app note, right? www.ti.com/.../slaa446.pdf

    Best regards,
    -Ivan Salazar
    Applications Engineer - Low Power Audio & Actuators
  • Hi Ivan,

    Yes I have taken example from app note, but I have tried few other frequencies as well. But I am not getting the desired beep(not long enough).

    and speaker is giving the faintest click, evan I have changed volume control register. But the sound is not audible.

    so can you help me. I am not using I2S. I am using TLV320AIC3120  for beep generation only.

    Is there any other setting  required. Please help me for the same.

    Thanks,

    Zanza Bhatt

  • Zanza,

    I assume you're using the TLV320DAC3120 EVM right? Could you try the following script? I think it should work better:


    #Select Page 0
    w 30 00 00
    # Reset
    w 30 01 01

    #########################################
    # PLL_clkin = BCLK,codec_clkin = PLL_CLK
    w 30 04 07
    > 91
    > 20
    > 00
    > 00
    # NDAC is powered up and set to 4
    w 30 0b 84
    # MDAC is powered up and set to 4
    > 84
    # DOSR = 128, DOSR(9:8) = 0
    > 00
    # DOSR(7:0) = 128
    > 80
    #########################################

    # DAC Instruction set PRB_P25
    w 30 3C 19

    # DAC Volume 0 dB
    w 30 41 00

    # Select Page 0
    w 30 00 00
    # DAC mute off
    w 30 40 04
    # DAC power up
    w 30 3F 80

    # Select Page 1
    w 30 00 01
    # Class d driver power up
    w 30 20 86
    # DAC routed to mixer amp
    w 30 23 40
    # Class D route enable
    w 30 26 00
    # Class D output driver mute off
    w 30 2A 04

    # Select Page 0
    w 30 00 00

    # Beep length=017700
    w 30 49 01
    w 30 4A 77
    w 30 4B 00
    # sin wave coff=23FB
    w 30 4C 23
    w 30 4D FB
    # cos wave coff=7AD7
    w 30 4E 7A
    w 30 4F D7

    # Beep generate -2dB
    w 30 47 84


    Best regards,
    -Ivan Salazar
    Applications Engineer - Low Power Audio & Actuators
  • hi Ivan,

    sorry it was typing mistake , I am not using  TLV320DAC3120  but

    using TLV320AIC3120 EVM

    thanks,

    zanza 

  • Zanza,

    There would be not great changes in the device configuration as long as the ADC is not being used.
    Have you tried the script I shared before, anyway? Did it work fine?

    Best regards,
    -Ivan Salazar
    Applications Engineer - Low Power Audio & Actuators
  • Hi Zanza,

    Is there any update on this? Do you need further support?

    Best regards,
    -Ivan Salazar
    Applications Engineer - Low Power Audio & Actuators
  • Hi ivan,

    Thanks this resolved my issue

    Thank you,

    zanza