vs1063a mode convert

Designing hardware that uses VLSI Solution's devices as slave codecs such as an external MP3 decoder chip for a host microcontroller.
Post Reply
Easyway
User
Posts: 3
Joined: Fri 2014-01-17 11:25

vs1063a mode convert

Post by Easyway » Fri 2014-01-17 13:12

Hi,

When i runnin PCM codec mode, but i wanna switch to MP3 decode mode. How can i do?
Set SM_RESET bit or disable AEC? Should i reload the patch?
Thanks!

User avatar
Henrik
VLSI Staff
Posts: 1136
Joined: Tue 2010-06-22 14:10

Re: vs1063a mode convert

Post by Henrik » Mon 2014-01-20 11:31

Easyway wrote:Hi,

When i runnin PCM codec mode, but i wanna switch to MP3 decode mode. How can i do?
Set SM_RESET bit or disable AEC? Should i reload the patch?
Thanks!
Yes, you are right.

A slightly longer version:
1) Write to register SCI_MODE so that SM_RESET is set and SM_ENCODE is not set, in the style of the following pseudo-code:

Code: Select all

#define SM_RESET (1<<2);
#define SM_ENCODE (1<<12);
#define SCI_MODE 0
u_int16 t;
t = ReadSci(SCI_MODE);
t |= SM_RESET;
t &= ~SM_ENCODE;
WriteSci(SCI_MODE, t);
2) Reaload the VS1063 Patches package.
3) Start sending the MP3 file through SDI normally.

Kind regards,
- Henrik
Good signatures never die. They just fade away.

Easyway
User
Posts: 3
Joined: Fri 2014-01-17 11:25

Re: vs1063a mode convert

Post by Easyway » Tue 2014-01-21 3:41

Hi,

Thanks for your reply!
My step is the same with yours: software reset and disable encode bit, reload patch.
But if i switch the mode from decode to codec again, the vs1063 will make much noises in codec mode.
My step is very simple:
1. Enable the SM_ENCODE bit;
2. Write 0x50 to SCI_AIADDR instead of SM_RESET.
Other registers have already been set, we didn't change them.
Am i right?

Kind regards,
Chen Qing

User avatar
Henrik
VLSI Staff
Posts: 1136
Joined: Tue 2010-06-22 14:10

Re: vs1063a mode convert

Post by Henrik » Tue 2014-01-21 11:03

Easyway wrote:Hi,

Thanks for your reply!
My step is the same with yours: software reset and disable encode bit, reload patch.
But if i switch the mode from decode to codec again, the vs1063 will make much noises in codec mode.
My step is very simple:
1. Enable the SM_ENCODE bit;
2. Write 0x50 to SCI_AIADDR instead of SM_RESET.
Other registers have already been set, we didn't change them.
Am i right?
Also between 1 and 2:
1.5: Set all the required parameters to SCO_CLOCKF, SCI_AICTRL0 ... SCI_AICTRL3, potentially also SCI_WRAMADDR (MP3 and Ogg Vorbis only).

It sounds weird that you are getting much noise. Do you stop sending MP3 data using the Cancel method? What parameters do you use when activating codec mode? Can you share your source code with us so that I coudl have a look and see if I can find a problem?

Kind regards,
- Henrik
Good signatures never die. They just fade away.

Easyway
User
Posts: 3
Joined: Fri 2014-01-17 11:25

Re: vs1063a mode convert

Post by Easyway » Wed 2014-01-22 5:26

Hi,

This issue was fixed.
We made a mistake.
We set a wrong samplerate to SCI_AICTRL0.
Anyway, thanks again for your support.

User avatar
Henrik
VLSI Staff
Posts: 1136
Joined: Tue 2010-06-22 14:10

Re: vs1063a mode convert

Post by Henrik » Wed 2014-01-22 13:17

Easyway wrote:Hi,

This issue was fixed.
[...]
Anyway, thanks again for your support.
You're welcome! Happy to hear you got everything sorted out!

Kind regards,
- Henrik
Good signatures never die. They just fade away.

Post Reply