Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22189

ADC12 (MSP430F5528) 2's complement data format

$
0
0

Hello,

I'm using MSP430F5528 for audio ADC sampling. Since my sample rate is 16kHz, and data is stored in wave file format, I use ADC12 2's complement data format, left aligned. After reading a sample value I store it in LSB,MSB order. This samples are read in audio editors as 16 bit, instead of 12.

Following picture shows a silent part of my file. It is obvious that something is wrong, audio should be equaly distributed around zero point, but in my case majority of nonzero samples have positive values, only few are negative, and seams like there is some cutoff at zero point.

I guess it's something to do with those 4bits always being zero and sample representation, but can't figure out what am I doing wrong. Do you have any idea?


Viewing all articles
Browse latest Browse all 22189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>