6-16
EZ I/O
6000 Series user’s manual
Ports A, B, and C will now output all “1”s after issuing the following
commands:
OUT 140H, FFH
(port A)
OUT 141H, FFH
(port B)
OUT 142H, FFH
(port C)
or all “0”s after:
OUT 140H, 0
(port A)
OUT 141H, 0
(port B)
OUT 142H, 0
(port C)
Note
The outputs of port B on model 6050 are inverted due to the ULN2804
high-current Darlington array.
EZ I/O input program examples
To configure ports A and C as inputs and port B as outputs, issue the
following command:
OUT 143H, 2
‘Direction Mode’
OUT 140H, 0
OUT 141H, FF
OUT 142H, 0
OUT 143H, 3
‘Operation Mode’
To read ports A and C, issue the following commands:
PORTA = INP(140H)
(port A)
PORTC = INP(142H)
(port C)
Note
Port B is used as output on the 6050 PC Microcontroller.
≡
Enhanced INT17H function definitions
This section provides definitions for the following functions: Initialize
EZ I/O (1), Write EZ I/O (1), Read EZ I/O (1), Initialize EZ I/O (2), Write
EZ I/O (2), and Read EZ I/O (2).
Initialize EZ I/O (1)
Function:
efh
Subfunction:
00h
Purpose:
To set the directions and to program the initial values of
an EZ I/O port.
Calling registers:
AH efh
AL
00h
DI
Port A configuration
xxxxxxxx xxxxxxxxB
xxxxxxxx
Initial data for port A
Summary of Contents for 6000 Series
Page 7: ...Notice to user PC 500 user s manual ...
Page 9: ...About this manual 6000 Series user s manual ...
Page 37: ...2 20 Quick start 6000 Series user s manual ...
Page 65: ...5 16 Serial ports 6000 Series user s manual ...
Page 87: ...6 22 EZ I O 6000 Series user s manual ...
Page 103: ...8 8 Analog I O 6000 Series user s manual ...
Page 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Page 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Page 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Page 157: ...21 2 Software utilities 6000 Series user s manual ...
Page 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Page 177: ...A 16 6010 technical data 6000 Series user s manual ...
Page 215: ...D 16 6040 technical data 6000 Series user s manual ...
Page 229: ...F 2 Miscellaneous 6000 Series user s manual ...