We are working on SPC564L64L3 controller and I would like to understand the working of deadtime registers (DTCNT0 and DTCNT1) in the FlexPWM module.
We have a requirement in the project that whenever there is a request for 100% duty cycle,
we have to turn off the deadtime register(means 0 deadtime value), and flexPWM should provide 100% output.
And all other case (means except 100% duty cycle request) it should provide the deadtime of 1.5us.
we are using complementary pair of PWM operation.
And our question is :-
- Changing the deadtime value in the runtime is possible or not?
- What are the point has to be consider before doing above said operation?
- What are the register has to be updated along with deadtime register during changing the deadtime register value?
Please provide a code snippet to do the above sequence.
Please provide the answer ASAP as this is a propriety task for the project.