VS1063 VU meter

Designing hardware that uses VLSI Solution's devices as slave codecs such as an external MP3 decoder chip for a host microcontroller.
Post Reply
madnik
User
Posts: 4
Joined: Wed 2017-02-08 2:52

VS1063 VU meter

Post by madnik » Wed 2017-02-08 3:02

Hello.
I need some information to understand.
I will use vs1063 to record the incoming signal in MP3 file. Will this work with VU meter? In addition necessary record the input signal amplitude. Or VU meter only work for a decoded signal?

User avatar
pasi
VLSI Staff
Posts: 1473
Joined: Thu 2010-07-15 16:04

Re: VS1063 VU meter

Post by pasi » Wed 2017-02-08 12:31

The VU Meter works in the playback mode.

In the encoding mode you can use the parametric_x.i.encoding.channelMax[2] array to determine the absolute maximum value of the samples that are going into the encoder.

In (semi)constant intervals:
a) Read channelMax[] values. (WRAMADDR = 0x1e3c, read WRAM twice)
b) Clear channelMax[] values. (WRAMADDR = 0x1e3c, write 0 to WRAM twice)
c) Convert the linear value to decibels (or your appropriate range) and display. The maximum value is 0x8000U.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

madnik
User
Posts: 4
Joined: Wed 2017-02-08 2:52

Re: VS1063 VU meter

Post by madnik » Thu 2017-02-09 23:33

Thank you!

madnik
User
Posts: 4
Joined: Wed 2017-02-08 2:52

Re: VS1063 VU meter

Post by madnik » Fri 2017-04-28 17:42

I've got one more question. Is it possible to track the amplitude without recording? I will not read data from the data buffer. Just read the status of the audio line. It is necessary to record a signal if it appeared after silence.

User avatar
pasi
VLSI Staff
Posts: 1473
Joined: Thu 2010-07-15 16:04

Re: VS1063 VU meter

Post by pasi » Tue 2017-05-02 11:18

In the encoding mode you don't need to read the data out to read and use the channelMax[] values. You need to be in the encoding mode though.

(It is also possible to read the ADC values without entering the encoding mode, but it will not be very reliable, because you would not be able to read all samples.)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

madnik
User
Posts: 4
Joined: Wed 2017-02-08 2:52

Re: VS1063 VU meter

Post by madnik » Wed 2017-05-03 18:07

Dear Pasi
Great reliability is not required. It is only necessary to track the presence of a signal. And if the audio signal appeared to start encoding.

User avatar
pasi
VLSI Staff
Posts: 1473
Joined: Thu 2010-07-15 16:04

Re: VS1063 VU meter

Post by pasi » Thu 2017-05-04 10:14

Somewhere is an example how to configure the ADC and how to read the ADC registers through SCI. That way you can monitor the ADC inputs while in playback mode too.

You could also start the encoding with pause mode, and then remove pause when you see a signal. However, it seems the channelMax[] values are not updated during record pause, but you can read the DAC registers directly. In this case you don't need to perform the ADC configuration, because the encoding mode does that for you.

See viewtopic.php?t=29
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply