Guides · Component basics

How to Evaluate SAR ADC Sampling Across Eight Channels on CY8C5868LTI-LP038

Evaluate eight-channel SAR sampling on CY8C5868LTI-LP038 with a frame-rate requirement, clock and DMA timing budget, and analog-settling review.

· StockWake team · Source: Original content by StockWake. Please credit StockWake when republishing.

Sensor-input-board-illustration-for-CY8C5868LTI-LP038-SAR-sampling

Evaluating an eight-channel SAR scan on the CY8C5868LTI-LP038 starts with a hard truth: dividing the 1 MSPS headline rate by eight does not guarantee 125 kSPS per channel. That calculation alone does not establish whether the reference configuration, sequencer timing, DMA transfers, and analog settling support the rate. Define your required update interval, then build a realistic timing budget from the actual project configuration.

Define the Scan and Your Required Update Rate

The Eight Channels Share One Scan

The LP038 has two 12-bit SAR ADCs. This guide evaluates one SAR scanning eight single-ended inputs. It does not combine both converters or assume simultaneous sampling. Confirm that the selected GPIOs can actually be routed in the package and project you are using.

The exact Infineon part page establishes the device identity. For an existing design, retain the complete code and selected build target. The related LP038 and LP039 firmware-target review explains why a similar ordering code does not settle that check.

Frame Time Defines the Usable Rate

These relationships assume each channel appears once in every completed scan, with no skipped results or extra conversions. The period relationship also assumes periodic, evenly spaced scans. With variable frame spacing, the reciprocal of average frame rate gives only the average interval, not a worst-case deadline. A sequential frame groups the data; it does not give all eight measurements the same sampling time.

Scroll sideways to see the whole table

Quantity

Meaning in This Scan

Relationship

Aggregate rate

Valid conversions across eight channels per second

8 × frame rate

Per-channel rate

Results per second for one channel

Frame rate

Frame update period

Interval between periodic, evenly spaced complete result sets

1 ÷ frame rate for that periodic scan

Channel time offset

Difference between sampling instants within a frame

Depends on scan order and timing

For a hypothetical periodic target of 20 kSPS per channel, you need 20,000 evenly spaced frames per second: a 50 µs update period and 160 kSPS aggregate. This is demand arithmetic, not predicted LP038 performance. An average rate of 20 kSPS per channel alone would not establish a 50 µs worst-case deadline. Define an acceptable channel time offset separately.

Build a Timing Budget from the Real Configuration

Convert Each Clock Domain to Time

This analysis uses ADC_SAR_Seq 2.0 (document 001-96232 Rev. *C) for PSoC 5LP. It is a versioned reference, not confirmation of the component installed in your project. Record both Sample Rate and Channel Sample Rate, and verify how the installed component maps those fields to scan and conversion rates. Actual timing also depends on mode, available clocks, and DMA access.

Convert ADC-domain cycles using the ADC clock frequency. Convert DMA bus cycles using the bus clock frequency. Do not combine raw cycle counts from different clock domains under one frequency. Draw the actual timeline before adding durations. Count overlapping transfer and conversion work once; include the final result-transfer tail and any trigger gap that delays the next complete update.

Reference and Bus Conditions Limit the Budget

The CY8C58LP family datasheet (001-84932 Rev. *O, Table 11-29) lists 1 MSPS for its "Sample rate with external reference bypass cap" row, 500 kSPS with no bypass and Reference = VDD, and 100 kSPS with no bypass and internal reference. Note 54 states that these specifications are based on device characterization and are not production tested. Those limits are not completed eight-channel frame rates.

Component Rev. *C also requires a bus clock at least twice the component clock for its stated sample-rate condition. Meeting that ratio alone does not prove the timing or analog performance of the complete design.

Scroll sideways to see the whole table

Budget Input

Record for the Actual Project

Check Before Accepting the Rate

Scan definition

Eight inputs, order, resolution and mode

Correct channels, routes and trigger behavior

ADC timing

ADC clock, acquisition and conversion timing

Applicable component version and reference configuration

Reference path

Reference selection, pin and bypass circuit

Matching electrical limits and startup requirements

