SPRUHM9H October 2014 – May 2024 TMS320F28075 , TMS320F28075-Q1 , TMS320F28076
In Figure 15-15, 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.