Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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 questions about reading conversion result from a FIFO

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

I am learning to use ADC recently, and confused about reading conversion result from a FIFO.
here I take EVENT GROUP for example, the 8 ADEVBUFFER registers offset are 0x90/0x94/0x98/0x9C/0xA0/0xA4/0xA8/0xAC.

when using LDR to read single convention result and register address is 0x90.
question 1: after get LDR instruction, there will be one convention result write in register 0x90?
question 2: after converntion result write to register 0x90, there will be one convention result feedback to bus?

when using LDM instruction to read out 8 convention results
question1: after get LDM instruction, convention result will write to 8 rgisters one by one?
question2: convention result will feed back to bus one by one?

  • Hi,

    There is one example in HALCoGen help. You can use this example to study ADC.

    Before reading the ADC conversion result, you need to check if the conversion is complete: G1_END bit of AGEVINTFLG register.

    After the conversion is complete, read the data from ADEVBUFFER0

    What is the advantage of using ldr instruction directly rather than using APIs generated by alCoGen:

    adcStartConversion(adcREG1,adcGROUP1);

    while((adcIsConversionComplete(adcREG1,adcGROUP1))==0);

    ch_count = adcGetData(adcREG1, adcGROUP1,&adc_data[0]);