Hello,
Could you tell me how to have the dacmode functionality on vs1163 as on VS1053 with dacmode patch ?
On Vs1053 the init is:
LoadPlugin(); //dacmode
WriteRegDsp(AUDATA,SamplingRate); //(12000Hz)
WriteDsp((uint8_t *)TRAWM,4);//Mono BigEndian
And the read of datas:
WriteDsp(ptBufStream,NumberOfData); //write datas in SDI
NbreBufDatas=ReadRegDsp(SCI_AICTRL3); //Total number of datas still in buffer to adjust sampling rate
Best regards
Christian
dacmode functionality on vs1163
Re: dacmode functionality on vs1163
When waiting for data from the SDI FIFO, vs1163 tries to keep the audio FIFO relatively empty. Also, in vs1163 you can read the SDI and audio FIFO fill states using the parametric_x structure. (vs1063 datasheet 11.10: Write 0xc0df to SCI_WRAMADDR, read SCI_WRAM to get sdiFree, read SCI_WRAM again to read audioFill.)
You thus don't need a plugin and can use just the ROM functions.
However, you will need a valid WAV header to send before you start sending the PCM data (which is always little-endian for WAV). (See vs1063 datasheet 11.6.4 for some data about wav headers.)
You thus don't need a plugin and can use just the ROM functions.
However, you will need a valid WAV header to send before you start sending the PCM data (which is always little-endian for WAV). (See vs1063 datasheet 11.6.4 for some data about wav headers.)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Re: dacmode functionality on vs1163
Thank you pasi.
it's working fine.
Christian.
it's working fine.
Christian.