> 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/hypersim/examples/i-o-interfaces/op4810-io-or-op4815-io-with-op48h30.md).

# OP4810-IO or OP4815-IO with OP48H30

## Description

The **OP4810\_OP4815\_Integration\_OP48H30** example, located in **File > Open an Example File > IO Interfaces**, demonstrates how to configure Analog, Static Digital, Pulse Width Modulation (PWM), and Time-Sampled Digital (TSD) signals on OP4810-IO or OP4815-IO expansion units.

The example illustrates I/O configuration, loopback wiring using two **OP48H30** modules, and I/O validation with ScopeView.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-44f45dcd1b780b062123fd7df5cf448a6e8e5045%2Fimage%20(1613).png?alt=media" alt=""><figcaption></figcaption></figure>

## Requirements

* **One** OPAL-RT simulator with support for an I/O expansion unit.
* **One** OP4810-IO or OP4815-IO expansion unit with two OP48H30 modules
* **One** PCIe cable between the simulator and the expansion unit.
* **Two** Ethernet cables.
* At least **two** [OP8331 splitter cables](https://www.opal-rt.com/docs/op48hxx/input-output-modules/op48h30-description/op8331-splitter-cable-hd62m-to-2x-db37f). A complete setup using all I/Os on both modules requires **eight splitter cables**.
* At least **one DB37 gender changer or DB37 cable**. A complete setup using all I/Os on both modules requires **six DB37 gender changers or cables**.

## Detailed explanation

### Connect the expansion unit

Follow the instructions provided in the **System Description Document** delivered with your system, or refer to:

* [Connect the OP4810-IO expansion unit](https://www.opal-rt.com/docs/op4810-io/get-started/connect-the-expansion-unit)
* [Connect the OP4815-IO expansion unit](https://www.opal-rt.com/docs/op4815-io/get-started/connect-the-expansion-unit)

### Connect OP8331 splitter cables to the OP48H30 modules

Connect an **OP8331 splitter cable** to each **OP48H30 DB37 connector**.

If only **two splitter cables** are available, connect them to:

* **P1** for analog I/O
* **P2** for digital I/O

### Connect loopbacks to the OP8331 splitter cables

**Analog I/O loopbacks**

Because each module provides more analog outputs than analog inputs, the loopback wiring depends on the analog output range being tested:

* **Analog outputs 00-15:** Connect **P1-B2** to **P1-B1**.
* **Analog outputs 16-31:** Connect **P3-B1** to **P1-B1**.
* **Analog outputs 32-47:** Connect **P3-B2** to **P1-B1**.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-0148720110d47cdf8cd154e353ed760817d023aa%2Fimage%20(88).png?alt=media" alt=""><figcaption></figcaption></figure>

**Digital I/O loopbacks**

Each OP48H30 module supports 64 configurable digital I/Os.

* **Static Digital I/O:** Connect **P4-B1** to **P2-B1**.
* **PWM or TSD I/O:** Connect **P4-B2** to **P2-B2**.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-4cc07143932301b82573b937418c5a30cde1af20%2Fimage%20(89).png?alt=media" alt=""><figcaption></figcaption></figure>

### Configure the OPAL-RT Board I/O Interface

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-2f9d88d8aa882dfdbfdf076156358a9eb09d0b7f%2Fimage%20(90).png?alt=media" alt=""><figcaption></figcaption></figure>

In HYPERSIM, configure the **OPAL-RT Board** according to your hardware:

* **Chassis Type:** Select the expansion unit model: **OP4810 (Versal)** or **OP4815 (Versal)**.
* **IP Address** and **Chassis ID:** Configure these parameters to match the expansion unit settings. Refer to the **System Description Document** or the information displayed on the expansion unit LCD screen.
* **Chassis Name:** Configure this parameter to match the expansion unit name. Refer to the **System Description Document** or the information displayed on the expansion unit LCD screen.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-89c87f00fb76c337c8724c26cc6c6c333f7d12f3%2Fimage%20(1719).png?alt=media" alt=""><figcaption></figcaption></figure>

## Simulation and results

The example model includes designs for each I/O type supported by the OP48H30 modules:

1. Analog I/Os
2. Static Digital I/Os
3. Pulse Width Modulated I/Os
4. Time-Sampled Digital I/Os

After the simulation starts, input and output signals can be inspected and compared using ScopeView. A predefined template file named **OP40810\_OP4815\_Integration\_OP48H30.svt** is available in the example project directory.

### Analog I/Os

Each OP48H30 module has eight groups of eight analog I/O channels.

Two groups are analog inputs:

1. Ain channels 0–7 (connector P1)
2. Ain channels 8–15 (connector P1)

Six groups are analog outputs:

1. Aout channels 0–7 (connector P1)
2. Aout channels 8–15 (connector P1)
3. Aout channels 16–23 (connector P3)
4. Aout channels 24–31 (connector P3)
5. Aout channels 32–39 (connector P3)
6. Aout channels 40–47 (connector P3)

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-61c98ffaf408c93870bfdd24ddeb8e0602675b7a%2Fexamples-OP48H30-5.png?alt=media" alt=""><figcaption></figcaption></figure>

The example defines eight reference analog signals that are sent to all groups of analog outputs in both slots, supporting any of the analog loopback configurations.

<figure><img src="broken://files/pH4Cp6y6e68gWxPnbMUQ" alt=""><figcaption></figcaption></figure>

ScopeView pages AIO1 and AIO2 display the 16 analog inputs for each slot. Each graph shows one analog input and its associated reference analog output.

<figure><img src="broken://files/ljIVUxixXMovDTDcPe9f" alt=""><figcaption></figcaption></figure>

### Static Digital I/Os

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Four of these groups are configured as static digital I/Os:

1. Dio channels 0–7: static digital inputs (connector P2)
2. Dio channels 8–15: static digital inputs (connector P2)
3. Dio channels 32–39: static digital outputs (connector P4)
4. Dio channels 40–47: static digital outputs (connector P4)

<figure><img src="broken://files/2vDVlnGVD9B937W153Vx" alt=""><figcaption></figcaption></figure>

The example defines eight random binary reference signals that are sent to all groups of static digital outputs in both slots.

<figure><img src="broken://files/FpliwpsnHU8GdkkiJzGX" alt=""><figcaption></figcaption></figure>

ScopeView pages DIO1 and DIO2 display all static digital inputs (channels 0 to 15). Each graph shows one static digital input and its associated reference random binary output.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-e5ea7315fcfdef19d8275e38365434d835e11c90%2Fimage%20(43).png?alt=media" alt=""><figcaption></figcaption></figure>

### Pulse Width Modulated (PWM) I/Os

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Two of these groups are configured as PWM I/Os:

1. Dio channels 16–23: PWM digital inputs (connector P2)
2. Dio channels 48–55: PWM digital outputs (connector P4)

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-20d7848cd64fd33b652af79cac31d45d89541ce6%2Fimage%20(44).png?alt=media" alt=""><figcaption></figcaption></figure>

The example defines eight frequencies (from 100 Hz to 800 Hz) and eight duty cycle ratios (from 0.1 to 0.8) that are sent to the PWM digital output group of each slot.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-80b6f390d3d53b60de0f324c0b9d5ec7d49f9a46%2Fimage%20(46).png?alt=media" alt=""><figcaption></figcaption></figure>

ScopeView pages PWMIO1 and PWMIO2 display the eight frequencies and the eight duty cycle ratios detected from the PWM digital input channels. Each graph shows the detected value for an input channel and the associated reference value.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-84d74dee51503fa3112db104a36bd5ad254c420d%2Fimage%20(91).png?alt=media" alt=""><figcaption></figcaption></figure>

### Time-Sampled Digital (TSD) I/Os

Each OP48H30 module has eight groups of eight configurable digital I/O channels. Two of these groups are configured as Time‑Sampled Digital I/Os:

1. Dio channels 24–31: TSD Event Detector (connector P2)
2. Dio channels 56–63: TSD Event Generator (connector P4)

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b88de0fc5d91d82705c5af051011cf01d2eae356%2Fimage%20(94).png?alt=media" alt=""><figcaption></figcaption></figure>

The example defines eight reference sequences of events. Each sequence contains four events (rising, falling, rising, falling) at different ratio values.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-14276d0edbea15f1f8ef575e154a6d9c3677b8ca%2Fimage%20(95).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-571744bda4220ee2813be1f3b99a1385ddfa0653%2Fimage%20(96).png?alt=media" alt=""><figcaption></figcaption></figure>

ScopeView pages TSDIO1 and TSDIO2 display, side by side, the four ratio values of the events generated by an output channel and the ratio values of the events detected on the associated input channel. The types of events (rising or falling edges) are not shown.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6a58ceb8c10ceca2bc28e5b53b95e30d69698115%2Fimage%20(97).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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/hypersim/examples/i-o-interfaces/op4810-io-or-op4815-io-with-op48h30.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.
