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.

TMS320F28075: Continuous ADC sample example for C2000Ware

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Is there an example fr continuously sampling the ADC for C2000Ware/Driverlib? I did not find any in the example folder.

  • Hi Gerard,

    Gerard S(B#) said:
    Is there an example fr continuously sampling the ADC for C2000Ware/Driverlib?

    Nope, you simply need to configure INTxCONT register for enabling continuous mode.

    Regards,

    Gautam

  • Hi Gerard,

    It looks like the closest example we have is for a simple epwm + ISR based sampling. You can reduce the ePWM period to increase the sample rate, but the overhead from the ISR will limit how far you can practically push this.

    You might want to take a look a the bitfield examples in \device_support\f2807x\examples\cpu1\ instead

    Alternately, there isn't a specific example, but you could also try modifying the ePWM example to use 'burst mode' instead of the regular priority scheme (see the TRM). If you set burst size = 0 (1 conversion per trigger) and set the ISR to occur at the end of SOC15 then you should be able to reduce the ISR overhead vs. the stock ePWM example by a factor of 16 (in the ISR you'd then read result0 to result15).