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