Set sample state counts of channels
R2026bConfigure per-channel ADC sample-and-hold duration
Since R2026b
Model Configuration Pane: Hardware Implementation / Embedded Coder Hardware Support Package / Hardware board settings / Target hardware resources / ADC
Description
Select the Set sample state counts of channels parameter to configure the ADC sample-and-hold duration for individual channels. When selected, per-channel sample state count fields (Channel 0 through Channel 15, and Channel 16-31) become available, allowing you to specify the number of sampling clock cycles for each channel independently.
A higher sample state count value increases the sampling time, which can improve conversion accuracy for high-impedance analog sources.
This setting applies to the
r_adc ADC peripheral only.
Settings
off
(default) |
on
When you select this parameter, per-channel sample state count fields appear:
Channel 0 through Channel 15 — Specify the sample state count for each individual ADC channel (default:
7).Channel 16-31 — Specify the sample state count for channels 16 through 31 as a group (default:
7).
Recommended Settings
No recommendation.
Programmatic Use
| No programmatic use is available. |
Version History
Introduced in R2026b