MIO Pin Programming Example - MIO Pin Programming Example - AM026

Versal AI Edge Series Gen 2 and Prime Series Gen 2 Technical Reference Manual (AM026)

Document ID
AM026
Release Date
2025-12-23
Revision
1.3 English

This example shows the programming to route a signal.

Route Signal Through MIO

Routing a signal through an MIO can be a two-step process.

  • Configure the MIO pin (required)
  • Select between the PMC and LPD MIOs (not always required)

Configure I/O Buffer for Input

The steps to configure the input for LPD MIO pin 18 include:

  1. Select the MIO (PMC or LPD) using LPD_MIO_Sel (0: PMC MIO).
  2. Route the signal through the MIO using the MIO_PIN_18 register.
  3. Disable the output driver. Write a 1 to the MIO_Bank2_Tristate [PIN_18_TRI] bit.
  4. Select the CMOS input (not Schmitt). Write 0 to the BANK_RX_SCHMITT [18] bit.
  5. Enable the weak internal pull-up resister. Write 1 to the BANK_PU [18] bit.
  6. Select a slow slew rate. Write 0 to BANK_SEL_SLEW [18].