© National Instruments Corporation
C-1
AT-DIO-32F User Manual
Appendix C
Application Notes
This appendix contains the application notes for the AT-DIO-32F board. The versatile
AT-DIO-32F can interface the PC to almost any 8-bit, 16-bit, or 32-bit parallel device or I/O
module rack. These programs explore the several handshaking modes of the AT-DIO-32F and
can easily be modified to fulfill your own specialized communication needs.
All programs were written in Microsoft C. Functions within the programs are designed as
independent modules with the necessary parameters passed in the function call. Therefore, the
functions can easily be transported to your own program.
Several software packages that support the AT-DIO-32F are also available from National
Instruments. These packages simplify programming, thus decreasing software development
time. For more information about optional software, see Chapter 1, Introduction.
Communicating with a Printer
The National Instruments AT-DIO-32F can interface the PC to any Centronics or Centronics-
compatible printer. In the following program, Port A is configured for Group 1 handshaking,
and is connected to the printer's data lines. Ports B, C, and D are not used and can be configured
in Group 2 to communicate with another device.
Cabling
Build a cable according to the following list to connect the AT-DIO-32F 50-pin connector to the
printer 36-pin connector. Any pins not listed are not connected and should be left open. Refer to
Chapter 2, Configuration and Installation, of this manual for connector and cable specifications.
Centronics
AT-DIO-32F
Centronics
AT-DIO-32F
/STROBE
1
27
ACK1
GND
19
17
GND
Data0
2
37
DIOA0
GND
20
17
GND
Data1
3
39
DIOA1
GND
21
19
GND
Data2
4
38
DIOA2
GND
22
19
GND
Data3
5
40
DIOA3
GND
23
21
GND
Data4
6
35
DIOA4
GND
24
21
GND
Data5
7
42
DIOA5
GND
25
23
GND
Data6
8
36
DIOA6
GND
26
23
GND
Data7
9
41
DIOA7
GND
27
28
GND
/ACKN
10
33
REQ1
GND
28
28
GND
BUSY
11
29
IN1
GND
29
30
GND
PE
12
20
IN2
GND
30
32
GND
/ATFD
14
31
OUT1
GND
33
34
GND
/INIT
31
22
OUT2
Содержание AT-DIO-32F
Страница 19: ......
Страница 101: ......
Страница 102: ......
Страница 123: ......
Страница 124: ......
Страница 125: ......
Страница 126: ......
Страница 127: ......
Страница 128: ......
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ......
Страница 133: ......
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......
Страница 138: ......
Страница 139: ......
Страница 140: ......
Страница 141: ......
Страница 142: ......
Страница 143: ......