D.3 assembly language samples, D.3.1 enable the dio input function, D.3.2 enable the dio output function – IEI Integration PICOe-PV-D4251_N4551_D5251 v1.00 User Manual

Page 147

Advertising
background image

PICOe-PV-D4251/N4551/D5251 User Manual

Page 133

D.3 Assembly Language Samples

D.3.1 Enable the DIO Input Function

The BIOS interrupt call INT 15H controls the digital I/O. An assembly program to enable

digital I/O input functions is listed below.

MOV AX,

6F08H

Sets the digital port as input

INT 15H Initiates the INT 15H BIOS call

D.3.2 Enable the DIO Output Function

The BIOS interrupt call INT 15H controls the digital I/O. An assembly program to enable

digital I/O output functions is listed below.

MOV AX,

6F09H

Sets the digital port as output

MOV BL,

09H

INT 15H Initiates the INT 15H BIOS call

Advertising