DSPRelated.com
Forums

32bit to 12bit

Started by silver_sparrow July 16, 2003
Hello,

From my DSK6711's serial port I would like to drive a 12bit DAC.

Is truncation by dropping LSB's the best way to convert 32bit words
to 12bit? Is there anything I should consider when doing so?

thnx!!
chiko lee



Technically you could use whatever 12 bits that you want to - as long as the software keeps them straight and matches the hardware.   "As a general rule", I would use the lower 12 bits and mask off the upper ones.  That way, when you look at a 12 bit value in a memory location or watch window, it will map directly to the data sheet value to generate a specific voltage.
 
just my opinion,
mikedunn

silver_sparrow <s...@yahoo.com> wrote:
Hello,

From my DSK6711's serial port I would like to drive a 12bit DAC.

Is truncation by dropping LSB's the best way to convert 32bit words
to 12bit? Is there anything I should consider when doing so?

thnx!!
chiko lee
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to c...@yahoogroups.com

To Post: Send an email to c...@yahoogroups.com

To Leave: Send an email to c...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com