issue of vs1063's encoding gain

Writing software that inputs and/or outputs audio and performs DSP algorithms such as filters, new codecs or audio effects.
jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

issue of vs1063's encoding gain

Post by jwc1979 » Tue 2020-11-03 9:20

Hello,

I met an strange issue when tuning the audio of vs1063. I have set vs1063 to auto gain mode and the volume is suitable, sound is clear. but sometimes, the volume become loudly sunddenly with noise when I just repower the board. And it can not recover when repower again. it seems like some state of chip is not stable. how do i debug this issue?

kind regards

Wayne.

jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

Re: issue of vs1063's encoding gain

Post by jwc1979 » Tue 2020-11-03 9:29

after some time, I repower the board, it recover again.

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

Re: issue of vs1063's encoding gain

Post by pasi » Wed 2020-11-04 10:24

Which encoding format are you using? Are you using the vs1063a patches package?

Do you get the noise in the analog outputs (monitoring), and/or to the encoded data?

Double-check the voltages you use, and that you use high enough (but not too high) clock multiplier for the encoding parameters you use.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

Re: issue of vs1063's encoding gain

Post by jwc1979 » Wed 2020-11-04 11:22

Hello pasi

I use the PCM format currently. And I have used patchs package for vs1063a.

I got the noise in the analog outputs. And the input clock is 12Mhz, clock multiplier is 5(sc_mult mask is 0xe000). The encoding stream is 8kHz, 16bit mono PCM data.

Are the encoding parameters suitable to the clock?

kind regards

Wayne

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

Re: issue of vs1063's encoding gain

Post by pasi » Wed 2020-11-04 13:56

PCM doesn't take almost any CPU - especially at such a low samplerate, so almost any clock is fine. With 5.0x clock though, make sure your CVDD is stable 1.8V .

It wasn't quite clear from your original post if the noise can also appear in the middle of encoding after being started correctly, or only comes up when you start encoding?

Check the "regular suspects", for example that xTEST isn't floating, and measure the voltages.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

Re: issue of vs1063's encoding gain

Post by jwc1979 » Thu 2020-11-05 3:20

Hello pasi

Thank you for your advice. We will check it.

We met a new scenario about this issue. After vs1063 power up, and the voice is good, keep vs1063 powering up, restart the other side, the voice become loudly on both side(vs1063 is set on codec mode). At this moment, the microphone becomes sensitively. I must speak gently and keep away from the microphon, or the other side can not hear what I say.

kind regards.

Wayne.

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

Re: issue of vs1063's encoding gain

Post by pasi » Thu 2020-11-05 10:04

Byte-order issues are possible when you use 16-bit PCM. If you miss or insert a byte, the byte order of the data will get swapped, and you'll effectively get 256x gain to the signal.

Maybe you could test with IMA ADPCM or g.722 to see if you still get the same issues.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

Re: issue of vs1063's encoding gain

Post by jwc1979 » Thu 2020-11-05 11:06

Hello Pasi

I am not sure what is your means.
What result would be if testing with ADPCM or G.722? The isuue rate would be small than PCM, or it would not occour the issue?

kind regards.
Wayne.

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

Re: issue of vs1063's encoding gain

Post by pasi » Thu 2020-11-05 13:31

The suggestion was to rule out byte-order / transmission issue.

You won't have byte-order issues with IMA ADPCM, because it can synchronize to its block header if there are too many or too few bytes received.

g.722 is byte-based, so it also cannot have problems with the byte-order.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

jwc1979
User
Posts: 16
Joined: Tue 2020-09-08 2:56

Re: issue of vs1063's encoding gain

Post by jwc1979 » Fri 2020-11-06 8:05

Got it.

thanks for your reply.

kind regards.

Wayne.

Post Reply