> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/pe-add-on-opal-rt/system-definition-configuration/configure-the-hardware-fpga/digital-inputs-section.md).

# Digital Inputs Section

This page is populated with a list of the Digital Input channels available for the selected [**Hardware Configuration**](https://www.opal-rt.com/docs/pe-add-on-opal-rt/hardware-configurations-reference/default-hardware-configuration-fpga-firmwares.md). If no digital inputs are available in the hardware configuration, this page will not appear in the System Definition tree.

Digital Input data can be mapped to other simulation components by navigating to their respective configuration pages ([gates](https://www.opal-rt.com/docs/pe-add-on-opal-rt/system-definition-configuration/configure-the-circuit-model/gates.md), [waveforms](https://www.opal-rt.com/docs/pe-add-on-opal-rt/system-definition-configuration/configure-the-circuit-model/waveforms.md), [Digital outputs channels](https://www.opal-rt.com/docs/pe-add-on-opal-rt/system-definition-configuration/configure-the-hardware-fpga/digital-outputs-section.md)). Mapping options may vary between **Hardware Configuration**.

## Digital Input settings

<table><thead><tr><th width="250.44439697265625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable Monitoring Channels</strong></td><td>Enables the digital inputs monitoring feature for every Digital Input channel. When this option is enabled, the Digital Inputs section will be populated with <strong>ConnX.DI</strong><em><strong>XX</strong></em> as described in the table below.</td></tr><tr><td><strong>Enable PWM Measurement Channels</strong></td><td>Enables the PWM Measurement feature for every Digital Input channel. When this option is enabled, an <strong>Advanced</strong> subsection is created under the Digital Inputs section and populated with <strong>ConnX.DI</strong><em><strong>XX</strong></em><strong> Duty Cycle</strong> and <strong>ConnX</strong>.<strong>DI</strong><em><strong>XX</strong></em><strong> Frequency</strong> channels as described in the table below.</td></tr></tbody></table>

## Digital inputs section channels

<table><thead><tr><th width="201.00006103515625">Channel Name</th><th width="89.888916015625">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>ConnX.DI</strong><em><strong>XX</strong></em><strong> Duty Cycle (%)</strong><br><strong>Default Value: 0%</strong></td><td>Output</td><td><p>Duty Cycle of the digital signal acquired on channel ConnX.<em>DIO&#x3C;XX></em> (see section PWM measurement accuracy)</p><p>When <strong>Enable PWM Measurement Channels</strong> is enabled, the <strong>Digital Inputs >> Advanced >> Duty Cycle</strong> section is populated with one <strong>ConnX.DIO</strong><em><strong>XX</strong></em><strong> Frequency</strong> channel for each Digital Input channel.</p></td></tr><tr><td><strong>ConnX.DI</strong><em><strong>XX</strong></em><strong> Frequency (Hz)</strong><br><strong>Default Value: 0Hz</strong></td><td>Output</td><td><p>Frequency of the digital signal acquired on channel ConnX.<em>DIO&#x3C;XX>.</em></p><p>When <strong>Enable PWM Measurement Channels</strong> is enabled, the <strong>Digital Inputs >> Advanced >> Frequency</strong> section is populated with one <strong>ConnX.DIO</strong><em><strong>XX</strong></em><strong> Frequency</strong> channel for each Digital Input channel.</p></td></tr><tr><td><strong>ConnX.DI</strong><em><strong>XX</strong></em><br><strong>Default Value: 0</strong></td><td>Output</td><td><p>Digital data read by the FPGA on channel ConnX.<em>DIO&#x3C;XX>.</em></p><p>The Digital Inputs section is populated with one <strong>ConnX.DIO</strong><em><strong>XX</strong></em> channel for each Digital Input channel available in the selected <strong>Hardware Configuration</strong>.</p></td></tr></tbody></table>

## PWM measurement accuracy <a href="#inlineextension-pwm-measurement-accuracy" id="inlineextension-pwm-measurement-accuracy"></a>

The accuracy of the PWM Measurement feature is dependent upon the frequency and duty cycle of the measured signal. The tables below provide benchmark information describing the maximum expected measurement error across a range of PWM frequencies.

### **Error in frequency measurement**

These data points have been validated for Duty Cycles between 0.1 and 0.9.

| Frequency Range | Percent Error in Frequency Measurement |
| --------------- | -------------------------------------- |
| 1Hz - 10Hz      | < 0.5%                                 |
| 10Hz - 100Hz    | < 0.05%                                |
| 100Hz - 1kHz    | < 0.01%                                |
| 1kHz - 10kHz    | < 0.05%                                |
| 10kHz - 100kHz  | < 0.1%                                 |
| 100kHz - 500kHz | < 2%                                   |

### **Error in duty cycle measurement**

Duty cycle error has been measured at three Duty Cycles: 0.1, 0.5, and 0.9.

| Frequency Range | Percent Error in Duty Cycle Measurement Duty Cycle: 0.1 | Percent Error in Duty Cycle Measurement Duty Cycle: 0.5 | Percent Error in Duty Cycle Measurement Duty Cycle: 0.9 |
| --------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| 1Hz - 10Hz      | < 0.0005%                                               | Negligible                                              | Negligible                                              |
| 10Hz - 100Hz    | < 0.005%                                                | < 0.001%                                                | < 0.001%                                                |
| 100Hz - 1kHz    | < 0.05%                                                 | < 0.01%                                                 | < 0.01%                                                 |
| 1kHz - 10kHz    | < 0.1%                                                  | < 0.05%                                                 | < 0.05%                                                 |
| 10kHz - 100kHz  | < 1%                                                    | < 0.1%                                                  | < 0.1%                                                  |
| 100kHz - 500kHz | < 10%                                                   | < 2%                                                    | < 1%                                                    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/pe-add-on-opal-rt/system-definition-configuration/configure-the-hardware-fpga/digital-inputs-section.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
