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.

TMS570LS3137 : ADC conversion results storage

Other Parts Discussed in Thread: TMS570LS3137

Hi,

am currently using a TMS570LS3137. In spnu499.pdf, it's written that ADC results can be read in RAM. According to the PDF, i should be able to read them in the same order than the selected inputs. For exemple if my G1SEL register is 0000 0000 0000 0111 0000 0100 0000 0111 (selected inputs are 0,1,2,10,16,17,18), i should read at the 0xFF3E0000 memory address the following results :

0xFF3E0000 -> Channel 0

0xFF3E0004 -> Channel 1

0xFF3E0008 -> Channel 2

0xFF3E000C -> Channel 10

0xFF3E0010 -> Channel 16

0xFF3E0014 -> Channel 17

0xFF3E0018 -> Channel 18

0xFF3E001C -> Channel 0

0xFF3E0020 -> Channel 1

0xFF3E0024 -> Channel 2

0xFF3E0028 -> Channel 10

0xFF3E002C -> Channel 16

0xFF3E0030 -> Channel 17

0xFF3E0034 -> Channel 18

....

....

But i actually read :

0xFF3E0000 -> Channel 1

0xFF3E0004-> Channel 2

0xFF3E0008 -> Channel 10

0xFF3E000C -> Channel 16

0xFF3E0010 -> Channel 17

0xFF3E0014 -> Channel 18

0xFF3E0018 -> Channel 0

0xFF3E001C -> Channel 1

0xFF3E0020 -> Channel 2

0xFF3E0024 -> Channel 10

0xFF3E0028 -> Channel 16

0xFF3E002C -> Channel 17

0xFF3E0030 -> Channel 18

0xFF3E0034 -> Channel 0

....

There is one 32-bit word shift in memory.

What could be the problem ? I also realized several test, by selecting one input, one after the other, and if #18 is slected with the other ones, it doesn't wok.