Close

scrapped circular buffer, trying ping pong buffers

A project log for wireless microphone digital

developing a digital wireless radio mic in both 2.4ghz and UHF

ben-bilesben biles 01/27/2017 at 15:320 Comments

trying ping pong buffers. code here ;

TXlooks more promising than RX

https://github.com/benbiles/UHF-digital-wireless-microphone

maybe I need to have multiple pingpong buffers on the RX ?

if packet ready get packet

ping pong buffer

demodulate from ADPCM

16bit array to 32bit array 240 samples for I2S

( load 2nd ping pong buffer ? here )

I2S inturrupt outputs 2nd pingpong buffer 1 sample at a time until empty ?

...

how should the timing work?

should i timestamp / number the packets , packet order ?

Discussions