cancel
Showing results for 
Search instead for 
Did you mean: 

Result of ADC Conversion in Dual Channel Simultaneous Injected Conversion

infoinfo978
Associate II
Posted on March 28, 2011 at 00:55

Result of ADC Conversion in Dual Channel Simultaneous Injected Conversion

4 REPLIES 4
Posted on May 17, 2011 at 14:29

Either reading sounds kind of scary seeing as the ADC's are only 12-bit.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
raptorhal2
Lead
Posted on May 17, 2011 at 14:29

You can read the ADC as 16 bit right aligned or left aligned. Most folks read it right aligned.

Look at Figure 31 of RM0008, the all densities reference manual. Left aligned data in the injected group has one signed extended bit, the regular group has none, so you are observing normal results.

The suspicious amongst us would conclude that ST deliberately designed it that way just to teach us a lesson about the need to read the reference manual.

Cheers, Hal

infoinfo978
Associate II
Posted on May 17, 2011 at 14:29

Thanks guys,

doesn't make sense to me. What's that signed extended bit good for?

It just generates effort when shifting regular channels to the injected group or vice versa.

best regards!

John F.
Senior
Posted on May 17, 2011 at 14:29

Sign extension of a signed 12 bit result makes 16 bit signed arithmetic work properly. See for example, ''http://en.wikipedia.org/wiki/Two's_complement''