Search found 9 matches

by chitarrastonata
Tue 2019-11-05 11:50
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

vs1000/vs1005/vs1010 are NOT codec, they have only decoding functionality, i'm wrong?
Luca
by chitarrastonata
Tue 2019-11-05 11:44
Forum: Microcontroller Software
Topic: vs1063 full duplex speed up interface
Replies: 2
Views: 550

vs1063 full duplex speed up interface

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...
by chitarrastonata
Mon 2019-10-21 20:45
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

correct!
play buffer was underrun. I changed code and now is perfect.
Thanks a lot!
Just a last queston:
My initial expectation was that when I send data to the decoder in the same SPI frame I read the encoded data.
is it possible to set this modality?
it will reduce dramatically the SPI access!
Luca
by chitarrastonata
Sun 2019-10-20 19:11
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

ohps, i simply forgot to set RM_63_CODEC in SCI_RECMODE.... :lol: Now it seems that codec has two different transfer rates. I have a circular buffer (now size is 16384 byte, my hope is to reduce it to 64) Read ponter starts ad beginner of buffer, write ponter starts in the midle of buffer (8k). It s...
by chitarrastonata
Fri 2019-10-18 15:57
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

do { // See if there is some data available if((n = vs_read_register(SCI_RECWORDS)) > 0) { for(i = 0; i < n; i++) { w = vs_read_register(SCI_RECDATA); bufferAudio[bufferWrite++] = (w >> 8); bufferAudio[bufferWrite++] = (w & 0xFF); bufferWrite &= BUF_MASK; DRV_SPI_Tasks(sysObj.spiObjectIdx0); } } els...
by chitarrastonata
Fri 2019-10-18 15:48
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

Code is written but when I start full duplex the output audio is coming from input and not from DAC internal buffer. I suppose that I have to set correctly PLAY_MODE, AD_MIXER, PCM_MIXER but even after reading datasheet I'm still confused. can you kindly tell me the value to use for these register i...
by chitarrastonata
Fri 2019-10-18 13:08
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

nice!
REC and PLAY in two different functions is working fine.
I made 2 errors: patch not loaded and heather info with size not updated.
I'm so sorry...
Now last step, fullduplex!
I'll keep you update.
by chitarrastonata
Thu 2019-10-17 17:45
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

Re: vs1063 : g711/722 full duplex example

Hi, Before implement a real full duplex, I trying to implement record a playback in two different functions. I porting exaclty the souce code from 'vs1063an_playrec.zip' Unfortunately when i write (SCI_AIADDR, 0x0050) to start recording the PIN DREQ never go logic '1' Any idea? Thaks Luca this is my...
by chitarrastonata
Thu 2019-10-17 0:30
Forum: Microcontroller Software
Topic: vs1063 : g711/722 full duplex example
Replies: 14
Views: 1361

vs1063 : g711/722 full duplex example

My project have to read UDP packet from ethernet and play them with vs1063. In the meantime it has to read audio from vs1063 and send back to ethernet (like a VoiceIP, ethernet telephone) I'm not able to find any example how to initialize vs1063 to have full duplex functionality (g.711/722) till now...