An F280049C controller uses a 20 MHz surface-mount crystal as its system reference. New firmware changes the system frequency and adjusts the PWM period register. The bench still shows 10,000 PWM cycles per second, but the second of two alternating analog channels starts reporting values that depend on the first channel. Before comparing the old and new crystal waveforms, find out how much time the ADC gives its internal sampling capacitor to settle after each channel change.
Convert the register setting to nanoseconds
The TI F28004x data sheet defines the sample-and-hold window as ACQPS + 1 periods of the system clock. An ACQPS value of six gives seven periods. Each conversion request has its own setting. The window uses the system clock, while the conversion clock ADCCLK has its own operating limits and also sets a minimum of one ADCCLK period for the window. Check the two clocks separately.
Assume the same 20 MHz surface-mount crystal is used with system clock configurations of 80 MHz and 100 MHz. With ACQPS set to six, the two windows are seven times 12.5 nanoseconds, or 87.5 nanoseconds, and seven times 10 nanoseconds, or 70 nanoseconds. If ADCCLK divides the system clock by four in both builds, it runs at 20 MHz and 25 MHz. Its periods are 50 and 40 nanoseconds respectively. Both acquisition windows exceed one ADCCLK period, but 70 nanoseconds falls below the data sheet's 75-nanosecond minimum for a source resistance at or below 50 ohms. At 100 MHz, ACQPS of seven yields 80 nanoseconds. Preserving at least the original nominal 87.5 nanoseconds takes nine periods, or 90 nanoseconds with ACQPS at eight.
Check whether the software interface takes a duration in clock periods or a raw register field. An interface that takes eight periods should write seven to ACQPS. Read back the conversion request settings used in both builds and identify the units in the log. A mix-up between an API parameter and a register field can cost one system clock period.
Check settling with the actual analog driver
TI's input circuit evaluation explains that switching onto the sampling capacitor transfers charge between the ADC and the external circuit. The amplifier, series resistance, and filter capacitor affect settling. A divider or a large series resistor calls for an acquisition window based on that actual circuit and its error limit. The 75-nanosecond specification applies under the stated low-source-resistance condition. A calculated window of 80 nanoseconds therefore cannot qualify every input channel automatically.
Set two inputs to stable, well-separated voltages within the allowed range. Sample the lower input repeatedly, then alternate with the higher one while keeping the trigger rate and phase as comparable as possible. If the lower input shifts only after the higher channel and the shift decreases as its window increases, inadequate settling is consistent with the observation. If a single channel has the same offset or reversing channel order does not move the error, inspect the reference, bias, ground, and result retrieval path. Record both source voltages and raw codes.
Preserve PWM phase and account for ADC scheduling
A fixed 10 kHz PWM waveform can coexist with a changed sample phase. A new system clock or PWM setting can move the conversion trigger. An earlier conversion on the same ADC can also delay when the acquisition window starts. First correlate the hardware PWM trigger with a simple conversion on a constant input. Then restore the real current waveform and check that sampling still falls in the intended quiet part of the switching cycle.
For boards using a 20 MHz surface-mount crystal, keep the actual system clock, ADCCLK, ACQPS for each channel, and the resulting window in nanoseconds. Include channel order and the allowable code shift. Repeat the checks with the least favorable preceding channel level, actual source impedance, and highest planned trigger rate. For an interrupt or DMA read, also check when the ADC result register actually updates. A read of the previous result can also look like channel-dependent error. Tracking the acquisition window and subsequent result timing helps identify which fix the board needs.
Once a longer window shows a clear effect, run a stepped acquisition test. Set aside any automatic scheduling that would move the measurement phase. Use a periodic trigger with controlled channel order and fixed input voltages, and increase the window in steps. Record the low channel's average code and spread. Compare with a longer, settled window on the same board to find where the result levels off. Then restore the intended trigger rate and verify that one conversion has finished when the next is due. The first test estimates settling time. The second checks whether the schedule can accommodate it. Maximizing one window can consume time needed by another channel and obscure where the error first appears.
Document what the acceptance test means by input impedance. A resistor divider, input filter capacitor, and a buffer amplifier under switched loading cannot be characterized by a simple DC resistance measurement at the pin. If a repair or a board revision also alters the analog front end, record the changes and repeat representative voltage steps and channel orders. Leave room for production and environmental variation, and pass both the analog error limit and the timing requirement to the firmware team.
