Skip to main content
kjay
Associate III
July 1, 2019
Solved

how to configure flex pwm to give complementary pwm of 20 khz.

  • July 1, 2019
  • 59 replies
  • 27260 views

.i need help with calculating clock and time peroid and waht is other pwm pin if pwm0 has d10 which is complemetary pin in spc56el70l5-disp

    This topic has been closed for replies.
    Best answer by zambrano.luigi

    Hi,

    as already explained, when the synchronization is enabled, all the submodules are managed as a unique driver with 8 channels (ch0 = A0, ch1 = B0, ch2 = A1, ch3 = B1, ch4 = A2, ch5 = B2, ch6 = A3, ch7 = B3). So, if you want to enable the outputs A1 and B1, you have to activate in the PWM configuration the channels 2 and 3 (see Sync_Conf.JPG in attachment). In attachment you can find the modified version of your project in which I have enabled the channels A0, B0, A1 and B1 (in particular, I have configured B0 as the complementary of A0 and B1 as the complementary of A1). In the picture Sync_PWM_Waveforms.JPG you can see the output waveforms.

    Best Regards,

    Luigi

    59 replies

    zambrano.luigi
    ST Employee
    November 22, 2019

    Hi,

    I have verified your project and it works fine on my side. Please, consider that if you want to use 2 different CANs, both MUST be connected on a dedicated transceiver, and the transceivers MUST be connected with CAN peripherals able to receive the messages sent by your code (the can_lld_transmit cannot send a message if the previous one has not been received yet) . On our SPC56xL Discovery there is only one transceiver that can be connected with CAN0 or CAN1 using jumper JP19 and JP22. So, only one CAN can be used to transmit at time. If you want to use a second CAN, you have to use an external transceiver.

    Best Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    November 29, 2019

    i need real time variable viewer like stmstudio..is there any option or software i can use for spc56 microcontroller....and another thing i got pls usb/jtag..spc5-udestk...i want to download udek stk 5.0 full version..i only have starter kit version...while downloading it asks activation key...whwre can i get it ..i got Serial number of PLS USB/JTAG ..but i dont know what is activation key...please help...in ude stk starter kit debugger gives value 500ms only...that is issue...

    zambrano.luigi
    ST Employee
    November 29, 2019

    Hi,

    the starter kit is the free of charge version of UDE PLS. The full version requires a specific license. I guess the activation key is the key provided when you buy a license. In any case, for any specific item related to UDE PLS, please contact to the PLS support.

    Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    November 29, 2019

    is there any software like stmstudio..??for spc56 microcontroller

    kjay
    kjayAuthor
    Associate III
    December 7, 2019

    how can i view real time variables ..what hardware should i buy or what software should i use....for stmstudio like experience...viewing real time without affecting the running of controller...please suggest or guide me..

    zambrano.luigi
    ST Employee
    December 13, 2019

    Hi,

    sorry for the delay. As already specified, if you want to use advanced debug features, you have to move on pro versions of debuggers like UDE PLS or Lauterbach. you can find all the information about them on the related producer web sites.

    Best Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    December 13, 2019

    thanks for your help...i have one issue...my spc5660l5 is normally 40deg cel while it drive motor or CAN communication..is it normal..or am i drwing current from pwm pins...but spc5670 discovery though stays cool...as compared..is there an issue..

    kjay
    kjayAuthor
    Associate III
    December 23, 2019

    i need to know SPC56EL60L5 has EEPROM memeory...i have this driver component given in the example of SPC56EL70L5 but i change the platform..it shows error this device not supported by EED driver.whats is the isssue..please help.

    zambrano.luigi
    ST Employee
    December 23, 2019

    Hi

    currently the EEPROM Emulation Driver is provided only for the SPC56EL70L5 and not for the SPC56EL60L5.

    Best Regards,

    Luigi