vs1063 full duplex speed up interface

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
Post Reply
chitarrastonata
User
Posts: 9
Joined: Wed 2019-10-16 23:35

vs1063 full duplex speed up interface

Post by chitarrastonata » Tue 2019-11-05 11:44

Read and write audio data through SPI in the same time is not possible, so a lot af SPI access are required to have a real time full duplex implementation.
My question is : can I use UART to read incoming audio and use SPI to send output audio in the same time?
It is not an orthodox solution, but if works, I can simplify the implementation, have a better efficiency, reduced dramatically the CPU usage and reduce the SPI access.
Thanks
Luca Moreschi

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2711
Joined: Tue 2010-06-22 13:43

Re: vs1063 full duplex speed up interface

Post by Panu » Tue 2019-11-05 12:26

My question is : can I use UART to read incoming audio and use SPI to send output audio in the same time?
Yes. This is very clearly explained in the VS1063 datasheet, you really should read it.
VS1063 datasheet page 38, "Encoder Data Flow of VS1063a" wrote:The bitstream generated by the encoder is fed to the Bitstream out FIFO. The data is then either read through SCI by the user or output by the VS1063a to the UART.
VS1063 datasheet page 61 wrote:Depending on whether you selected SCI or UART data transfers with bit 13 of
SCI_AICTRL3, read data through SCI_HDAT0/SCI_HDAT1 as described in Chapter
11.6.3, or through the UART.
VS1063 datasheet page 79 wrote:txUartDiv and txUartByteSpeed are used to set the UART speed. For low speeds, it is easiert
to set the speed through txUartByteSpeed, which is the bit speed divided by 10 (e.g. 11520
for 115200 bps). If the speed is high, it is more accurate to use txUartDiv which directly
controls VS1063a’s register UART_DIV (see VS1063a Hardware Guide for details). Below are
examples for UART values with two different core clock speeds.
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

Re: vs1063 full duplex speed up interface

Post by pasi » Tue 2019-11-05 12:33

Yes, the UART output mode was implemented in vs1063a so you don't need to read the data through SCI.

The encoding output mode does not affect the decoding input in any way, it's still through SDI whichever encoding output mode you select.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply