Hi Here is my pseduo-code:
// In my CAPCOM1 initalisation CC1_T0REL=0xF830; // Generate 10kHz PWM // Produce 50% duty cycle Offset=(0xFFFF-CC1_T0REL)>>1; // This will produce 50% duty cycle of 10kHz PWM CC1_CC2=CC1_T0REL+Offset;
Thank you for illustrating another example of using General Purpose Timer 1. It seems that 3 timer blocks are need to produce PWM especially varying duty cycle. Thank you for letting me know. Kind regards AJ