s12zvm ADC question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s12zvm ADC question

796 次查看
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 回复

608 次查看
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 项奖励
回复