Bita Sobhani

using two ATD channels

Discussion created by Bita Sobhani on Aug 24, 2008
Latest reply on Aug 25, 2008 by Bita Sobhani
Hi all
I want to convert two analog inputs by ATD (at two port B pins) at the same time and send them to uart.
I know each write on ATDSC will cancel the current conversion and start a new one. So how can I convert the two inputs at the same time?
Can anybody give me an example of setting ATDSC register and reading ATDRH in the case of more than one ATD channel?