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.

TMS320F28377D: External ADC(ADC12DL040) code optimization.

Part Number: TMS320F28377D
Other Parts Discussed in Thread: ADC12DL040

Hello.

I am trying to do an external ADC using ADC12DL040.

The sampling rate is 10MHz (0.1us).

 However, the sampling rate is 2MHz (0.4us).

 I am attaching the code and the CCS screen.

Thak you.

 

Question 1) 

Is there any way I can optimize my code?

Question 2) 

Even without reading the external ADC there is a lot of delay.

Is there any way to optimize this code?

GPIO_WritePin(MCU_TP2, 1);

GPIO_WritePin(MCU_TP2, 0);

Question3)

Does F28377D (200MHz) take 280ns  to turn GPIO ON/OFF? 

  • Have you enabled optimization in CCS? The default is set to off.

    Also, Driverlib usually provides ASSERT checks within the functions to check if parameters are valid. This can be turned off by removing the "DEBUG" predefined macro in CCS project settings

    Regards,

    Veena