SNIU028D February 2016 – September 2020 UCD3138 , UCD3138064 , UCD3138064A , UCD3138128 , UCD3138A , UCD3138A64
Most of the control is in the CYCADJCTRL register.
The measurement starts after a DPWMxA rising edge selected by CYC_ADJ_SYNC. After the rising edge, the logic waits for a sample from the Front End selected by FIRST_SAMPLE_SEL.
After the first sample, the logic waits for a sample from the Front End selected by SECOND_SAMPLE_SEL. After that, it calculates Dadj and presents it to the DPWM modules.
All the bit-fields mentioned above are in CYCADJCTRL. There is also a CYC_ADJ_EN bit to enable automatic cycle adjustment.
To enable the DPWM to accept the adjustment, it is necessary to set the CLA_DUTY_ADJ_EN bit in DPWMCTRL1.
It is also necessary to provide sample triggers to the EADC, of course.
To prevent excessive adjustment in the event of a measurement failure, the Cycle Adjustment Limit Register (CYCADJLIM) provides upper and lower limits for the