Brainboxes IE-340, IE-736, IE-769, IE-780, PC IEEE CARD User Manual

Page 1
PC IEEE CARD
4.32 EDITION Dec 1994
Page 2
PC IEEE Reference
Thank You For Buying
PC IEEE 488
Interface!
huge range of industry standard IEEE 488 devices.
Your board is designed and manufactured in England, and our policy is one of complete support to our dealers and direct to our users. Please note, PC IEEE is designed and manufactured ’in house’ and is completely understood by our staff. Its great strength is the software support we give it. Our intention is to supply the software and any technical information you may need to allow you to exercise complete control over the PC IEEE board and IEEE devices. After searching the manuals, do not hesitate to contact us on our HOTLINE numbers given on Intro­2 if you need help.
We are particularly keen to provide new operating system or language drivers to expand the range of applications using our PC IEEE board.
We trust that if you adhere to the following procedures you will enjoy many years of useful service from your IEEE 488 interface.
Intro-3
Page 3
PC IEEE Reference
PC IEEE MANUAL__________________
The Layout Of This Manual._________________________
This manual is a complete description of how to install and
configure the PC IEEE 488 interface board.
The PC IEEE card, like the PC Elite IEEE, is an extremely easy to use and understand implementation of the IEEE-488 interface for IBM PC and compatible computers. PC IEEE has truly tamed the PC and the GPIB BUS allowing you to get the most out of your IEEE devices!
Chapter 1, Welcome To The World Of PC IEEE
, discusses the features of the PC IEEE card, mentions programs and languages that will drive the IEEE card and explains its how its high technology custom design gives it extreme flexibility in its application and use. Finally, the perfect companion product for the IEEE card, the Professional 488 Device Driver development environment is introduced.
Chapter 2, Installation Guide, shows you how to
configure the PC IEEE board and install it in one of the expansion slots of your computer.
Chapter 3, The Technical Details, gives much
technical information on the IEEE card. Whilst most users will find this information be be unnecessary it is included to make this manual as complete as possible, to allow you to cover every eventuality.
The Cumulative Index covers the complete contents of
the manual.
Intro-4
Page 4
PC IEEE Reference
Contents________
Chapter 1 Welcome To PC IEEE.
Introduction. 1 What Machine Do You Need? 1 PC IEEE Features. 2 Interrupt Selection. 2 Address Switches. 3 Software Support. 3 Introducing Professional 488. 4 Outline. 4 The Professional-488 Environment. 4 Learn How To Use It In Minutes. 5 Basic ON SRQ Facility. 6 PRO-488 Command Summary. 6 Sending Data To Bus Devices. 6 Receiving Data From Bus Devices. 7 Program Examples. 7 Basic Example. 7 Turbo Pascal Example. 7 Microsoft / Lattice C Example. 8 Fortran Example. 8 IEEE Bus Commands And Functions. 8 Complete Documentation and Technical Backup. 9 Cabling Requirements. 9
Chapter 2 Installation Guide.
Introduction. 10 Configuring The PC IEEE Board. 10 The DIP Switches And Jumper Blocks. 11 Setting The I/O Address. 11 Setting The Interrupt Jumper Block. 17 Using More Than One PC IEEE Board. 18 Installing The PC IEEE Board In The Computer. 20 Connecting To IEEE Devices. 22 Problems! 24
Intro-5
Page 5
PC IEEE Reference Chapter 2 List Of Figures.
Figure 2-1. Factory Set I/O Address - 0300H. 12 Figure 2-2. I/O Addresses To Avoid. 13 Figure 2-3. Likely I/O Address. 14 Figure 2-4. Valid PC IEEE Base Addresses. 14 Figure 2-5. I/O Address Set To 03E0H. 16 Figure 2-6. I/O Address Set To 0284H. 16 Figure 2-7. The IRQ Jumper Block. 18 Figure 2-8. Remove Cover Mounting Screws. 20 Figure 2-9. Removing The PC Cover. 20 Figure 2-10. Removing Blanking Cover. 21 Figure 2-11. Inserting The PC IEEE Card. 21 Figure 2-12. An IEEE Cable. 22 Figure 2-13. Connecting The PC To The IEEE Bus. 23 Figure 2-14. Standard IEEE 488 Connector Pinouts. 23
Chapter 3 Technical Details.
Introduction. 25 Specification. 25 The PC IEEE Subsets Supported. 26 In/Out Structure. 27 IFC InterFace Clear. 30 REN Remote ENable. 31 SRQ Service ReQuest. 31 ATN ATteNtion. 32
Chapter 3 List Of Figures.
Figure 3-1. PC IEEE Board Interface Capability. 26 Figure 3-2. Pia Input / Output Memory Map. 28 Figure 3-3. Pia DDRA Bit Assignments. 28 Figure 3-4. Pia PRA Bit Assignments. 28 Figure 3-5. Pia CRA Bit Assignments. 29 Figure 3-6. Pia DDRB Bit Assignments. 29 Figure 3-7. Pia PRB Bit Assignments. 29 Figure 3-8. Pia CRB Bit Assignments. 29
Intro-6
Page 6
World Of PC IEEE. PC IEEE Reference
CHAPTER 1
THE WORLD OF
PC IEEE.
Introduction.____________
This chapter, The World Of PC IEEE, discusses the features of the PC IEEE card, mentions programs and languages that will drive the PC IEEE card and explains its how its high specification custom design whilst retaining exact compatibility with other manufacturers designs gives it extreme flexibility in its application and use. Finally, the perfect companion product for the PC IEEE card, the Professional 488 Device Driver development environment, which is bundled with every PC IEEE card, is introduced.
What Machine Do You Need?__________________________
The PC IEEE board and software will run on the IBM PC and its clones. It will work on any of the industry standard PC, XT and AT machines including the 286 XT and the COMPAQ 386 computers. The Amstrad PC1512 and 1640 computers, Olivetti, Tandon, Victor, Commodore and many more are perfectly at home with our products.
The PC IEEE card will fit in the half size or full size slots on your computer. You will also need at least one disk drive to load your software.
You can use any version of DOS 2, DOS 3, DOS 4 or OS/2.
The PC IEEE board will also fit in the new IBM PS/2
Chapter 1 Page 1
Page 7
PC IEEE Reference World Of PC IEEE.
Model 30 computer, though be careful to obtain application software in the 3 1/2 inch disk format. Please ring us if you have any difficulty doing this.
The PS/2 models 50, 60 and 80 have a Micro Channel Architecture bus that is different to the PC standard. For these computers our PS Elite/2 IEEE 488 board is required.
PC IEEE Features._________________
The PC IEEE card extracts the ultimate IEEE-488 performance from your Personal Computer. Using an in house design we have taken PC based IEEE cards to the limit. PC IEEE is a half size card that fits any PC or AT slot. PC IEEE has the complete Controller, Listener and Talker ability. True flexibility with a choice of 5 interrupt lines and 128 I/O addresses.
PC IEEE is based on the highly versatile Motorola 68B21 PIA i/o chip, with supporting Texas Instrument IEEE data and management line drivers and logic chips controlling interrupts, i/o timing and address decode. The PC IEEE uses an IEEE standard gold plated R.F.I. shielded plug, and connects directly to IEEE 488 cables. It is a space saving 4.2 x 5.3 inches overall, suitable for any length slot in your PC, XT, AT, 386 etc. Consuming approx 400mA at 5V. It weighs under 0.15kg,
0.35lb. The PC IEEE card is as rugged as your PC.
Interrupt Selection._________________
The interrupt hardware allows jumper selection of one of five PC interrupt request lines, IRQ2 - IRQ5 & IRQ7. The PC IEEE interrupt logic allows multiple interrupt sources within the PC IEEE to share the same IRQ channel. 3 interrupt sources are software selectable providing very flexible interrupt driven i/o operations.
Page 2 Chapter 1
Page 8
World Of PC IEEE. PC IEEE Reference
The PC IEEE does NOT have DMA ability. If you need DMA driven IEEE handling then use the PC Elite card, this has DMA interrupt sharing, allowing selection of one of three direct memory access channels for high speed data transfer exceeding 300K bytes per second.
Address Switches.________________
The DIP switches enable the PC IEEE card to reside at one of 128 base addresses with the PC, on any 4 byte boundary within the 0200H to 03FCH ranges. Four PC IEEE cards in your PC can provide access to 56 IEEE instruments.
Software Support.________________
The low cost and high performance of PC data acquisition and analysis software packages combined with the PC IEEE card makes them ideal as powerful and inexpensive instrument controllers. Keep your technology advancing whilst your capital investment stays low!
The PC IEEE card comes complete with the easiest to use PC based IEEE software in the world, the Pro-488 Device Driver environment. Use Professional 488 to run the PC IEEE from Basic, Pascal, C, Assembler, Fortran etc. In addition the Pro-488 system will allow the PC IEEE to emulate a standard PC parallel printer or serial printer port, thus providing IEEE plotter support from most standard packages such as Lotus 123, Autocad, Symphony etc.
Our Premier card, The PC Elite, is guaranteed fully 100% compatible with Lotus Measure, LabTech NoteBook, Asyst, DaDisp 488, Test Windows, Unkelscope, TBasic, True BASIC, National Instruments IEEE software, and all software that supports the IBM GPIB card.
Please Note that PC IEEE does NOT work with this software, therefore, if you wish to use these popular data
Chapter 1 Page 3
Page 9
PC IEEE Reference World Of PC IEEE.
acquisition packages then ask your dealer for a PC Elite IEEE card.
Introducing Professional 488.__________________________
The perfect partner for the PC IEEE card is Professional­488, the best PC based IEEE software in the world! Pro-488 makes the PC IEEE card an integral part of your PC, controlled by an enhanced Hewlett Packard style syntax that runs all DOS languages. Pro-488 makes PC IEEE compatible with BASICA, GWBASIC, Complied BASIC, Quick Basic, Turbo Basic, Turbo Pascal, Turbo C, Lattice C, Aztec C, Zortech C, Prospero Pascal, Microsoft C Pascal, MS Fortran, MS Assembler, FS Fortran and many more languages.
Outline._______
The Professional-488 software system allows any PC with an IEEE-488 interface to become an IEEE bus controller, exercising complete control over a bus full of up to 14 IEEE instruments. An easy to use, flexible, enhanced industry standard control language addresses the IEEE devices and provides complete instrumentation control. The heart of the Professional­488 system is the device driver software that loads automatically when your PC is switched on. After that, your PC has access to an IEEE port in the same way as the other resident ports LPT1 or COM1. The Professional-488 Device driver makes full use of all the advanced features of your PC. We believe that software sells hardware and that is why we made Professional-488 the perfect companion for PC Elite IEEE and PC IEEE cards.
The Professional-488 Environment._______________________________
The Profession-488 is the ideal development environment for IEEE based data acquisition and control. Professional-488 is more than just an instrumentation shell, its a mature carefully
Page 4 Chapter 1
Page 10
World Of PC IEEE. PC IEEE Reference
thought out, PC based implementation, of a superset of Hewlett Packard’s HPIB language. The commands and your programs read just like plain English and so program development and maintenance time are cut to an absolute minimum. Since your time is extremely valuable we made Pro-488 code easy to write, simple to debug and a pleasure to read. Pro-488 runs identically across the range of DOS languages. The syntax, parameters and returns of the Pro-488 system remain the same, independent of the language that you are running. No extra language drivers or run time modules are needed to implement a new language. So you can use the ideal IEEE system with the language of your choice. The readily available bus status string contains a wealth of information about the state of the IEEE bus and is easily processed in any language. Pro-488 is feature rich, with a wide range of commands, from the lowest level, of individual line control, right up through single word commands that perform or initiate whole sequences of bus actions. Its IEEE-488 without the sweat!
Learn How To Use It In Minutes._____________________________
Since the Professional-488 talks the established IEEE control language, you probably already know how to use it! A good way of learning how to use the Professional 488 is inter­actively from the keyboard of your Personal Computer using the GPIBTALK suit of programs. Included on the Professional 488 system disk is the source code, and the ready run versions of, GPIBTALK in each of four languages. ATALK in Assembly language, CTALK, PASTALK and GPIBTALK in GW-BASIC and BASICA. These powerful programs are a menu driven sys­tem that allows you to send IEEE commands, transmit and receive data from your bus devices and check the status of the GPIB interface bus, all at the touch of a single key. In this way the user can get a good feel of the power and ease of use of the Professional 488 command language in a very short time. Most IEEE equipment includes worked examples that are virtually word for word PRO-488 commands!
Chapter 1 Page 5
Page 11
PC IEEE Reference World Of PC IEEE.
Basic ON SRQ Facility._____________________
From BASIC the ON PEN GOSUB command can be used to invoke an SRQ service routine to provide automatic serial polls etc.
PRO-488 Command Summary.___________________________
The basis of the PRO-488 system is an intelligent command handler. Data written to the "IEEECTRL" file is treated as an Ascii string containing IEEE bus keywords and numeric parameters. These keywords are interpreted as commands to perform Serial or Parallel Polls, send any IEEE bus commands or specify the timeout period, etc etc.
The command interpreter checks the syntax of your IEEE string and performs the appropriate IEEE actions. If a syntax error is detected the precise location of the error is noted and a flag is set. Merely checking the error flag informs you whether any mistake was made, other flags show whether a device is present on the bus and the state of the data transfer.
Sending Data To Bus Devices.__________________________
Data can be sent to the IEEE bus devices in several ways. The simplest and most straight forward method is by writing data to the "IEEEDATA" file, PRO-488 automatically addresses the current device to listen and the PC outputs your data, as easy as that!
Alternatively, data can be sent via the "IEEECTRL" file using one of three methods:- as specified by decimal numbers after a DATA or EOI command, as literal data within delimiters after a STRING command, or as literal data within delimiters after an OUTPUT command.
LISTEN 5 DATA 72,69,76,76,79 UNL <CR> LISTEN 5 STRING "HELLO" UNL <CR> OUTPUT "HELLO" <CR>
Page 6 Chapter 1
Page 12
World Of PC IEEE. PC IEEE Reference
Receiving Data From Bus Devices.______________________________
Data can be input from the current IEEE bus device by a
read of the "IEEEDATA" file, just like reading disk data!
Alternatively, data can be requested from any IEEE bus
device, via the "IEEECTRL" file using the ENTER command.
ENTER 200 <CR>
Both these methods are very flexible, a complete bus handshake sequence is performed with the current device being addressed to talk. The input sequence is terminated by the receipt of the number of bytes specified or by EOS received.
Program Examples._________________
Here are four example programs that demonstrate the power and ease of use of Pro-488. Each places a D.V.M. under PC control, programs the meter’s range and function with the R3T3X command, inputs a reading then displays it on the PC.
Quick Basic Example.___________________
10 OPEN "IEEECTRL" AS #1 20 OPEN "IEEEDATA" AS #2 30 PRINT#1,"REMOTE 5 OUTPUT ’R3T3X’" 40 READING$=IOCTL$(2) 50 PRINT READING$
Turbo Pascal Example._____________________
VAR
buffer : String[255]; ieeedata,ieeectrl : Text;
BEGIN
Assign(ieeectrl,’IEEECTRL’); Rewrite(ieeectrl); Assign(ieeedata,’IEEEDATA’); Reset(ieeedata); Writeln(ieeectrl,’REMOTE 5 OUTPUT "R3T3X"’); Readln(ieeedata,buffer); Writeln(buffer); Close(ieeedata); Close(ieeectrl);
END.
Chapter 1 Page 7
Page 13
PC IEEE Reference World Of PC IEEE. Microsoft / Lattice C Example.___________________________
#include <stdio.h> int ieeedata,ieeectrl; char buffer[255]; void main(){
ieeedata=open("IEEEDATA",O_RDWR); ieeectrl=open("IEEECTRL",O_RDWR); write(ieeectrl,"REMOTE 5 OUTPUT ’R3T3X’\n",24); read(ieeedata,buffer,255); printf("%s\n",buffer); }
Fortran Example.________________
CHARACTER BUFFER*255 OPEN(1,FILE=’IEEECTRL’,STATUS=OLD, ACCESS=’SEQUENTIAL’) OPEN(2,FILE=’IEEEDATA’,STATUS=OLD, ACCESS=’SEQUENTIAL’) WRITE(1,*)"REMOTE 5 OUTPUT ’R3T3X’" READ(2,*)BUFFER WRITE(*,*)’’,BUFFER
IEEE Bus Commands And Functions._________________________________
ABORT Resets bus, pulse IFC, assert REN, assert ATN. BASE= Sets the PC IEEE board base i/o address. CLEAR Returns some or all devices to predetermined state. CONFIGURE Specifies how device responds to PPOLL. DISABLE Prevents some or all devices responding to PPOLL. END= Sets End of Sequence method for OUTPUTs. ENTER Ask for data from IEEE device. EOS= Specifies EOS byte for IEEE data INPUTs to PC. INIT Restores IEEE bus and driver to defaults state. LOCAL Enable front panel control. REN, ATN sent false. LOCKOUT Disable front panel controls. Performs LLO. NO TO Disables time out. OUTPUT Sends literal data string to addressed devices. PPOLL Performs a complete Parallel Poll READ Reads one byte of data from addressed talker. REMOTE Puts some or all devices under PSI BOX control. SLAVE Puts PC into peripheral mode. SPOLL Serially Polls one or more devices. STRING Sends literal data string to current bus device. TO Sets an i/o timeout value. TRIGGER Initiates pre programmed action in devices. UNCONFIGURE Prevents devices responding to Parallel Poll. WAIT SRQ Waits till SRQ is asserted by device. WAIT MLA Waits till PC is addressed to listen. WAIT MTA Waits till PC is addressed to talk. NO ATN Set ATN false. NO REN Set REN false. LISTEN Sends one or more Listen Addresses. ATN Asserts ATN line true.
Page 8 Chapter 1
Page 14
World Of PC IEEE. PC IEEE Reference
CMD Send byte ATN true. DATA Send byte ATN false. DCL Device Clear. EOI Send DATA with EOI true GET Group Executive Trigger GTL Go To Local. IFC Pulse IFC for 100 microsec LAG Listen Address. LLO Local Lockout. MLA Set/ Send My Listen Address. MTA Set/ Send My Talk Address. MSA Set/ Send My Secdry Address. PPC Parallel Poll Configure. PPD Parallel Poll Disable. PPE Parallel Poll Enable. PPU Parallel Poll Unconfigure REN Asserts REN line true. SDC Select Device Clear. SEC Secondary Address. SPD Serial Poll Disable. SPE Serial Poll Enable. TAD Sends Talk Address. TALK Sends Talk Address. TCT Take Control. UNL Unlisten. UNT Untalk.
Complete Documentation and Technical Backup.__________________________________________
We believe in supplying complete documentation with every package we sell. The Professional 488 Driver is no exception, it has an attractively layed out manual in an A5 binder with slip case, containing nearly 400 pages of in-depth technical detail with comprehensive indexes and table of contents. We guarantee your Professional 488 Driver for a full 36 months from purchase. A full technical backup service is available to ensure that you get the maximum performance out of your investment.
Cabling Requirements.____________________
Try our low profile fully shielded IEEE cables, ideal for the cramped spaces on the back of some very popular clones.
Chapter 1 Page 9
Page 15
PC IEEE Reference Installation Guide.
CHAPTER 2
PC IEEE
INSTALLATION
GUIDE.
Introduction.____________
This chapter explains how to configure the PC IEEE 488 board and install it into an IBM PC computer. Detailed instructions are given how to set the address select and interrupt acknowledge DIP switches and how to position the IRQ and DMA jumpers.
If the PC IEEE is to be installed in another make of PC then it may be necessary to consult the instructions included in that PC’s documentation.
The half size PC IEEE board will fit into both long or a short slots, it can be placed in standard 8 bit PC slots or in the longer 16 bit AT slots.
If you have a Micro Channel Architecture computer such as the IBM PS/2 Models 50, 60 or 80 or a Tandy 5000 M.C. then you require the PS Elite/2 card instead.
Configuring The PC IEEE Board.______________________________
In the state it leaves our factory, the PC IEEE 488 Interface Board is ready to plug straight into an IBM PC computer.
So, unless you have GOOD REASON, you do not need to alter its default setting.
Page 10 Chapter 2
Page 16
Installation Guide. PC IEEE Reference
However, due to the large variety of add-on boards that may be present in the PC, your PC IEEE board may need tayloring to suit your setup.
The DIP Switches And Jumper Blocks.__________________________________
The PC IEEE card has one 8 way DIP switch block, the switches are clearly marked 1-8. DIPs 2-8 select the PC IEEE card base address whilst DIP 1 is a don’t care switch. Make certain that DIP 1 is set ON for compatibility with future versions of the PC IEEE.
The PC IEEE card has an IRQ jumper block. This IRQ jumper block, can be set to produce IRQ interrupt signals - such as when an IEEE device asserts its Service Request line, SRQ, to signal that it has data ready for the PC. There is no DMA facility on the PC IEEE card, if your application requires DMA then use the PC Elite IEEE interface.
The base address and IRQ options are communicated by the user to the computer using the Professional 488 Device Driver software or via your third party IEEE software using its own set up or configuration routine.
It is worth noting that the standard PC IEEE cannot be made to emulate the IBM or National Instruments GPIB board, neither can it be set to i/o address 02E1h. If you must have a board that emulates IBM’s please use the PC Elite IEEE interface - contact your dealer for one.
The PC Elite IEEE i/o address map is identical to the IBM GPIB and National Instruments GPIB PC2A board and it will run ALL software that these boards run. IBM’S GPIB, N.I.’S PC2A, the PC IEEE and the PC Elite cards can all co-exist happily in the same computer provided that they are set to different i/o addresses.
Setting The I/O Address.______________________
By referring to the PC IEEE card locate the I/O Address
Chapter 2 Page 11
Page 17
PC IEEE Reference Installation Guide.
DIP switches at the upper left hand corner of the board.
The PC IEEE board i/o address can be set be set to reside at any 4 byte boundary within the address space 0200h to 03FFh. The factory set address, 0300H, is set as shown in Figure 2-1. The DIP switch numbers 2-8 refer to the I/O address lines A2 - A8 of the computer. Since the PC IEEE card requires an address space 4 bytes wide, only address lines A2-A8 have any effect on the cards I/O address. Consequently A0 and A1 are not connected to the address decoder. DIP 1 is a DON’T CARE switch, always set DIP 1 ON!
Figure 2-1. Factory Set I/O Address - 0300H._______________________________________
1 Don’t care. so set ON.
³
2-8 Address select
³ ЪДВДВДЕДВДВД¿ ³
³ ³ ³ ³ ³ ³
³
³
³ ³ ³ ³ ³ ³
³
å
on
ДДДДДДДД
»
еееееееж
æ
off ”12345678”
¨
ДДДДДДДД
Factory Set Default Address= 0300 Hex. Always set DIP 1 On! Factory Set IRQ jumper select = None
If you need to run the board at a different address then set the dip switches accordingly. In all, the PC IEEE may be set to one of 128 possible i/o addresses. There are certain address that it is always good to avoid, these are given in the following table.
Page 12 Chapter 2
Page 18
Installation Guide. PC IEEE Reference
Figure 2-2. I/O Addresses To Avoid._______________________________
I/O ADDRESS NORMAL USE.___________ ___________ 0201H- 0201H Game Control Adapter 0278H- 027FH *** Second Printer Port Adapter 02C0H- 02C7H A.S.T. Clock Calendar Chip 02E1H *** PC ELITE IEEE Board. 02E1H IBM/ National Instruments IEEE card. 02F8H- 02FFH *** Second Serial Port Adapter 0300H- 0303H *** PC IEEE Board 0308H- 030FH *** PC DIO48 Board 0310H- 031FH *** PC Timer-DIO Board 0320H- 032FH Hard Disk 0340H- 0360H *** PC DIO192 Board 0360H- 036FH PC Network 0378H- 037FH *** Printer Port Adapter 0380H- 038CH S.D.L.C. Communications 0380H- 0389H Second Binary Sync Comms 0390H- 0393H Cluster 03A0H- 03A9H Primary Binary Sync Comms 03B0H- 03BFH Monochrome Display and Printer Card 03C0H- 03CFH Enhanced Graphics Adapter Extra I/O 03D0H- 03DFH Colour Graphics Adapter 03F0H- 03F7H 5.25 inch Disk Drive Adapter 03F8H- 03FFH *** Serial Port Adapter
*** These cards available from us.
If any of these adapter cards are installed in the PC DO
NOT set the PC IEEE card to reside in the same address range.
Among the i/o addresses that are likely to be good for the PC IEEE are shown in Figure 2-3. However, we cannot guarantee that they are not already in use by some other adapter that may be installed in your PC.
Chapter 2 Page 13
Page 19
PC IEEE Reference Installation Guide.
Figure 2-3. Likely I/O Address.___________________________
I/O ADDRESS NORMAL USE.___________ ___________ 0204H- 0277H Unused. 0280H- 02BFH Unused. 02C8H- 02DFH Unused. 02E4H- 02F7H Unused. 0300H- 031FH Unused. 0330H- 035FH Unused. 0380H- 03AFH Unused Usually. 03E0H- 03EFH Unused.
If in doubt check the manuals of the adapters installed in
the PC.
Remember, only DIP switches 2-8 have any effect on the PC IEEE card. It is straight forward to work out the I/O address since DIP switch 2 is connected to address line A2 and so on till address line A8 is connected by DIP switch 8. The ’ON’ marking on the DIP switch is a misnomer since the address line is selected low in the ON position.
In all the PC IEEE may be set to one of 128 possible i/o addresses. Only a representative sample are given.
Figure 2-4. Valid PC IEEE Base Addresses.______________________________________
DIP 2 DIP 3 DIP 4 DIP 5 DIP 6 DIP 7 DIP 8 Card Base Address_____ _____ _____ _____ _____ _____ _____ _________________ On On On On On On Off 0300H Default
Off On On On On On Off 0304H On Off On On On On Off 0308H Off Off On On On On Off 030CH
On On Off On On On Off 0310H Off On Off On On On Off 0314H On Off Off On On On Off 0318H Off Off Off On On On Off 031CH
Page 14 Chapter 2
Page 20
Installation Guide. PC IEEE Reference
On On Off Off On On Off 0330H On On On On Off On Off 0340H On On Off On Off On Off 0350H On On On On On Off Off 0380H
On On Off On On Off Off 0390H On On On Off On Off Off 03A0H On On On Off Off Off Off 03E0H See Fig 2-5 On Off On Off Off Off Off 03E8H
On On On On On On On 0200H Off On On On On On On 0204H On Off On On On On On 0208H Off Off On On On On On 020CH
On On Off On On On On 0210H Off On Off On On On On 0214H On Off Off On On On On 0218H Off Off Off On On On On 021CH
On On Off Off On On On 0230H Off On Off Off On On On 0234H On Off Off Off On On On 0238H Off Off Off Off On On On 023CH
On On On On Off On On 0240H Off On On On Off On On 0244H On Off On On Off On On 0248H Off Off On On Off On On 024CH
On On Off On Off On On 0250H On On On On On Off On 0280H Off On On On On Off On 0284H See Fig 2-6 On On Off On On Off On 0290H On On On Off On Off On 02A0H On On Off Off On Off On 02B0H On On Off On Off Off On 02D0H
Figure 2-5 shows how the DIP SWITCHES are set to
select i/o address 03E0h.
Chapter 2 Page 15
Page 21
PC IEEE Reference Installation Guide.
Figure 2-5. I/O Address Set To 03E0H.__________________________________
å
on
ДДДДДДДД
»
еееежжжж
æ
off ”12345678”
¨
ДДДДДДДД
Figure 2-6 shows how the DIP SWITCHES are set to select i/o address 0284h.
Figure 2-6. I/O Address Set To 0284H._________________________________
å
on
ДДДДДДДД
»
ежееееже
æ
off ”12345678”
¨
ДДДДДДДД
If you have set the board at a different address then you will need to inform the software that you intend to run about the new i/o address.
If you using the Professional 488 Device Driver software, that comes bundled with the PC IEEE, then to inform the driver of the change in i/o address send the BASE=03E0H, using the appropriate address, command to the driver by placing it on the CONFIG.SYS invocation line eg
DEVICE=IEEE.SYS /BASE=03E0H
or after boot time by writing to the IEEECTRL file. The BASE= command causes the IEEE card to be initialised and it will become the system controller, the IFC line will be pulsed and ATN and REN asserted true.
Page 16 Chapter 2
Page 22
Installation Guide. PC IEEE Reference
Other software packages, which may have been supplied with your IEEE instrumentation, have their own configuration routines. See the instructions that come with that IEEE software.
Setting The Interrupt Jumper Block.________________________________
The movable jumper on the jumper block is used to specify which hardware interrupt is to be generated by SRQ, ATN or IFC transitions on the IEEE bus.
Most user will not require IRQ’s and so should leave the IRQ jumper in the factory set, off, position.
The range of instructions controlling the enabling and servicing of an interrupt are described in your IEEE software manual. The position of the jumper MUST match the IRQ level set in the software. If in doubt leave the jumper in the factory set, off, position.
Moving the jumper pin selects which interrupt is invoked by the IEEE board hardware. The jumper can be in one of six positions. See Figure 2-7. NOTE: Do not add an extra jumper of your own across the______ jumper block it will only cause great confusion.
Chapter 2 Page 17
Page 23
PC IEEE Reference Installation Guide.
Figure 2-7. The IRQ Jumper Block._______________________________
NORMAL USE OF INTERRUPT.________________________
ЪДДДДДД¿ ³
:::::
Þ³
FACTORY SET POSITION. NO IRQ.
АДДДДДДЩ ЪДДДДДД¿ ³
::::
Þ:³
IRQ2 E.G.A. GRAPHICS CARD.
АДДДДДДЩ ЪДДДДДД¿ ³
:::
Þ
::
³
IRQ7 PARALLEL PRINTER PORT.
АДДДДДДЩ ЪДДДДДД¿ ³
::
Þ
:::
³
IRQ5 HARD DISK.
АДДДДДДЩ ЪДДДДДД¿ ³
:
Þ
::::
³
IRQ4 RS232C SERIAL PORT NUMBER 1.
АДДДДДДЩ ЪДДДДДД¿ ³Þ
:::::
³
IRQ3 RS232C SERIAL PORT NUMBER 2-8.
АДДДДДДЩ
Select the IRQ line required by placing the jumper across
the appropriate pins.
If in doubt leave in the jumper in the factory set condition.
Using More Than One PC IEEE Board.__________________________________
Since each PC IEEE card can control up to 14 separate IEEE devices it is not generally necessary to have more than one PC IEEE board installed in the PC at any one time. However, it is possible to control multiple IEEE buses from one Personal Computer by installing several PC IEEE cards each controlling its own IEEE bus.
The golden rules to follow to allow this are:­i.) Ensure that each PC IEEE card is set to a different i/o
Page 18 Chapter 2
Page 24
Installation Guide. PC IEEE Reference
address.
ii.) If you are using the Professional 488 Device Driver, that
comes bundled with the PC IEEE card, then ensure that the each PC IEEE card has its own driver software installed and that the file name associated with each IEEE port is different.
The Professional 488 device Driver requires that the CONFIG.SYS file must have an DEVICE= IEEE.SYS statement included for each PC IEEE card in use. Each statement must give the individual card i/o address and file name. E.g. A PC with three PC IEEE cards controlling three separate IEEE 488 buses of up to 14 devices each might have the following CONFIG.SYS file.
DEVICE=IEEE.SYS DEVICE=IEEE.SYS /"IEEE2 ","IEEEDAT2","IEEECTR2",@0310h DEVICE=IEEE.SYS /"COM1 ","IEEEDAT3","IEEECTR3",@0320h
In this case the first time IEEE.SYS is loaded it creates a device driver which accesses a PC IEEE card at i/o address 0300h with filename IEEE, the data filename is ’IEEEDATA’ and the control filename is ’IEEECTRL’. The second time IEEE.SYS is loaded it creates a device driver which accesses a PC IEEE card at i/o address 0310h with filename IEEE2, the data filename is ’IEEEDAT2’ and the control filename is ’IEEECTR2’. The third time IEEE.SYS is loaded it creates a device driver which accesses a PC IEEE card at i/o address 0320h with filename COM1, the data filename is ’IEEEDAT3’ and the control filename is ’IEEECTR3’.
Chapter 2 Page 19
Page 25
PC IEEE Reference Installation Guide.
Installing The PC IEEE Board In The Computer.___________________________________________
NOTE: Always turn the computer OFF before installing or______ removing any interface board from the computer.!!!
After having made sure that the i/o address and the IRQ and DMA jumpers are correctly set now is the time to insert the PC IEEE board into the i/o connector slots in the computer.
STEP 1 Before the PC IEEE board can be installed the power to the PC MUST be switched OFF!
Figure 2-8. Remove Cover Mounting Screws._______________________________________
STEP 2 Then
using a screw driver, remove the cover mounting screws on the back panel of the PC system unit.
Figure 2-9. Removing The PC Cover.________________________________
STEP 3 Next, remove the PC’s cover by sliding it forward and
up. It usually helps to disconnect the keyboard from the PC since it tends to get in the way when the case is removed.
Page 20 Chapter 2
Page 26
Installation Guide. PC IEEE Reference
Figure 2-10. Removing Blanking Cover.__________________________________
STEP 4 Choose an empty
expansion slot. The PC IEEE 488 interface board will fit either a full length or a short slot, a 8 bit PC type slot or a 16 bit AT type slot. In general it is wise to leave the larger slots free for those boards that insist on greater room. Remove the blanking cover protecting the slot on the PC back panel. KEEP the blanking cover screw safely for later.
Figure 2-11. Inserting The PC IEEE Card._____________________________________
STEP 5 Now insert the PC
IEEE 488 card in the slot. Be careful to ensure that the gold plated pcb fingers fits neatly into the i/o expansion connector. Press down firmly but evenly on the top of the PC IEEE card.
STEP 6 The 24 way standard IEEE 488 connector should fit neatly through the slot’s aperture to the outside world.
Use the screw kept back from the blanking cover to screw the PC IEEE 488 interface retaining bracket into the PC back panel housing.
Chapter 2 Page 21
Page 27
PC IEEE Reference Installation Guide. STEP 7 Now replace the system units cover by carefully sliding
in down and back over the system unit. Replace the cover mounting screws.
STEP 8 After attaching all the monitor and keyboard cables, put the MS DOS disk in drive A: and power up the PC. Do not forget the mains power cable!
The PC should power on in the normal way.
Connecting To IEEE Devices.__________________________
The PC IEEE board connects to IEEE 488 devices using standard IEEE cables as shown in the Figure below. You may find that our special low profile IEEE cable fits better!
Figure 2-12. An IEEE Cable._________________________
These cables can be ’piggy backed’ together to daisy chain up to 14 IEEE devices to the PC. Connect one end of the IEEE cable to the IEEE device.
Our Low profile IEEE cables, NOT shown, are ideal for connecting to those tight fitting clones! Ask you dealer today!
Page 22 Chapter 2
Page 28
Installation Guide. PC IEEE Reference
Figure 2-13. Connecting The PC To The IEEE Bus.____________________________________________
Connect the other end of the IEEE cable to the 24 way IEEE connector on the back of the PC. Be sure to tighten the screw locks to ensure a good permanent connection.
Figure 2-14. Standard IEEE 488 Connector Pinouts._____________________________________________
Pin 1 Data bit 0 Pin 13 Data bit 4 Pin 2 Data bit 1 Pin 14 Data bit 5 Pin 3 Data bit 2 Pin 15 Data bit 6 Pin 4 Data bit 3 Pin 16 Data bit 7 Pin 5 EOI Pin 17 REN Pin 6 DAV Pin 18 Ground Pin 7 NRFD Pin 19 Ground Pin 8 NDAC Pin 20 Ground Pin 9 IFC Pin 21 Ground Pin 10 SRQ Pin 22 Ground Pin 11 ATN Pin 23 Ground Pin 12 Shield (GND) Pin 24 Ground
Chapter 2 Page 23
Page 29
PC IEEE Reference Installation Guide.
Problems!_________
If the system fails to power up normally check the following. i.) Ensure that the PC IEEE 488 interface card is installed
correctly. ii.) Ensure that other cards in the PC have not been upset. iii.) Ensure that the power is connected and the PC is
switched ON! iv.) Ensure that the IRQ jumper block is set correctly (default
NO IRQ). v.) Ensure that the PC IEEE i/o address is set correctly
(default 0300h).
If all these have been checked and the PC still does not power up the there is probably a conflict of i/o address between the PC IEEE board and another board in the PC. Ask your dealer to check this.
Page 24 Chapter 2
Page 30
Technical Details. PC IEEE Reference
CHAPTER 3
PC IEEE
TECHNICAL
DETAILS.
Introduction.____________
This chapter describes the technical details of the PC IEEE interface. In particular, how the 68B21 peripheral interface adapter is configured as an IEEE controller chip is described. This information is only of use to people who are dedicated to understanding everything in their computer or for those writing IEEE i/o routines at the assembler level. It is of no concern to the average or more than average user, who will be accessing the card via Professional 488 or software bundled with his IEEE instruments.
Specification.____________
The PC-IEEE interfaces is totally consistent with all electrical, mechanical and functional specifications of the IEEE 488 and ANSI MC1.1 standards. The PC IEEE card is compatible with all revisions of the IEEE 488 standard, including 1975, 1978 and IEEE 488A-1980 supplement. It is also totally consistent with the electrical and functional specifications of the IEC 625-1 and BS6146 standards, a simple mechanical adapter is available to interconnect the PC IEEE with IEC 625 devices.
IEEE standard 728-1982 is a recommended practice for code and format conventions for use with IEEE 488. PC-IEEE is perfectly compatible with this set of operational specifications.
Chapter 3 Page 25
Page 31
PC IEEE Reference Technical Details.
The PC IEEE board is capable of a maximum data transfer rate of 250K bytes/second. The actual data transfer rate is dependent on the PC’s clock rate. On an 10MHz PC AT or 286 XT the maximum data transfer rate is 200k bytes per second, on a 4.77MHz PC the maximum data transfer rate is 20K bytes per second. Of course, the data is actually transmitted at the speed of the SLOWEST addressed listener or talker. The positive 3 wire handshake ensures that data is transmitted correctly and without loss.
The IEEE-488 Standard defines the following cabling restrictions.
1). Not more than 20 metres between the most distantly
separated devices.
2). A maximum of 15 devices resident on the bus at the same
time.
The PC IEEE Subsets Supported._____________________________
The IEEE-488 standard specifies various allowable subsets of interface functions. The actual codes supported by the PC IEEE board is shown below.
Figure 3-1. PC IEEE Board Interface Capability.__________________________________________
CODE CAPABILITY DESCRIPTION____ __________ ___________ SH1 Source Handshake. Complete capability. AH1 Acceptor Handshake. Complete capability. T7 Talker Function. Basic Talker,
Extended Talker and Talk Only Mode,
TE7 Extended Talker. Unaddress if MLA. L3 Listener Function Basic Listener, Extended Listener, and
Listen Only Mode,
LE3 Extended Listener Unaddress if MTA.
Page 26 Chapter 3
Page 32
Technical Details. PC IEEE Reference
C1 Controller Function. System Controller. C2 Controller Function. Send IFC and Take Charge. C3 Controller Function. Send REN. C4 Controller Function. Respond to SRQ. C9 Controller Function. Send Interface Messages.
Parallel Poll. Pass Control. Receive Control. Take Control Synchronously.
E1 Open Collector Driver. 250 kilobytes per second maximum speed.
The functions supported by the PC IEEE board are a comprehensive group allowing full control of the IEEE bus. The PC IEEE has complete controller capabilities and also implements the full range of talker, listener, serial and parallel poll, service request, and remote programming functions.
In/Out Structure._______________
The computer controls the state of the IEEE lines through an Motorola MC68B21 PIA chip, this does not connect directly to the IEEE lines but is buffered through two IEEE line drivers that provide the correct signal levels and line matching. The line drivers used are the Texas Instruments SN75160 and SN75161 IEEE driver chips. These control the IEEE data and IEEE line management respectively. The operation of these devices is NOT trivial and should only be attempted by competent personnel who are in possession of the device data books. These books are :­"8-Bit Microprocessors Data Manual" from Motorola Semiconductors and "The Texas Instruments Interface Circuits Data Book." Briefly, you must set BOTH the PIA and the line drivers to the appropriate input or output state, then set the required lines either HIGH or LOW. Then perform the appropriate IEEE handshake by setting the management lines high and low at the correct time. Alternatively handshake the data or commands out of or in to the computer using the jump table. The jump table, accessed via the device driver, does provide complete control of all possible IEEE functions. The SN75160 and SN75161 line drivers are
Chapter 3 Page 27
Page 33
PC IEEE Reference Technical Details.
configured using four control lines, TE and PE 75160 and TE and DC for the 75161. PE is permanently tied LOW. The two TE lines are tied together thus leaving 2 controls into the PIA.
When using the jump table or Professional 488 device driver it is NOT be necessary to alter the TE or DC lines as these are set by the called routines to match the function selected, ie input or output.
Figure 3-2. Pia Input / Output Memory Map._______________________________________
ЪДДДДДДДДДДДДВДДДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДДДДДДДДДДДДДДДДДДДДДД¿ ³
BASEýADDRESS
³ý
DEFAULT
ý³ý
CRA
ýýý³ý
CRB
ýýý³ý
REGISTERýSELECTED
ээээээээээ³
³
OFFSET
ээээээ³э
ADDRESS
ý³ý
BITý2
ý³ý
BITý2
э³ээээээээээээээээээээээээээээ³ ГДДДДДДДДДДДДЕДДДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДДДДДДДДДДДДДДДДДДДДДД´ ³ý
0000
эээээээ³э
0300ýHex
³ý0эээээ³э
X
эээээ³э
DDRA
ýý
DATAýDIRECTIONýREGýA
ý³
³ý
0000
эээээээ³э
0300ýHex
³ý1эээээ³э
X
эээээ³э
PRA
ýýý
PORTýI/OýREGISTERýA
ýý³
³ý
0001
эээээээ³э
0301ýHex
³ýXэээээ³э
X
эээээ³э
CRA
ýýý
CONTROLýREGISTERýA
ýýý³
³ý
0002
эээээээ³э
0302ýHex
³ýXэээээ³э
0
эээээ³э
DDRB
ýý
DATAýDIRECTIONýREGýB
ý³
³ý
0002
эээээээ³э
0302ýHex
³ýXэээээ³э
1
эээээ³э
PRB
ýýý
PORTýI/OýREGISTERýB
ýý³
³ý
0003
эээээээ³э
0303ýHex
³ýXэээээ³э
X
эээээ³э
CRB
ýýý
CONTROLýREGISTERýB
ýýý³
³ээээээээээээ³эээээээээ³э
X=DON’TýCARE
ээ³ээээээээээээээээээээээээээээ³
АДДДДДДДДДДДДБДДДДДДДДДБДДДДДДДДДДДДДДДБДДДДДДДДДДДДДДДДДДДДДДДДДДДДЩ
Figure 3-3. Pia DDRA Bit Assignments.__________________________________
ЪДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДД¿ ³эээээ
DATAýDIRECTIONýREGISTERýAýWHENýCRAýBIT2ý=ý0
эээээээээээээээээээ³
³эээээ
WHENýBIT=1ýPORTýLINEý=ýOUTPUT,
ýý
WHENýBIT=0ýPORTýLINEý=ýINPUT
ýý³ ГДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД´ ³
DDRA
³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДД´ ³
0300
³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ý³
³ý
Hex
³ý
DATA7
ý³ý
DATA6
ý³ý
DATA5
ý³ý
DATA4
ý³ý
DATA3
ý³ý
DATA2
ý³ý
DATA1
ý³ý
DATA0
³ ³ýýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýý³
АДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДЩ
Figure 3-4. Pia PRA Bit Assignments._________________________________
ЪДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДД¿ ³эээээ
PORTýINPUT/OUTPUT
ý
REGISTERýAýWHENýCRAýBIT2ý=ý1
ээээээээээээээээ³
³эээээ
BITý=ý1ýPORTýLINEý=ýISýHIGH,ýBITý=ý0ýPORTýLINEý=ýISýLOW
эээээээ³ ГДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД´ ³
PRA
ý³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДД´ ³
0300
³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ýý³ý
IEEE
ý³
³ý
Hex
³ý
DATA7
ý³ý
DATA6
ý³ý
DATA5
ý³ý
DATA4
ý³ý
DATA3
ý³ý
DATA2
ý³ý
DATA1
ý³ý
DATA0
³ АДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДЩ
Page 28 Chapter 3
Page 34
Technical Details. PC IEEE Reference
Figure 3-5. Pia CRA Bit Assignments._________________________________
ЪДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД¿ ³
CRA
ý³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДБДДДДДДДБДДДДДДДЕДДДДДДДЕДДДДДДДБДДДДДД´ ³
0301
³ý
ATN
ýýý³ý
IFC
ýýý³ý
IFCýCONTROLýO/PýORýI/P
³ý
DDRA
ýý³ý
ATNýIRQ/FLAG
ý³
³ý
Hex
³ý
FLAG
ýý³ý
FLAG
ýý³ý1эээээээ
1
эээээээ
IFC
ýýý³ý
ACCESS
³ý
CONTROL
ээээээ³
АДДДДБДДДДДДДБДДДДДДДБДДДДДДДДДДДДДДДДДДДДДДДБДДДДДДДБДДДДДДДДДДДДДДЩ
Figure 3-6. Pia DDRB Bit Assignments.__________________________________
ЪДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДД¿ ³эээээ
DATAýDIRECTIONýREGISTERýBýWHENýCRBýBIT2ý=ý0
эээээээээээээээээээ³
³эээээ
WHENýBIT=1ýPORTýLINEý=ýOUTPUT,
ýý
WHENýBIT=0ýPORTýLINEý=ýINPUT
ýý³ ГДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД´ ³
DDRB
³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДД´ ³
0302
³ý
SRQ
ýýý³ý
ATN
ýýý³ý
EOI
ýýý³ý
DAV
ýýý³ý
NRFD
ýý³ý
NDAC
ýý³ý
REN
ýýý³ýTEýýý³
³ý
Hex
³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýýý³ý
DIR
ýý³
АДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДЩ
Figure 3-7. Pia PRB Bit Assignments.________________________________
ЪДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДДД¿ ³эээээ
PORTýINPUT/OUTPUT
ý
REGISTERýBýWHENýCRBýBIT2ý=ý1
ээээээээээээээээ³
³ýýý
IFýBITý=ý1ýPORTýLINEý=ýISýHIGH,ýIFýBITý=ý0ýPORTýLINEý=ýISýLOW
ýýý³ ГДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД´ ³
PRB
ý³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДЕДДДДДД´ ³
0302
³ý
SRQ
ýýý³ý
ATN
ýýý³ý
EOI
ýýý³ý
DAV
ýýý³ý
NRFD
ýý³ý
NDAC
ýý³ý
REN
ýýý³ýTEýýý³
АДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДДБДДДДДДЩ
Figure 3-8. Pia CRB Bit Assignments._________________________________
ЪДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДДДВДДДДДД¿ ³
CRB
ý³ý
BITý7
ý³ý
BITý6
ý³ý
BITý5
ý³ý
BITý4
ý³ý
BITý3
ý³ý
BITý2
ý³ý
BITý1
ý³ý
BITý0
³ ГДДДДЕДДДДДДДЕДДДДДДДЕДДДДДДДБДДДДДДДБДДДДДДДЕДДДДДДДЕДДДДДДДБДДДДДД´ ³
0303
³ý
SRQýIN
³ýDCýINý³ýDCý
CONTROLýO/PýONLY
ýýý³ý
DDRB
ýý³ý
SRQýIRQ/FLAG
ý³
³ý
Hex
³ý
FLAG
ýý³ý
FLAG
ýý³ý1эээээээ
1
эээээээ
DC
ýýýý³ý
ACCESS
³ý
CONTROL
ээээээ³
АДДДДБДДДДДДДБДДДДДДДБДДДДДДДДДДДДДДДДДДДДДДДБДДДДДДДБДДДДДДДДДДДДДДЩ
Note 1: The IEEE input-output must be done at the i/o______
address set by the DIP switches on the PC IEEE board. The above i/o map is relative to the base address set by these switches. I.E. If you are using
Chapter 3 Page 29
Page 35
PC IEEE Reference Technical Details.
the factory set address 0300H then DDRA is at 0300H and CRB is at 0303H.
Note 2: ATN has two lines into the computer, the CA7 line______
is an input only line and is used in conjunction with the IRQ jumper block to enable the computer to handshake data from an external controller i.e. computer can be programmed to act as peripheral.
Note 3: For additional information on use of the MC68B21______
see "8-Bit Microprocessors Data Manual" from Motorola Semiconductors.
It is recommended that you do NOT attempt to handshake data into and out from the IEEE bus using your own software routines as the IEEE bus structure is complicated. Instead use the high level function in the Pro-488 DOS Driver or, for greater speed, access the jump table provided at a fixed offset from the start of the resident Pro-488 driver. However, some users may wish to to control non standard IEEE 488 instrumentation and therefore require access to some of the IEEE lines directly.
IFC InterFace Clear.___________________
The IFC control line is connected to CA2 of the PIA. When the computer is acting as the system controller, ie ALL THE TIME in normal use, the IFC line can be asserted by pulling CA2 low. In practice, this line should only be toggled low for short time and then returned high. The standard pulse time is a minimum of 100 micro second.
In normal use IFC is permanently held HIGH. This is the most sensible approach and will be found to be satisfactory to all.
If you are using software that configures the PC IEEE as an IEEE device then IFC can be used to produce an interrupt. An IRQ to interrupt the processor can be generated by IFC transitions when ALL the following conditions are met.
i.) PC IEEE board configured as an IEEE device, use
the SLAVE command for this.
Page 30 Chapter 3
Page 36
Technical Details. PC IEEE Reference
ii.) IRQ jumper block set in accordance with the special
IRQ handler software routines. iii.) CRA register setup appropriately. iv.) The correct interrupt vector in the PC’s memory is
’stolen’ and redirected to a handler.
All this is pretty esoteric and only of interest to the odd user.
REN Remote ENable.___________________
To program REN for receive the data direction bit in DDRB must be set LOW. REN is bit 1 of PORT B. To program REN for transmit the data direction bit in DDRB must be set HIGH. Setting bit 1 of PORT B HIGH sets REN HIGH. Setting bit1 of PORT B LOW sets REN LOW. The SLAVE command turns the REN line around from the normal transmit output mode to receive input use.
SRQ Service ReQuest.____________________
The SRQ line is bit 7 of PORT B. This is normally set for input and the current state of the SRQ line can be read directly from here. There is an SRQ input only line connected to CB1 of the PIA. This line can only detect strobe pulses on the SRQ line, NOT its current.
The SN75161 only allows SRQ receive when the computer is acting as the system controller, ie ALL THE TIME in normal use. To send SRQ use the SLAVE command to turn around the SRQ direction and then use the SRQ, NO SRQ commands or write directly to PRB.
An IRQ to interrupt the processor can be generated by SRQ transitions by appropriate setting of CRB. Otherwise SRQ’s can be detected by polling the IRQB1 flag in bit 7 of CRB of the PIA. Thus the PC IEEE can send a service request to an external device and can easily detect them.
Chapter 3 Page 31
Page 37
PC IEEE Reference Technical Details.
ATN ATteNtion._______________
The IEEE ATN line has TWO connections into the PIA and hence the computer. This permits many useful extra functions to be incorporated into the IEEE interface. The normal ATN signals are sent from the computer through PORT B bit 6 and are controlled by the device driver. There is also an ATN input only line connected to CA1 of the PIA. If you want the computer to act as a peripheral, ie a pseudo disk drive or printer say then DC should be set HIGH. To turn ATN round from send to receive use the SLAVE command.
An IRQ to interrupt the processor can be generated by ATN transitions generated by an external controller (another computer, say) by appropriate setting of CRA. Otherwise ATN’s can be detected by polling the IRQA1 flag in bit 7 of CRA of the PIA. The IRQ or polling routine must recognise the PC IEEE’s device number, this to prevent interference with other devices on the bus. The device number is set by using the MLA=, MSA=, MTA= and MYA= commands. Once a valid device number has been detected the user handshakes the data in or out of his computer using the device driver. Best response is with the IRQ jumper block and corresponding interrupt vector stolen to point to an input handshake routine. Alternatively the WAIT MYA or WAIT MLA etc commands followed by a SEND or READ command can be used to build IEEE device functions into the PC IEEE.
Page 32 Chapter 3
Page 38
Index PC IEEE Reference
Index.______
Abort.................................8
Ascii..................................6
Asyst.................................3
Automatic.........................6
Automatic serial polls.......6
Backup..............................9
Base address.....................11, 14, 29
Base=................................8, 16
Buffer................................7
Cable.................................22, 23
Clear................................. 8, 9, 30
Com1................................4, 19
Commodore......................1
Config.sys.........................16, 19
Configure..........................8, 9, 10
Connecting........................22, 23
Cover................................20, 21, 22
Dadisp...............................3
Data transfer rate..............26
Dav................................... 23
Default..............................10, 12, 14, 24
Device clear......................9
Device=............................19
Direct................................3
Disable..............................8, 9
Disk..................................1, 2, 5, 7, 13, 18, 22, 32
Dma..................................3, 10, 11, 20
Dma interrupt....................3
Elite..................................3, 4, 11, 13
Enable...............................3, 8, 9, 30, 31
Eoi....................................6, 9, 23
Error..................................6
Index 1
Page 39
PC IEEE Reference Index
File name..........................19
Filename...........................19
Format..............................2, 25
Fortran..............................3, 4, 8
FS Fortran.........................4
Function............................7, 26, 27, 28, 30
Future versions.................11
Gpibtalk............................5
Gtl.....................................9
Guarantee..........................9, 13
Handshake........................7, 26, 27, 30, 32
Handshakes.......................32
Hard disk.......................... 13, 18
I/o address.........................8, 11, 12, 13, 14, 15, 16, 18, 19, 20,
24, 29
Ibm gpib............................3, 11
Ibm ps/2............................1, 10
Ieee commands.................5
Ieee functions....................27
Ifc......................................8, 9, 16, 17, 23, 27, 30
Installation........................10
Instrument.........................2, 3
Int......................................8
Interface clear...................30
Interrupt............................2, 3, 10, 11, 17, 18, 30, 31, 32
Interrupt sharing...............3
Irq..................................... 2, 10, 11, 12, 17, 18, 20, 24, 30, 31,
32
Irq jumper block...............11, 18, 24, 30, 31, 32
Lotus.................................3
Lotus 123..........................3
Lotus measure...................3
Low profile.......................9, 22
Lpt1..................................4
Index 2
Page 40
Index PC IEEE Reference
Memory............................3, 28, 31
Micro channel...................2, 10
Microsoft..........................4
National instruments.........3, 11, 13
Ndac..................................23
Nrfd..................................23
On srq...............................6
Open................................. 7, 27
Os/2..................................1
Parallel printer..................3, 18
Pascal................................3, 4, 7
Pc ieee...............................1, 2, 3, 4, 8, 10, 11, 12, 13, 14, 16,
18, 19, 20, 21, 22, 24, 25, 26, 27, 29,
30, 31, 32
Pc2A.................................11
Plotter............................... 3
Poll....................................8, 9, 27
Printer...............................3, 13, 18, 32
Pro-488.............................3, 4, 5, 6, 7, 30
Professional 488...............1, 3, 4, 5, 9, 11, 16, 19, 25, 28
Prospero............................4
Ps/2...................................1, 2, 10
Quick basic.......................4
Screws..............................20, 22
Service request..................11, 27, 31
Speed................................3, 26, 27, 30
Srq....................................6, 8, 11, 17, 23, 27, 31
Syntax error......................6
Technical details...............25
Version.............................1
Write.................................5, 31
Index 3
Page 41
PC IEEE Reference Index
(This page intentionally blank)
Index 4
Loading...