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.
Tool/software: Code Composer Studio
Hello Hotline,
I initialed the TBCTL Register with CLKDIV 0 and HSPCLKDIV 0 -> the timebase was clocked with SYSCLK (e.g. 80MHz) and then the DB Generator adjusted using Half Clock Cycle -> 2* SYSCLK?. How can that happen.
Best Regards
Gerfried
Gerfried,
to make sure I understand what you are saying please confirm my statements.
Please make sure you have enabled the module clock before you set your peripheral configuration. Secondly have you tried adding breakpoints in your code to determine exactly when the DBCTL.HALFCYCLE bit is being set? That bit is not set automatically by hardware, so something in your code likely did this.
Regards,
Cody
Hello Cody,
thank you for your quick answer.
Init: first 3. (PCLKCR1.EPWMxENCLK = 1) and then 1,2,4...
but I only not understand why db generator works with 2*SYSCLKOUT, when the highest
frequenzy for ePWM is SYSCLKOUT.
Are there a document with full explanation?
Regards
Gerfried
Gerfried,
The Technical Reference Manual explains everything you need to know to use this feature. In this case I do not think we provide exactly how half-cycle clocking is implemented.
Please following the instructions in the TRM, its should be pretty simple, just enable it and be sure to adjust your Dead-Band delay values according to the new formula.
Regards,
Cody