Hello, everybody.
I'm playing around with the ADC of my HCS12 uC. On p.236 of the reference manual at
http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12C128V1.pdf?pspll=1
bit 5 of ATDCTL5 can be set as "Single conversion sequence," or "Continuous conversion sequence." Can someone tell me what the difference is? It sounds like a stupid question, I know. But the reason I am asking is because a recent lab I did attaches a potentiometer to one ATD input pin, and converts and reports the voltage level (0V ~ 5V) as it is adjusted. But the ATDCTL5 "SCAN" bit (bit 5) was set to "Single conversion sequence."
Continuous monitoring was made possible by putting the whole thing in a while(1){...} loop. So what is the difference between "Single conversion sequence" in a while(1) loop, and setting the SCAN bit to "Continuous conversion sequences?"
Thanks for any help.
silvrstring
I'm playing around with the ADC of my HCS12 uC. On p.236 of the reference manual at
http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12C128V1.pdf?pspll=1
bit 5 of ATDCTL5 can be set as "Single conversion sequence," or "Continuous conversion sequence." Can someone tell me what the difference is? It sounds like a stupid question, I know. But the reason I am asking is because a recent lab I did attaches a potentiometer to one ATD input pin, and converts and reports the voltage level (0V ~ 5V) as it is adjusted. But the ATDCTL5 "SCAN" bit (bit 5) was set to "Single conversion sequence."
Continuous monitoring was made possible by putting the whole thing in a while(1){...} loop. So what is the difference between "Single conversion sequence" in a while(1) loop, and setting the SCAN bit to "Continuous conversion sequences?"
Thanks for any help.
silvrstring