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.

modification of the duty cycle in a Halcogen-Generated N2HET-Program

Other Parts Discussed in Thread: HALCOGEN

Hello

I am using Halcogen to generate a 300kHz PWM. I need to modify the duty cycle of the PWM at runtime. I am doing so using het.h::pwmSetDuty(...).

Regarding the generated PWM program, I would be glad to know the follwing:

1. Is it safe to call the function any time? In other words: Does the generated Halcogen program contain some sort of double-buffer such that the new duty-cycle values written by the CPU are only loaded at the end of the PWM period?

2. Is a documentation available that explains the generated program?

Regards,

Flurin

  • Flurin B��hler said:

    Hello

    I am using Halcogen to generate a 300kHz PWM. I need to modify the duty cycle of the PWM at runtime. I am doing so using het.h::pwmSetDuty(...).

    Regarding the generated PWM program, I would be glad to know the follwing:

    1. Is it safe to call the function any time? In other words: Does the generated Halcogen program contain some sort of double-buffer such that the new duty-cycle values written by the CPU are only loaded at the end of the PWM period?

    HW: Yes, it is only updated at the end of the PWM period.

    2. Is a documentation available that explains the generated program?

    HW: NO

    Regards,

    Flurin