An acquisition board supplies an MCP3564R from a 20 MHz active oscillator. After a conversion setting changes, register and SPI accesses still work, but the interval between scans increases. Check the converter's digital master clock and the two delay settings. Their durations can change without any change at the external clock pin. Host SCLK does not reveal which clock the ADC uses to count its own delays.
Scan timing counts digital master-clock periods
The external master clock first passes through a configurable prescaler to generate the analog master clock. A further divide by four produces the digital master clock. Continuous data rate divides the digital clock by the oversampling ratio. The ADC's within-scan and between-scan delay settings both count digital master-clock periods. Verify the actual clock source, prescaler and oversampling setting before using the frequency printed on the oscillator. If software still selects the internal oscillator, an external signal at the pin does not establish the timing.
Suppose the external input measures 20 MHz. A prescaler of four gives 5 MHz analog master clock and 1.25 MHz digital master clock, with a 0.8 µs period. With a prescaler of eight, the digital clock is 625 kHz and its period is 1.6 µs. A between-scan timer value of 1,250 corresponds to 1 ms or 2 ms, respectively. A within-scan delay of 128 ticks gives 102.4 µs or 204.8 µs. The programmed values are unchanged and both physical delays double. The within-scan field offers discrete settings. Use the listed values when trying to recover the original delay.
With an oversampling ratio of 256, the two digital clocks give continuous data rates of about 4,883 and 2,441 samples per second. These are the data-rate-clock calculations. Total time for a scan also depends on each selected conversion, filtering and the within-scan and between-scan waits. Record which settings changed if the prescaler was selected to obtain a different filter response. That helps reconcile new timestamps with previous bandwidth and timing.
Use two known inputs to distinguish the delays
The within-scan setting inserts additional time only between conversions within the same scan. It does not add another delay at the two ends. The timer setting adds a gap between scans in continuous operation. Select two stable, visibly different inputs and label their data A and B. Measure A to B, B to the next A, and A to the next A using the data-ready edges. Change the within-scan field by itself first, then change the between-scan count separately. An average sample rate cannot place the extra time between particular samples.
Interrupt scheduling can shift host timestamps relative to the ADC. Capture the data-ready signal with SPI chip select so ADC timing and host readout can be separated. Read back the settings and repeat the same number of scans. Swapping the two known input levels confirms that the channel assignment in the resulting log is correct. Two identical test levels would hide a labeling error.
A long between-scan count also changes the current waveform. With a setting greater than 256 digital master-clock periods, the data sheet says the converter can shut down at the end of a scan. It begins restarting at count 256 and is ready to begin the next scan at zero. Startup occupies the latter part of the existing wait. At 1.25 MHz, those 256 ticks are about 204.8 µs. Mark current startup and data-ready separately and avoid disturbing the supplies or reference bypass with the test fixture.
Compare settings at a scan boundary. The data sheet says changes including prescaler, oversampling and within-scan delay can restart the conversion in progress. Begin the two experiments on the same known channel, measure the interval after stable continuous operation, and retain a separate trace of the first change. Keep the 20 MHz active oscillator constant and vary one setting at a time to distinguish steady timing, a restarted conversion and host scheduling.
Verify the external input limits at 20 MHz
For the MCP3564R with digital supply at least 2.7 V, the data sheet lists a 20 MHz external clock maximum. With digital supply below 2.7 V it lists 10 MHz. External clock duty cycle also matters. A change to 1.8 V digital supply cannot be corrected merely by dividing down a too-fast clock inside the ADC. Supply a compliant frequency at the pin and recompute the timings. A nominal 20 MHz oscillator can be above 20 MHz once tolerance and temperature are included, so budget against the actual input limit.
Keep external clock, supply voltage, clock source selection, prescaler, oversampling, both delay fields and data-ready waveforms in the sample record. Identify whether 20 MHz is a nominal example or an actual measured value. First test a replacement with the same conversion settings, then change one condition at a time. The record establishes both electrical acceptance and the reason a scan took longer with the same oscillator.
