Post Go back to editing

Simple audio in-out code for the ADSP-BF706 EZ-KIT

I have an audio in-out program in C for the ADSP-BF706 EZ-KIT mini, about 80 lines in length. It's simple and very easy to understand. It's also completely self-contained - it doesn't use any of the header files that the "TalkThrough_BF706Mini.c" program uses (supplied with the kit). It includes a basic TWI driver, SPORT0 set up and configuration routine for the on board codec (ADAU1761). With some simple modifications it can be used for filtering, both FIR and IIR. The file is attached. All welcome to use free.

PatrickG

BF706_audio_inout.pdf
Parents
  • In my TI books for the TMS320C6713 By Rulph Casaing he mentions ping pong

    and double buffering, but circular DMA is better because it works

    preemptively while you write behind the bytes getting preempted. I show

    this method in one of my samples...It might be the one where I show Fourier

    Series summation on the BF706...That shows how to transfer signals on the

    fly via your DMA method but I modified it to work with very large buffers,

    so you can do a write behind directly into the circular buffer. I have done

    an FPGA design for a defense contractor showing that 1024 point FFT can run

    continuously via an efficient stereo pair FIFO buffer on input and outputs.

    Definitelly can be done! Wanna make sure you don't overrun your FIFO so

    tune it properly by choosing an acceptable size so that the font does not

    catch up to the tail...The Blackfins also allow linked list buffers

    probably for graphics buffers which is most likely what you are describing.

    Or perhaps cascading filter buffers...

    On Sun, Jul 15, 2018, 4:41 AM UweS <analog@analog-vm.hosted.jivesoftware.com>

Reply
  • In my TI books for the TMS320C6713 By Rulph Casaing he mentions ping pong

    and double buffering, but circular DMA is better because it works

    preemptively while you write behind the bytes getting preempted. I show

    this method in one of my samples...It might be the one where I show Fourier

    Series summation on the BF706...That shows how to transfer signals on the

    fly via your DMA method but I modified it to work with very large buffers,

    so you can do a write behind directly into the circular buffer. I have done

    an FPGA design for a defense contractor showing that 1024 point FFT can run

    continuously via an efficient stereo pair FIFO buffer on input and outputs.

    Definitelly can be done! Wanna make sure you don't overrun your FIFO so

    tune it properly by choosing an acceptable size so that the font does not

    catch up to the tail...The Blackfins also allow linked list buffers

    probably for graphics buffers which is most likely what you are describing.

    Or perhaps cascading filter buffers...

    On Sun, Jul 15, 2018, 4:41 AM UweS <analog@analog-vm.hosted.jivesoftware.com>

Children
No Data