Acrosser Technology AR-B2201 User manual

  • Hello! I am an AI chatbot trained to assist you with the Acrosser Technology AR-B2201 User manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
CHAPTER 1
INTRODUCTION
1.1 GENERAL DESCRIPTION
The AR-B2201 card is an inexpensive 64 channel TTL digital
input/output interface card for IBM PC/XT/AT personal
computers and their compatibles. The AR-B2201 can be used in
various applications including: industrial monitoring /
control, switch sensing and interface with parallel I/O
devices.
The AR-B2201 is designed to access or control the I/O device
through eight consecutive I/O ports in the PC. Each port of
the AR-B2201 can be configured as an input or output port by
removing or installing the output driver devices.
The AR-B2201 uses high speed CMOS devices to improve noise
immunity and reduce power consumption. If the I/O port is
defined as an input port, each input line is pulled up by a
4.7K Ohm resistor. If an I/O port is defined as an output
port, the output status can be read back by reading the same
address for verification.
All of the input buffer and output driver components are
installed on IC sockets for easy maintenance and
replacement.
1.2 FEATURES
(1) 64 TTL digital I/O channels
(2) Output status read back
(3) High output driving capacity
(4) Low input loading
(4) High noise immunity
(5) Easy to use
1.3 ORDERING INFORMATION
The following lists and describes part numbers for the AR-
B2001 boards and its accessories.
Part Number Description
AR-B2201 64 channels TTL digital
input/output card with user’s
manual
AR-B9006 34-pin screw terminal, board
for AR-B2201 with 0.6 m flat
cable ( 1m & 2m option)
2
1.3 THE AR-B2201 FUNCTIONAL BLOCK DIAGRAM
CHAPTER 2
INSTALLATION
Before using your AR-B2201, you must set the base address of
the I/O port. This chapter provides information on how to
set the base address switch. Pin assignments of the I/O
connectors are also provided.
Figure 2-1 shows the switch and component locations of AR-
B2201 card.
Figure 2-1 THE AR-B2201 BOARD LAYOUT
2.1 BASE ADDRESS SETTINGS
There is one DIP switch located on the AR-B2201 card. It is
used to select the base port address of the AR-B2201. The
operation of AR-B2201 is controlled through the input ports.
Eight consecutive I/O ports are used by the AR-B2201. The
base address of these I/O ports is selected by using Base
Address switch SW1. The AR-B2201 is factory-configured for a
Base Address of 3E0 Hex. If this base address is already
occupied, you will need to change the Base Address Switch
setting. It is essential that each peripheral device, such
as an AR-B2201, be assigned a unique base address within the
range of 200 to 3f8 Hex and that the address is on an 8-byte
boundary. Figure 2-2 shows the Base Address Switch. Use
Table 2-1 as a guide to select an unoccupied Address.
123456
ON
A9A8A7A6A5A4
ADDRESS
LINE
A9
A8
A7
A6
A5
A4
ADDRESS VALUE
HEX DECIMAL
16
32
64
128
256
512
10
20
40
80
100
200
ADDRESS = 200 * A9 + 100 * A8 + 80 * A7 + 40 * A6 + 20 * A5 + 10 * A4 + 8 * A3 (Hex)
OR
= 512 * A9 + 256 * A8 + 128 * A7 + 64 * A6 + 32 * A5 + 16 * A4 +8 * A3 (Dec)
A9 .... A2 = 0 IF SWITCH IS ON.
A9 .... A2 = 1 IF SWITCH IS OFF
.
78
A3
A3 88
This represents an address setting of 3E0 Hex.
Not Used
3
Figure 2-2. Base Address switch
Note
: Setting the switch to the "ON" position indicates
logical "0" and setting the switch of DIP SW to the "OFF"
position indicates logical "1".
Table 2-1. IBM PC I/O Address Map
I/O Address
(Hex)
Peripheral
200 - 207 Game Controller
278 - 27F Parallel Port 2
2F8 - 2FF Serial Port 2
300 - 31F Prototype Card
378 - 37F Parallel Port 1
380 - 38F SDLC,BISYNC 2
3A0 - 3AF BISYNC 1
3B0 - 3BF Mono Display / Printer port
3C0 - 3CF EGA Adapter
3D0 - 3DF CGA Adapter
3F0 - 3F7 Floppy Disk Controller
3F8 - 3FF Serial Port 1
2.2 CONFIGURING THE I/O PORTS
The AR-B2201 is configured with 4 input ports and 4 output
ports by the factory. Port 0 through port 3 is configured as
input ports and port 4 through port 7 are configured as
output ports. Users are free to re-configure the I/O ports
by installing or un-installing the output driver 74HCT273.
For each I/O port of AR-B2201, their is a IC socket to
install the output driver 74HCT273. An output port needs the
output driver be installed. If 74HCT273 is not installed,
the respective I/O port respective will be a input port.
Output drivers and their respective I/O ports are listed in
Table 2-2.
Table 2-2 I/O Ports with Their Respective Output Drivers
Port Output Driver
0 U12
1U4
2U3
3U9
4 U10
5U6
6U5
7 U11
2.3 MAIN I/O CONNECTORS
4
All I/O connections to the AR-B2201 are made through two
standard male FRC connectors. The CN2 connector is used by
port 0 through 3 and CN3 is used by port 4 through 7. These
connectors and there signal conductor functions are
described in Table 2-3 and Table 2-4.
2
1
34
33
CN2 & CN3
Figure 2-3 Main I/O connectors
Table 2-3 Pin Assignments of CN2
Pin Description Pin Description
1 Bit 0 of port 0 2 Bit 0 of port 2
3 Bit 1 of port 0 4 Bit 1 of port 2
5 Bit 2 of port 0 6 Bit 2 of port 2
7 Bit 3 of port 0 8 Bit 3 of port 2
9 Bit 4 of port 0 10 Bit 4 of port 2
11 Bit 5 of port 0 12 Bit 5 of port 2
13 Bit 6 of port 0 14 Bit 6 of port 2
15 Bit 7 of port 0 16 Bit 7 of port 2
17 Bit 0 of port 1 18 Bit 0 of port 3
19 Bit 1 of port 1 20 Bit 1 of port 3
21 Bit 2 of port 1 22 Bit 2 of port 3
23 Bit 3 of port 1 24 Bit 3 of port 3
25 Bit 4 of port 1 26 Bit 4 of port 3
27 Bit 5 of port 1 28 Bit 5 of port 3
29 Bit 6 of port 1 30 Bit 6 of port 3
31 Bit 7 of port 1 32 Bit 7 of port 3
33 Ground 34 Ground
Table 2-4 Pin Assignments of CN3
Pin Description Pin Description
1 Bit 0 of port 0 2 Bit 0 of port 2
3 Bit 1 of port 0 4 Bit 1 of port 2
5 Bit 2 of port 0 6 Bit 2 of port 2
7 Bit 3 of port 0 8 Bit 3 of port 2
9 Bit 4 of port 0 10 Bit 4 of port 2
11 Bit 5 of port 0 12 Bit 5 of port 2
13 Bit 6 of port 0 14 Bit 6 of port 2
15 Bit 7 of port 0 16 Bit 7 of port 2
17 Bit 0 of port 1 18 Bit 0 of port 3
19 Bit 1 of port 1 20 Bit 1 of port 3
21 Bit 2 of port 1 22 Bit 2 of port 3
23 Bit 3 of port 1 24 Bit 3 of port 3
25 Bit 4 of port 1 26 Bit 4 of port 3
27 Bit 5 of port 1 28 Bit 5 of port 3
29 Bit 6 of port 1 30 Bit 6 of port 3
31 Bit 7 of port 1 32 Bit 7 of port 3
33 Ground 34 Ground
5
2.4 BOARD INSTALLATION
This section provides general instructions for installing
the AR-B2201 card. For more detailed information regarding
installation of peripheral boards, consult the documentation
provided with your computer.
WARNING:
TURN OFF YOUR PC POWER SUPPLY WHENEVER INSTALLING OR
REMOVING ANY ADAPTER BOARD.
Installing the AR-B2001 card in your computer:
1. Set the switches and jumpers as described in Section 2.1
and 2.2.
2. Turn off the power of the computer and any peripheral
devices.
3. Unplug the power cord from the electrical outlet. Make a
note concerning the location of all cables and cords
attached to the rear of the system unit and then
disconnect.
4. Remove the system unit cover (refer to your computer
user’s guide if necessary).
5. Choose an available option slot. Remove the screw that
secures the expansion slot cover to the system unit.
6. Hold the AR-B2001 in one hand. With the other hand, touch
any metallic part of the computer’s cabinet. This will
safely discharge any static electricity which has built-
up in your body.
7. Align the gold edge connector with the edge of the socket
and install the back adapter with the adapter plate
screw. Gently press the board downward into the socket.
Re-install the adapter plate screw.
8. Replace the system unit cover.
9. Connect all cables and cords you previously removed in
step 3.
CHAPTER 3
REGISTERS AND PROGRAMMING
3.1 INPUT REGISTERS
6
The AR-B2201 occupies 8 consecutive address in the PC I/O
address space. The base or starting address is selected
during the installation procedure. The eight registers of
the AR-B2201 are located as follows:
Table 3-1 I/O Map
Address Description
Base + 0 Port 0
Base + 1 Port 1
Base + 2 Port 2
Base + 3 Port 3
Base + 4 Port 4
Base + 5 Port 5
Base + 6 Port 6
Base + 7 Port 7
Note that all ports are 8 bits (one byte) wide and required
byte oriented write operations rather than word operations.
All ports are readable. Writing a low (0) to an output
channel within a port generates a TTL level high output.
Writing a high (1) to an output channel generates TTL level
low output. The following describes the relay output
registers. A Power-up reset scheme is implemented to insure
that all output stay in their de-active (low) state when
power is first applied to the host computer.
The following describes the structure of every I/O port.
Base + 0 to Base + 7
D7 D6 D5 D4 D3 D2 D1 D0
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0
3.2 PROGRAMMING
No driver is supplied with the AR-B2201, since the program
is very simple and can be accomplished most efficiently
using direct I/O instructions, in what ever application
languages may be used (Basic, C Assembly, Pascal, etc.).
The following examples show you how to read input data:
Example 1: Read data of port 2 (In assembly language)
........
MOV DX,base_port+2 ;DX directs to port 3 address
IN AL,DX ;data in AL register
........
Example 2: Read data of port 7 (In BASIC language)
100 ........
7
110 data% = INP(baseport%+7)
120 ........
3. Read in data of port 0 (In C language)
........
i = inportb(baseport+0); /* data in i */
........
The following examples show you how to write data to an
output port:
Example 4: Write 20h to port 4 (In assembly language)
........
MOV DX,base_port+4 DX points to port 5 address
MOV AL,20H ;Initialize data
OUT DX,AL ;Write data out
........
Example 5: Set bit 6 of port 1 to "1", other bits not
affected (In BASIC language)
100 ........
110 data% = INP(baseport%+1)
120 OUT (baseport%+1, data% OR &H40)
130 ........
Example 6:. Write 55h to port 3 (In C language)
........
outportb(baseport+3,0x55);
........
CHAPTER 4
SIGNAL CONNECTION
Figure 4-1 shows the connection of the digital I/O.
DO
DI
AR-B2201
Other TTL device
GND
Ground
Vcc
Figure 4-1 Digital I/O Connection
8
All of the digital input channels are internally pulled up
with 4.7K Ohm resistors. You may connect them to discrete
signals from a relay or switch directly.
DI
AR-B2201
GND
Digital Ground
Switch
4.7K
+5V
Figure 4-2 Connecting DI to Switch/Relay Contacts
APPENDIX A - SPECIFICATIONS
I/O Channels: 64 TTL input or output channels (8
ports)
Input Buffer: 74HCT244 with 4.7K Ohm pull up
resistors.
Output Driver: 74HCT273
Maximum sink current - 24 mA
Maximum source current - 16 mA
I/O address: Base port switch selectable from 0 to
3F8 hex with increments of 8.
Power Consumption: +5V DC @ 120 mA maximum. (All output
low)
Operating Temp.: 0 to 50 degrees C.
Storage Temp.: -20 to 70 degrees C.
Humidity: 0% to 90% non-condensing.
Dimensions: 175 mm(W) X 109 mm(H)
APPENDIX B
AR-B2201 CIRCUIT DIAGRAM
/