Sunday, 8 October 2017

Digital DI Box 03 - continuous data flow

Digital DI Box 03 - continuous data flow

Downsampling for better dataflow

Previously I concluded I will have to sample t 10KHz in order to keep up with the data flow. Right now I set the sampling rate at 7us - approximately 15KHz. The sound is not perfect (coming out of 10bit DAC) - mainly due to DAC noise and occasional ADC errors. And of course low sample rate makes higher frequencies sound poorly. Here is the graph of a youtube video passed through ATXmega controller and received in digital form at the same computer.

The red line is the actual signal, the blue line is the same signal averaged over 5 past values. The graph is autoscaled after reading roughly 250 samples from serial port every 100ms

Time problem

As usual the datasheet was near useless with timer setup. I had to guess the timer register TCC0 and I recon there will be more guessing on what is required to get the timer going. If I had a debugger I would probably able to figure it out. Oh well, I may need to google again.

No comments:

Post a Comment

Is low level programming still relevant these days?

The levels of abstraction have made the application programming much easier and faster. But everything comes at a price. This is a new ...