2003-04-13 08:44 PM
2011-05-17 02:33 AM
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?2011-05-17 02:33 AM
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.