I/o address, Description – IEI Integration WAFER-LX v1.0 User Manual

Page 41

Advertising
background image

WAFER-LX User Manual

7 DIO_IN2

8 DIO_OUT2

9 DIO_IN3

10 DIO_OUT3

Table 2-15

Digital Input/Output Definition Options

I/O Address

DESCRIPTION

6F08

Reads DIO port data, and returns AL DIO input data. The boot-up

default input correspondence is DIO –DI3 => Bit0 – Bit3.

Configuration example:

MOV AX, 6F08h

INT 15h

When executed, the AL contents include DIO input data.

Masking required on user applications for those non-input bits.

6F09

Outputs data to DIO port. The BL contents include output data.

The boot-up default correspondence is DO0 – DO3 => Bit4 – Bit7.

Configuration example:

MOV AX, 6F09h

MOV BL, 19h

INT 15h

If set as the boot-up default, DO0 =1, DO1 – DO3 = 0

6F0A

Defines DIO port (8 bits) as input or output. Each of 8 bits in the

BL register represents one DIO signal.

If set to “1,” the DIO becomes input signal.

If set to “0,” the DIO port carries output signal.

If the boot-up default is set to 0Fh, with 4 inputs and 4 outputs.

Configuration example:

Move AX, 6F0Ah

MOV BL, 00h

INT 15h

When executed, 8 DIO signals become output signals.

2-20

2-20

IEI

®

Technology, Corp.

Advertising