This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configuration of Analog Digital Converter ADC

Hello

I'm trying to configure "Analog Digital Converter".
I be using the example "IPNC 0.6" for dm365, but there are no drivers to use the ADC.

Someone has been using the ADC, and has been properly configured to obtain digital data?

The following PDF is how works the ADC, but the problem is that I can not access to the pins for configure and get the data (pins ADCxDAT, ADCTL, etc). (http://focus.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=SPRUFI7&track=no)

Finding I could find the following function:

 

int adc_single(unsigned int channel)
{
    int off;
    unsigned char csr;

    if (channel >= 8) return -1;

    off = (channel & 0x03) << 2;

    csr = ctrl_inb(ADCSR);
    csr = channel | ADCSR_ADST | ADCSR_CKS;
    ctrl_outb(csr, ADCSR);

    do {
        csr = ctrl_inb(ADCSR);
    } while ((csr & ADCSR_ADF) == 0);

    csr &= ~(ADCSR_ADF | ADCSR_ADST);
    ctrl_outb(csr, ADCSR);

    return (((ctrl_inb(ADDRAH + off) << 8) |
        ctrl_inb(ADDRAL + off)) >> 6);
}

 

But not finding the functions  "ctrl_outb" or  "ctrl_inb".

Can someone help me

Greetings