# MIO and MII Digital I/O

All MetraBus boards require a cable and an interface board (such as an ISA-, PC104-, or PCI- MDB64) to interface to the host computer system.

The MIO and MII Digital I/O boards include the following hardware:

- MII-32
- MIO-32

The MIO and MII Digital I/O boards support the following UL and UL for .NET features.

## Digital In (MII-32 only)

Functions

UL: cbDIn(), cbDBitIn()

UL for .NET: DIn(), DBitIn()

PortNum

FIRSTPORTA, FIRSTPORTB, SECONDPORTA, SECONDPORTB

DataValue

0 to 255 for PORTA or PORTB

BitNum

0 to 31 for FIRSTPORTA

## Digital Out (MIO-32 only)

Functions

UL: cbDIn(), cbDOut(), cbDBitIn(), cbDBitOut()

UL for .NET: DIn(), DOut(), DBitIn(), DBitOut()

PortNum

FIRSTPORTA, FIRSTPORTB

SECONDPORTA, SECONDPORTB

DataValue

0 to 255 for PORTA or PORTB

BitNum

0 to 31 for FIRSTPORTA

## Hardware considerations

##### Functions/methods for reading back the MIO-32 output state

Although the MIO-32 is a digital output-only board, the state of the outputs can be read back using the UL functions cbDIn() and cbDBitIn(), or the UL for .NET methods DBitIn() and DIn().