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
    July 26, 2019

    Hi,

    so, summarizing, if you cut the external reset circuit, unplug the debugger, power the board and monitor the pin RESET_B, this pin is always low. Right?

    Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    July 26, 2019

    this is how it shows when i enable hardwar reset mode it connected but core is always inactive

    zambrano.luigi
    ST Employee
    July 26, 2019

    Please, could you confirm that if you cut the external reset circuit, unplug the debugger, power the board, the pin RESET_B is always low?

    Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    July 26, 2019
    yes that is the issue
    kjay
    kjayAuthor
    Associate III
    July 26, 2019

    yes you are absolutely right..thats the issue..

    kjay
    kjayAuthor
    Associate III
    July 26, 2019

     i cut the external reset circuit, unplugged the debugger, power the board, the pin RESET_B is always giving low..that is main problem..in discovery it is not it works well...for my circuit is gives low ..always

    kjay
    kjayAuthor
    Associate III
    July 26, 2019

    i have developed four pcb board with four differnt ic ...all got same issue..cheked power supply and reset circuit...but reset is low while i power up...i dont know what to do next..help out..

    zambrano.luigi
    ST Employee
    July 26, 2019

    Hi,

    sorry, but it is very complicated to address your issue without the hardware, also because the schematic of your board seems aligned with the schematic of our Discovery. Please, could you let me know where you are located in order to involve the local support?

    Regards,

    Luigi

    kjay
    kjayAuthor
    Associate III
    July 27, 2019

    hi,

    i followed discovery board to make the core work..you have seen my schematic right is there anything i am missing in order to make core run...i need a minimum working configuration schematic for spc 56EL60L5CCOSR core...i checked hardware..4 times with four different board there is very low possibility of hardware error since 4 boards behaves same...so i think some problem in configuration...is spc56 and dicovery are same interns of minimum configuration or ..SPC 56 should require different config..please check my schematic and ensure i had it right interms of config of schematic...i am in india..tamilnadu state...

    kjay
    kjayAuthor
    Associate III
    July 30, 2019

    i found out the problem it was one of the decoupling cap.........solved it ...it is working now thank you for help ..now reset is LOW have to check with JTAG program..any way thank you.

    zambrano.luigi
    ST Employee
    July 30, 2019

    Hi,

    good news! Yesterday I talked about your issue with the local support asking him to contact you in order to check the hardware, but I'm happy to know that in the meantime the issue has been solved.

    Best Regards,

    Luigi