VS1063: PCM DATA MP3 DATA CONVERT

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
Post Reply
togsin
User
Posts: 4
Joined: Thu 2024-06-06 7:38

VS1063: PCM DATA MP3 DATA CONVERT

Post by togsin »

Hi all

Our company uses vs1063 in Stm chips.
Can I use Vs1063 to enter pcm data to export mp3 data?
Please provide me with the software if possible.
ASAP PLEASE

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

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by pasi »

See from https://www.vlsi.fi/en/support/software ... tions.html
VS1063a SDIEncoder
* Allows encoding of the codec-mode WAV formats into WAV, MP3 or Ogg Vorbis formats.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
togsin
User
Posts: 4
Joined: Thu 2024-06-06 7:38

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by togsin »

thanks

but c souce in vs1063a-sdiencoder090.zip is patch version.
I need full source.

please provide full source
and after source merge and then let me know how to test.(pcm -> mp3)

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

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by pasi »

Why do you need the source code? What would you merge it with?

The SDI Encoder application replaces the normal ADC input of the encoders by data from SDI (through a simple WAV decoder). The application uses the ROM code for the encoding.

You upload the SDIEncoder application to vs1063, then send your PCM data as a WAV file to SDI, receive the encoded version by reading from SCI (or through UART).
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
togsin
User
Posts: 4
Joined: Thu 2024-06-06 7:38

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by togsin »

I need an example source that converts Pcm data to mp3 data using Vs1063. Vs1063 use spi interface.
I need your help because I'm a beginner.

I am attaching the 1063 circuit diagram that we use.

Help me
Thanks
Attachments
vs1063 codec.png
vs1063 codec.png (118.02 KiB) Viewed 81 times
Hannu
VLSI Staff
Posts: 535
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by Hannu »

Hi

I gave a quick look on your schematics. I noticed some design details which should have explanation or the may need some thinking.

1) Is there a some specific reason to have ferrite beds between AGND and DGND?

The general rule is to connect the ground together under the chip and not route digital signals over analog.

2) The DAC output which you aren't using isn't the recommended (20R,10n) (10R, 47n) (20R 10n) (left CBUF right). For not used DAC it doesn't matter but if design is copied and then reused, then it matters.

On the input side best the performance depends on source too so I won't say it is wrong. For a many times used analog input and output circuits have a look at viewtopic.php?f=9&t=69

3) Is 33pF correct load capacitor for your crystal?
User avatar
pasi
VLSI Staff
Posts: 2136
Joined: Thu 2010-07-15 16:04

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by pasi »

See Hannu's notes above. AGND and DGND must be connected together directly under the chip.
togsin wrote: Fri 2024-06-07 12:59 I need an example source that converts Pcm data to mp3 data using Vs1063. Vs1063 use spi interface.
I need your help because I'm a beginner.
You can start with any generic vs1063 recorder source code you can find for your microcontroller. You can find our examples from viewtopic.php?t=840 , but you might find examples online that are specific to your controller.

First check that the decoding works. You don't need the audio output (although it would help). You can see from SCI_DECODETIME that the vs1063 is decoding your test file.

Then get the recording working. It doesn't matter that you don't have ADC connected to anything. Your goal is to produce a valid recording file with your controller using the normal encoding mode of the vs1063a.

You seem to have ADC connected, so if by "PCM data" you meant encode to mp3 from analog line inputs, you're now done. If you get a digital PCM audio from somewhere else, then continue to the next step.

When you get that working, the next step is to use the vs1063 SDIEncoder. The recording example probably loads vs1063a-patches.plg . You replace this plugin with the vs1063a SDIEncoder application. The encoded data will be read in the same way as in the normal encoding mode. You need to provide the PCM data you want to encode to the serial data interface (SDI) with a wav header (which defines the number of channels, samplerate, and sample size).
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
togsin
User
Posts: 4
Joined: Thu 2024-06-06 7:38

Re: VS1063: PCM DATA MP3 DATA CONVERT

Post by togsin »

hi

Should I use the void VS1063RecordFile(FILE *writeFp) function inside this file source(vs1063an_playrec.zip)? (https://www.vlsi.fi/en/support/software ... tware.html)

Let me know pcm data to mp3 souce code.

help me

Thanks
Post Reply