B&B Electronics 2IQEC4, 2IQEC2 User Manual

Quadrature Encoder Counter Board
Models: 2IQEC2 2IQEC4
Documentation Number 2IQEC2/43798
This product
In Ottawa, Illinois
USA
of domestic and imported parts by
B&B Electronics Mfg. Co. Inc.
707 Dayton Rd. P.O. Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Internet:
http://www.bb-elec.com
orders@bb-elec.com
support@bb.elec.com
1998 B&B Electronics -- September 1998
2IQEC2/43798 Manual Cover Page
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Table of Contents
CHAPTER 1: INTRODUCTION............................................................ 1
P
ACKING LIST...........................................................................................1
A
DDRESS SWITCH SETUP..........................................................................1
S
PECIFICATIONS........................................................................................ 2
CHAPTER 2: INSTALLATION............................................................. 3
OFTWARE INSTALLATION........................................................................ 3
S I
NSTALLING THE CARD ............................................................................. 3
C
ARD SETTINGS........................................................................................ 3
Address................................................................................................. 3
IRQ....................................................................................................... 5
Configuring the jumpers ...................................................................... 6
S
OFTWARE REGISTERS.............................................................................. 8
Flag Register........................................................................................ 8
Reset and Load Signal Decoders (RLD).............................................. 8
Counter Mode Registers (CMR) .......................................................... 9
Input/Output Control Register (IOR)................................................. 10
Index Control Registers (IDR)........................................................... 11
CHAPTER 3: TROUBLESHOOTING..................................................12
APPENDIX A: HARDWARE I/O MAP.............................................A-1
I/O M
AP OF XT CLASS MACHINES.......................................................A-1
H
ARDWARE I/O MAP OF AT CLASS MACHINES................................... A-2
APPENDIX B: SPECIFICATIONS/TIMING DIAGRAMS............. B-1
IN DESCRIPTION.................................................................................B-1
P A
DDRESSES........................................................................................... B-1
T
RANSIENT CHARACTERISTICS............................................................. B-2
Quadrature Mode............................................................................. B-2
Non-Quadrature Mode..................................................................... B-2
APPENDIX C: TYPICAL SET-UP EXAMPLES..............................C-1
2IQEC2/43798 Manual Table of Contents i
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Chapter 1: Introduction
The 2IQEC2/4 is a 2/4 channel quadrature encoder 24 bit counter card used to track the position of up to 4 separate encoders. This card is an ISA card that can be used in either an 8 or 16 bit slot. This card allows the computer to keep track of position without a lot of CPU overhead, freeing it up for more important tasks.
The 2IQEC2/4 offers a huge amount of flexibility. Upon a borrow or carry the card can be configured to reset, load a preset, cause an interrupt request or simply send out a TTL signal to indicate the carry or borrow. The card contains two inputs that can be configured to clear the counter or load the preset into the counter. The index lines may also be used to clear the counter, load the preset or cause an interrupt. The four channels use IRQ sharing to prevent all the computer's resources from being taken up by this card. The interrupt service routine can poll the card to find out which channel caused the interrupt request.
Packing List
Examine the shipping carton and contents for physical damage. The following items should be in the shipping carton:
1. 2IQEC2 or 2IQEC4
2. 2IQEC2/4 3.5" disk
3. This instruction manual
If any of these items are damaged or missing contact B&B Electronics immediately.
Address Switch Setup
The 2IQEC2/4 cards use a 7-position DIP switch to program the binary I/O address of each port on the card. The 2IQEC2/4 cards are factory configured for address 0x300 with no IRQ. If you plan on installing the 2IQEC2/4 with these settings, check the switch settings to ensure that they did not get inadvertently changed during shipping.
2IQEC2/43798 Manual 1
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Specifications
Bus: IBM PC ISA BusSlot: Requires 1 full length slot for complete IRQ selectability.
When installed in a short slot, IRQs 10-15 will not be available. The four channel card requires an additional space to mount the connectors in the back panel. This space does not need a slot on the motherboard.
Dimensions: 8.75" x 4.4"I/O connection: 15-pin female D-sub connectorsInterrupt: IRQ 2-7, 10-12, 14, or 15.Address: Switch programmable, 0 to hex 7F0RS-422 Differential inputs
Differential input high-threshold voltage 0.2V maximum Differential input low threshold voltage -0.2V maximum Input differential voltage range 1.5 to 6 volts
TTL inputs
Input high threshold 2 V Maximum Input low threshold 0.7 V Maximum Input voltage range -0.2 to 5.5 volts
TTL outputs
1 mA source @ 4.375 V 5mAsink@0.5V
12 MHz count rate in quadrature 4X mode.24-bit counters for up to four axes on 2IQEC4
(two axes on 2IQEC2)
Digital filtering of the quadrature clocksPower Consumption
+5 VDC @ 250 mA
(See additional specifications in Appendix B.)
2 2IQEC2/43798 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Chapter 2: Installation
Software Installation
The 2IQEC2/4 comes with a useful example program. This example program may be used royalty free when used with the B&B Electronics 2IQEC2/4. Any other use is strictly prohibited. To install this example file on your hard drive:
1. Place the disk in drive A:
2. Type A: and press the <ENTER> key.
3. Type Install and press the <ENTER> key.
4. Follow the instructions given by the program.
Installing the Card
1. Turn the power to your computer off.
2. Remove the cover of the computer. Be sure to use proper
grounding techniques.
3. Pick any full length (16-bit) unused slot. Although the 2IQEC2/4
cards will work in a short (8-bit) slot, IRQ's 10-15 will not be available.
4. Remove the expansion slot cover. Save the screw for
installation of the 2IQEC2/4 card.
5. Set the address, IRQ, and other jumper settings. See Card
Settings in the next section for instructions on setting the address and IRQ.
6. Install the 2IQEC2/4 card into the unused slot. Be certain that
the card is inserted completely into the slot.
7. Secure the card with the mounting screw.
Card Settings
Address
Switch S1 configures the address of the card. Switches represent a 0 in the ON position, 1 when OFF. The address lines are labeled on the card. SA10 is the MSB and SA4 is the LSB. Table 1 shows the numerical weight and electrical connection of each switch position.
2IQEC2/43798 Manual 3
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Table 1. Address Switches
1st Digit 2nd Digit
Switch
7 654321 Position Bus
SA10 SA9 SA8 SA7 SA6 SA5 SA4
Connection Decimal
1024 512 256 128 64 32 16
Weight Hex Weight
400 200 100 80 40 20 10
To set the address of the 2IQEC2/4 card at some common
locations, follow the switch settings shown in Table 2.
Table 2. Frequently Unused Port Addresses
Base Hex Address
Binary Equivalent
Switch Settings
MSB LSB
I/O Space Description
7654321
200 1000000000 0100000 game port 300 1100000000 0110000 prototype 310 1100010000 0110001 prototype 380 1110000000 0111000 SDLC 3A0 1110100000 0111010 bisync com
To install at another address, follow the procedure below.
1. Select the address. Using an I/O port usage table (one is
included in Appendix A) select an unused hex address space. Note that the card occupies 16 bytes of I/O space. Use caution when selecting a port address. It is very important that nothing else is installed at the selected address.
2. Convert the hex address to its binary equivalent.
3. Throw away the 4 least significant bits.
4. The remaining 7 digits represent the switch address. 1's
represent an OFF switch. 0's represent an ON switch.
4 2IQEC2/43798 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
IRQ
The 2IQEC2/4 card allows the use of interrupts (IRQ) 2-7, 10-12, 14, and 15. This interrupt is shared with all the channels. To determine the channel that caused the interrupt, the interrupt service routine must read the address located at the base address plus 8. The lower nibble will indicate which channel caused the interrupt. Where bit 0 is the X-Axis, bit 1 is the Y-Axis, bit 2 is the Z­Axis, and bit 3 is the W-Axis. The upper nibble is not used. To clear the interrupt, the interrupt service routine must read or write to the address located at base address plus 12 (0xC). The IRQ is set by placing a jumper on JP1. Only one jumper should be placed on JP1 at any one time. Check Table 3 for common interrupt uses.
Table 3. Hardware Interrupts
IRQ AT machines XT machines 2 routed to IRQ controller 2 Reserved 3 serial port COM2,4 Serial port COM2,4 4 serial port COM1,3 Serial port COM1,3 5 LPT2 hard disk 6 floppy disk Floppy disk 7 LPT1 parallel printer port 1 (LPT1) 8 real-time clock not available 9 re-directed to IRQ2 not available 10 Unassigned not available 11 Unassigned not available 12 Unassigned not available 13 Coprocessor not available 14 hard disk not available 15 Unassigned not available
The conditions required to generate an interrupt can be selected by the use of jumpers. Each axis is independently configured. Note that more than one condition can be configured to generate the interrupt. Note that the use of an interrupt is not required.
2IQEC2/43798 Manual 5
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Loading...
+ 15 hidden pages