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.

TLV320AIC3111: Beep Generation

Part Number: TLV320AIC3111

I want to generate a beeping sound using the TI TLV320AIC3111. With my current codec settings, I get just a click (barely hearable from the speakers).

I am attaching a few configurations that I have already tried.

Please help me out with a script that would increase the beeping sound (Like an alarm beep.

CODEC_1.txt
	0X00, 0X00,
	0x41, 0x17,
	0x47, 0x3F,
	0x48, 0x3F,
	0x49, 0x00,
	0x4A, 0x00,
	0x4B, 0xEE,
	0x4C, 0x10,
	0x4D, 0xD8,
	0X4E, 0x7E,
	0X4F, 0xE3,
	0X50, 0XBB,
	0X51, 0x80
CODEC_3.txt
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
CODEC_2.txt
    0X00, 0X00,
	0x04, 0x00,
	0x3C, 0x19,
	0x0B, 0x81,
	0x0C, 0x82,
	0x0D, 0x00,
	0x0E, 0x80,
	0x41, 0x81,
	0x00, 0x01,
	0x20, 0x86,
	0x26, 0x95,
	0x2A, 0x04,
	0x00, 0x00,
	0x49, 0x01,
	0x4A, 0x77,
	0x4B, 0x00,
	0x4C, 0x23,
	0x4D, 0xF8,
	0X4E, 0x7A,
	0X4F, 0xD7,
	0X47, 0x84,
)

  • Zeal,

    I'm sorry you're having some difficulty. I'm sure we can help resolve your issue. I just have a few questions for you

    1. What is your Fs? from script 3 it looks like you have an Fs of 8k, can you confirm that my assumption is correct?

    2. are you using an EVM or your own design?

    3. what beep frequency and beep length are you aiming for?

    best regards,
    -Steve Wilson
  • Dear Steve,

    1. Fs = 48 kHz

    2. I am using my own design.

    3. Beep frequency = 1 kHz, Beep length = 017700h (Burst length = 2 seconds)

    I really appreciate your help!

    Thank you.
    Zeal
  • Zeal Bhatt said:
    Dear Steve,

    1. Fs = 48 kHz

    2. I am using my own design.

    3. Beep frequency = 1 kHz, Beep length = 017700h (Burst length = 2 seconds)

    I really appreciate your help!

    Thank you.
    Zeal

    Dear Steve, I am still looking for a solution to this. It'd be great if you could look into this soon.

    Thank you.

    Zeal.

  • Zeal,

    This is the same Fs, and beep frequency as the Datasheet example on Pg59 of the Datasheet. The only difference would be the beep length, which you have already calculated.

    Are you providing the Codec with I2S clocks? The DSP will need to receive the I2S clocks at least briefly in order to create a beep.

    ---------------------------------------------------

    #Beep volume and length Coefficients:
    w 30 47 02 02 01 77 00

    # Sine Coefficients
    w 30 4C 10 B5

    # Cosine Coefficients
    w 30 4E 7E E8

    # Activate the beep generator
    w 30 47 82


    best regards,
    -STeve Wilson