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.

Symmetrical / Center-aligned PWMs using HalCoGen

Other Parts Discussed in Thread: HALCOGEN

Hello,

 I wanted to generate Symmetrical / Center-aligned 3 PWMs using HalCoGen. I tried it with HET IDE but I am much familiar with HalCoGen. I want to extend it further for respected  variable duty cycle and inverted PWMs.  

Regards,  

Suyog

  • Hi Suyog,

    You won't be able to get this with HalCoGen's HET program. That doesn't support symmetric, center aligned PWMs.

    Did you already look at the 3Phase PWM program we have posted here on the forum before?
  • Hello, 

             Thank you for speedy reply. Earlier, I have gone through all postings related  to this topic. I am getting problem for implementation level. How  / Through what should I call for update ( duty cycle) cycle? I am new to micro-controller programming. 

            Can you help me out for some basic / sample  programs to update duty cycle ?

    Regards,

    Suyog

  • Suyog,

    So for the 3 Phase program we posted on the forum you have to write some host side API code that writes the duty cycle to specific addresses in the HET RAM, corresponding to the HET program.

    It's best to do it this way:
    a) run the program in the HET IDE to understand how it works.
    'simulate' what the CPU host side driver would do by writing the period and duty cycle to memory
    through the GUI.

    b) then write code to do the same as you saw working in the simulator.

    Depending on which variant of the 3ph PWM code you are working with the address to write to is different. So let me know what code you are working with and I can point you in the right direction.
  • Hello Anthony,
    Thank you for your guidance. Give me some time to get familiar. As I am completely new to that system.

    Regards,
    Suyog