What is the ADC Conversion Result Register in MC9S12ZVCA?

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

What is the ADC Conversion Result Register in MC9S12ZVCA?

ソリューションへジャンプ
2,664件の閲覧回数
s_kim1
Contributor III

Hello,


I am a novice developer of firmware.

I am using the MC9S12G128 model that I always use, and I need a 12-bit ADC, so I am using the MC9S12ZVCA.

In MC9S12G128, ADC values were converted with ATD Conversion Result Registers, and the converted results could be saved as variables.


In MC9S12ZVCA, I would like to know which register serves to convert ADC.

I will wait for your answer.

Thanks.

ラベル(1)
0 件の賞賛
返信
1 解決策
2,583件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello s.kim@gisystem.co.kr,

Actually, there is S12ZVC demo that utilizes ADC

It can be downloaded here:

VLG-MC9S12ZVC Evaluation Board | NXP 

pastedImage_6.png

Regards,

Daniel

元の投稿で解決策を見る

3 返答(返信)
2,583件の閲覧回数
s_kim1
Contributor III

Thank you for answer.


Can you provide ADC sample code of MC9S12ZVCA?

Thanks.

0 件の賞賛
返信
2,584件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello s.kim@gisystem.co.kr,

Actually, there is S12ZVC demo that utilizes ADC

It can be downloaded here:

VLG-MC9S12ZVC Evaluation Board | NXP 

pastedImage_6.png

Regards,

Daniel

2,583件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello s.kim@gisystem.co.kr,

There are no result registers in the S12ZVC ADC module.

The results are transferred to SRAM by DMA at the end of each conversion.

The ADC module only takes a pointer to a result array in SRAM.

Please refer to the S12ZVC RM rev2.1, Section 9.5.3.2.3,

Because S12ZVL and S12ZVC have the same ADC, you can use this example: 

Example S12ZVL ADC0 triggered by TIM0 OC updates PWM duty cycle  

Regards,

Daniel