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.

CCS/TMS320F28035: ADC Sampling rate.

Part Number: TMS320F28035

Tool/software: Code Composer Studio

Hello All.

I'm new here.

I would like to ask you guys for a little help.

I'd like to control my drive with high frequency PWM > 30kHz, so TBPRD < 1000 however it doesn't work properly.

I think the problem is sampling rate in current loop, so I'd need to increase ADC sampling rate, or should I increase EPwm sampling as well?

Could you tell me please where can I set exactly sampling rate or if should I increase also EPwm interrupt frequency?

Best regards.

  • Hi,

    Jakub Zawadzki said:
    I'd like to control my drive with high frequency PWM > 30kHz, so TBPRD < 1000 however it doesn't work properly.

    What do you observe? how do you say that "it doesn't work properly"?

    Jakub Zawadzki said:
    Could you tell me please where can I set exactly sampling rate or if should I increase also EPwm interrupt frequency?

    You need to modify TBPRD value of corresponding ePWM module to vary the frequency.

    Regards,

    Gautam

  • Hi Gautam,

    I measure position from encoder and currents from AdcRegs (Clark transformation). Saying "it doesnt work properly" I mean when TBPRD < 1000 my drive doesn't reach angular position that I set and it doesn't move. However if TBPRD > 1000 everything works properly, but I would like to reach higher frequency to improve some parameters.
    Maybe it's about AdcRegs sampling?

    Thanks for response