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.

how many simultaneous PWMs can 28335 generate maximum?

Other Parts Discussed in Thread: CCSTUDIO, CONTROLSUITE

Hello,

I have just started a new project. I am not sure if the development board I have (eZdsp F28335) is enough, or I should use other elements.

I should read 4-6 sensors through serial port and generate 6-8 PWMs with different duty cycles. PWMs will be used to drive servo motors.

Can eZdsp F28335 simultaneously generate 6 or 8 PWMs all with different duty cycles?

best wishes,

Mustafa

  • Mustafa,

    The F28335 can simultaneously generate 12 different PWM signals with separate duty cycles (6 PWM modules with 2 outputs from each PWM module).

    To assist in development I suggest taking a look at the F28335 ePWM user's guide (sprufz6) and then the various PWM examples found in the F28335 Peripheral Header Files and Example Projects download (sprc530).


    Thank you,
    Brett Larimore

  • Hello Brett,

    thank you for the answer, I will be confident with F28335 while starting the project.

    I don't have experience with TI DSP architectures. I started reading the user's guide you suggested. I am confused with different ePWM submodules. I will use PWMs to control servo motors. 8 PWM signals will all have the same frequency, but different duty cycles. The duty cycles should be adjustable during the operation as well. Which submodule should I focus on?

    Also, there  are many ePWM examples in the F28335 Peripheral Header Files and Example Projects. Which seems most suitable for this project?

    best wishes,

    Mustafa

  • Unless I am mistaken, the eCAP modules will give you 6 more ( slightly different ) for a total of 18 PWM outputs.

  • Mustafa -

    The A and B channels of each numbered ePWM module can generate a separate PWM waveform.  To change the duty cycle on the fly you can look at the timebase and counter compare submodules to change the timings and the action qualifier submodule to set up which actions occur at the timings specified in the timebase and counter compare submodules (i.e. set/clear/toggle on the PWM output).

    You might want to look at the epwm_up_aq (ePWM Up-count action qualifier) and epwm_updown_aq (ePWM up-down count action qualifier) examples in the 2833x Peripheral Header Files and Example Projects software package.

    Note, as another poster mentioned, for simple PWM toggle output operation, you can use the eCAP modules as well. (see ecap_apwm example directory)

     

  • thank you, your explanation has been of great benefit for me to understand the reference guide.

    best wishes,

    Mustafa

  • Mustafa

     

    Merhaba Ben 28335 kullanıyorum.Acaba Bana yardımcı olabılırmısın.Cok acil olursa dile benden ne dilersen:)  

    Maıl atsan haberlesırız.

    taner.goktas@gmail.com

    simdiden tesekkurler

  • Merhaba Mustafa

    Ben de c2000 serisinin f28335 Delphino modelini kullanacağım.Daha önce Atmel16 kullanmıştım.Ancak hız ve kapasitesinden dolayı böyle bir değişikliğe gitme kararı aldım. c2000'in Atmel'e göre nasıl bir üstünlüğü vardır?Benim bilmediğim başka yönlerini de biliyorsundur belki.Bir de c2000le maximum kaç tane motor sürebiliriz?

    Şimdiden teşekkürler

    Kendine iyi bak

  • merhaba Hamza,

    c2000 32-bitlik bir işlemci. doğal olarak işlemci gücü olarak  8-bitlik atmega16'dan daha üstün. daha çok dijital sinyal işleme uygulamalarında kullanılıyor. ancak kullanımı atmega'lara göre daha zor. tam olarak neye ihtiyacınız olduğunu belirleyin, datasheet'lerini karşılaştırarak karar verin. var olan programları başka işlemcilere taşımak zahmetlidir. eğer sizin işinizi görecekse, belki sizin durumunuzda atmega128 veya atmega1280'e geçmek daha mantıklı olabilir.

    saygılar,

    mustafa

  • Merhaba Mustafa

    Verdiğin bilgiler için çok teşekkür ederim.Peki biz bu microcontrollerla aynı anda kaç motor sürebiliriz?Bir hava aracı üzerinde çalışıyoruz.Hem hızlı,hem de hafif olması gerektiğinden bundan birkaç tane kullanmak istemiyoruz.Elimizde dediğim gibi atmega16lar vardı.Bunlarla non-linear fonksiyonlar yapabileceğimizi pek düşünmüyorum.Senin bu konuda bir bilgin var mı?Kısacası c2000le aynı anda kaç motor sürebilirz ve atmellerle non-linear fonksiyonları çalıştırabilir miyiz?

    Çok teşekkürler

    Hamza

  • eCap modülünü de kullanarak 18 pwm üretebilirsin.

    hangi üniversite?

  • Merhaba Mustafa 

    F28335 serisiyle PWM sinyalleri üretmeye çalışıyorum. Hazır bulduğum kodları çalıştırırken şöyle hatalar alıyorum:

     undefined     first referenced                                                  

      symbol           in file                                                       

     ---------     ----------------                                                  

     _DevEmuRegs   C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_SysCtrl.obj

     _EPwm1Regs    C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\Untitled1.obj      

     _EPwm2Regs    C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\Untitled1.obj      

     _EPwm3Regs    C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\Untitled1.obj      

     _FlashRegs    C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_SysCtrl.obj

     _GpioCtrlRegs C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_EPwm.obj   

     _PieCtrlRegs  C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_PieCtrl.obj

     _PieVectTable C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_PieVect.obj

     _SysCtrlRegs  C:\\CCStudio_v3.3MCU\\MyProjects\\pwm5\\Debug\\DSP280x_SysCtrl.obj

     

    error: unresolved symbols remain

    error: errors encountered during linking; "./Debug/pwm4.out" not built

     

    Bu problemi nasıl çözebilirim? İstersen kodu da gönderebilirim.

    Teşekkürler.

     

  • The links you provided are not valid

    can you tell me the updated links?

    Thanks

  • Hi Jianwei,

    The ePWM user guide for F28335 can be found under the 'user guides' section in the technical documentation tab for the F28335 device: www.ti.com/.../technicaldocuments

    The examples and header files for F28335 can now be found in ControlSUITE