SPRUJ53B April 2024 – September 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
In Figure 20-13, the eCAP operating mode is almost the same as in previous section except capture events are qualified as either rising or falling edge, this now gives both period and duty cycle information, that is: Period1 = T1+T2, Period2 = T3+T4, and so on. Duty Cycle1 (on-time %) = T1 / Period1 x 100%, Duty Cycle1 (off-time %) = T2 / Period1 x 100%, and so on.
During initialization, write to the active registers for both period and compare. This action automatically copies the init values into the shadow values. For subsequent compare updates during run-time, the shadow registers must be used.