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.

Problem in reading external ADC while running from FLASH

Other Parts Discussed in Thread: TMS320F2812

hi,

     we have designed a controller board  using TMS320f2812 in which we are using external parallel ADC(AD7865) and external parallel DAC . to interface the ADC we used GPIO pins as data lines. When executing in the RAM it is working fine but if we add additional code then ADC is not read and when we remove additional code then  ADC values are read.  Also when we burn the code that is running fine in the RAM mode into FLASH then also ADC values are not read.

my doubt is that it is the probelm of timing issue related to ADC. i have two questions

1. why we are not able to read ADC values when we add additional code?

2. why the ADC values are not read when we burn the code into FLASH?

Can any one kindly suggest me some solution?

  • hi

    the problem is probably  in the time diagram. when you  add additional code it changed. read your ADC datasheet and look at your device with oscilloscope to find the cause.

    as for the flash, the flash code execution is slowly than RAM code execution so it is also may cause changes in the time diagram. you can run time-critical code from RAM instead flash with PRAGMA directive.

    regards