s12zvm ADC question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s12zvm ADC question

568 Views
sohyunjang
Contributor III

I use MC9S12ZVML128_PMSM (single shunt).

And I wonder that meaning of <<The results are stored in memory as 12-bit (ADC0FMT_SRES = 4; ADC1FMT_SRES = 4) left-justified data (ADC0FMT_DJM = 0; ADC1FMT_DJM = 0)>> in manual.

what is meaning of <<left-justifted data>>?

Tags (2)
0 Kudos
Reply
1 Reply

380 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

This is described in the Reference manual.

 

See Chapter 9.5.2.5 ADC Format Register (ADCFMT)

If ADCFMT_DJM = 0, data are left-justified in the conversion result list.

 

Then in Table 9-33, you can see the justification.

If left justified, the result is stored in the most significant bits.

justification.png

Regards,

Daniel

0 Kudos
Reply