Dio8255Mode


Function

 

Sets or gets the orientation setting (8255 mode) for dual direction devices.

 

Variable type

 

[ C#: short[] ] [ VB.NET: Short() ]

The number of elements in the array is incremented by 1 for every 3 ports on the device.

 

Initial value

 

0

 

Setting value

 

Makes the following settings for one 8255 chip (3 ports).

Value [Hexadecimal]

Port A

Port C

(High 4bit)

Port B

Port C

(Low 4bit)

80

OUTPUT

OUTPUT

OUTPUT

OUTPUT

81

OUTPUT

OUTPUT

OUTPUT

INPUT

82

OUTPUT

OUTPUT

INPUT

OUTPUT

83

OUTPUT

OUTPUT

INPUT

INPUT

88

OUTPUT

INPUT

OUTPUT

OUTPUT

89

OUTPUT

INPUT

OUTPUT

INPUT

8A

OUTPUT

INPUT

INPUT

OUTPUT

8B

OUTPUT

INPUT

INPUT

INPUT

90

INPUT

OUTPUT

OUTPUT

OUTPUT

91

INPUT

OUTPUT

OUTPUT

INPUT

92

INPUT

OUTPUT

INPUT

OUTPUT

93

INPUT

OUTPUT

INPUT

INPUT

98

INPUT

INPUT

OUTPUT

OUTPUT

99

INPUT

INPUT

OUTPUT

INPUT

9A

INPUT

INPUT

INPUT

OUTPUT

9B

INPUT

INPUT

INPUT

INPUT

 

Remarks

 

Sets or gets the orientation setting (8255 mode) for dual direction devices.