cancel
Showing results for 
Search instead for 
Did you mean: 

ADC on ST92F150

scott239955
Associate II
Posted on April 14, 2003 at 05:44

ADC on ST92F150

2 REPLIES 2
scott239955
Associate II
Posted on May 17, 2011 at 11:33

Does anyone have sample code using the ADC on the ST92F150?

Using AUTOSCAN, I noticed that it is possible to specify the channel to start the conversion, but not the channel to stop; it stops on channel Not knowing this, I used the first eight analog inputs (0 to 7) instead of 8 through If the port pins for 8 through 15 are not setup as alternate function, can the AUTOSCAN feature still be used? Will AUTOSCAN still do a conversion on analog inputs 8 through 15 even though they are not used as such?

romain2399
Associate II
Posted on May 17, 2011 at 11:33

I've attached an example with single mode on the Channel15, the high data register is sent by SCI_M / RS0

The AUTOSCAN starts by the defined register up to the channel Thus you must use the last contiguous channels.

The fact that you configure or not the corresponding I/Os in Analog Input Alternate Function is unknown by the ADC, it is up to you to do it.