s12zvm ADC question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s12zvm ADC question

871件の閲覧回数
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>>?

タグ(2)
0 件の賞賛
返信
1 返信

683件の閲覧回数
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 件の賞賛
返信