MC9S08QG8: Setting up basic ADC from external input

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

MC9S08QG8: Setting up basic ADC from external input

1,390 次查看
karmabobby
Contributor I

Hi. I am having trouble understanding how to implement the ADC registers for a basic ADC I need to perform.

 

I have a potentiometer which is varying an external voltage of 3V in a potential divider. I need to set up a basic ADC routine to take the external variable and store the value as an integer. The variable will then be used to change the duty cycle of a PWM output I have set up.

 

Im not looking for code, just a few pointers on what the registers are and how to implement them.

 

Thanks in advance

 

Daryl

标签 (1)
0 项奖励
回复
1 回复

658 次查看
peg
Senior Contributor IV

Hi Daryl,

 

You have seen this?

0 项奖励
回复