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.

AM4379: ADC1 error

Part Number: AM4379


Hi all,

I'd like to know how to use ADC1.

When ADC0 is used with the same setting, it is correctly converted.

However, using ADC1 does not convert properly as follows.

VDDA : 1.5V
Input voltage : 720mV
Converted value : 0x3FF
SampleDelay : 0x20

(1.5V / 4096) * 0x3FF = (1.5V / 4096) * 1023
= 374mV


VDDA : 1.5V
Input voltage : 400mV
Converted value : 0x1FF
SampleDelay : 0x20

(1.5V / 4096) * 0x1FF = (1.5V / 4096) * 511
= 187mV

The register is set as follows.

register setting
ADC1_CTRL 0x0000_0043
ADC1_CLKDIV 0x0007
ADC1_STEPEN 0x0000_001E
ADC1_STEPCONFIG1 0x0004_0001
ADC1_STEPDELAY1 0x0000_0000
ADC1_STEPCONFIG2 0x000C_0001
ADC1_STEPDELAY2 0x0000_0000
ADC1_STEPCONFIG3 0x0014_0001
ADC1_STEPDELAY3 0x0000_0000
ADC1_STEPCONFIG4 0x001C_0001
ADC1_STEPDELAY4 0x0000_0000

Does anyone know what is wrong?

Best regards,

Sasaki