MC9S08QG8: Setting up basic ADC from external input

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

MC9S08QG8: Setting up basic ADC from external input

1,143 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

411 Views
peg
Senior Contributor IV

Hi Daryl,

 

You have seen this?

0 Kudos
Reply