DMA and bus

Bus clock, competing traffic and transfer sequence

Transfer tail, stalls and complete-frame deadline

Analog source

Source impedance, filter, route and channel steps

Settling error within the allowed acquisition window

Data consumer

Copy duration, processing load and buffer ownership

No overwritten or mixed-frame results

Check Analog Settling Against the Error Budget

Channel Switching Must Settle Before the Sample Is Held

A completed digital transfer cannot establish that the analog input settled. Review the source output impedance, input filter, selected route, and voltage change from the preceding channel. The relevant interval is the available acquisition window, not the whole frame period.

AN58304 Rev. *H on analog pin selection explains the routing resistance and capacitance tradeoffs. Use the actual route and source behavior when assessing settling. Do not substitute a guessed sampling capacitance or a universal maximum source resistance.

Resolution Does Not Prove Accuracy

A 12-bit result specifies the output resolution. It does not show that reference error, noise, offset, and incomplete settling fit a 12-bit accuracy target. Allocate an error limit to settling and check it separately. If longer acquisition or another source circuit is proposed, verify its support in the selected implementation and recalculate the timing budget.

Read and Validate Complete Frames

The Application Must Keep Each Frame Together

ADC_SAR_Seq uses DMA and a temporary buffer before updating the result buffer once per scan. Its EOC indicates that all channel results are ready. That is different from the raw SAR DATA register. Use the channel-result interface for channel-indexed results and verify the generated API for the installed version.

Treat EOC as a completion signal. Do not assume it locks the shared result buffer during later CPU reads. Finish reading or copying that buffer before its next update, or use a verified synchronization scheme. After securing a stable private copy, assess its processing deadline against the application's buffering, sustained throughput, and overrun policy.

Controlled Checks Separate Timing from Settling

  1. Freeze the board, project, component versions, clock tree, reference circuit, and scan order.

  2. Confirm complete frames and their intervals under the intended bus and processing load. Record trigger and EOC timing where observable.

  3. Compare stable input levels at a lower rate with the proposed operating rate.

  4. Apply controlled channel-to-channel voltage steps within the permitted input range. Compare errors with the allocated limits.

  5. Change one condition at a time and retain the configuration and results. Recheck both timing and analog error after a change.

These are proposed checks, not reported test results. When commissioning outside work, use a specific component inspection request to state the acquisition setup, evidence, and acceptance criteria. General incoming inspection is not application validation.

Frequently Asked Questions

Does 1 MSPS Divided by Eight Guarantee 125 kSPS per Channel?

No. That division assumes a sustained aggregate rate of one million valid results per second, with each channel represented equally. The reference configuration, sequencer timing, DMA access, and analog requirements must support that premise. The arithmetic alone supplies no performance guarantee.

Can the Two SAR ADCs Automatically Double the Usable Rate?

No. A two-converter design needs its own channel allocation, routing, trigger, reference, and data-transfer review. Check alignment and shared-resource load. The presence of two SAR blocks does not validate a combined throughput figure or simultaneous eight-channel capture.

Does EOC Mean That All Eight Channels Were Sampled Simultaneously?

No. In this sequencer, EOC marks completion of the result set. The samples were acquired in sequence. If the application needs simultaneous measurements, first define the permitted time offset and select an acquisition architecture that can meet it.

Is a Passing Single-channel Check Enough?

No. It does not exercise the eight-channel switching sequence, preceding-channel voltage differences, or complete-frame transfer load. Keep it as a baseline, then check the actual scan, source circuits, and system load against the same acceptance criteria.

Which Evidence Should Accompany the Procurement Decision?

Keep the exact part, board, and project revisions, configuration, acceptance limits, and results that support the decision. Distinguish a CoC, inspection report, and test report by what each actually covers. None proves this acquisition plan unless its scope and conditions address it.

Approve the Acquisition Plan with Its Conditions

Accept the plan only when the required frame interval, channel time offset, analog error, and data-consumption deadline are supported for the recorded configuration. If a requirement fails, revise the rate, analog path, or architecture, then repeat the affected checks. Preserve unresolved limits with the decision.

Related guides

Keep reading

All guides →