background image

8

2IQEC2/43798 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5105

 

Software Registers

Flag Register (Read Data Address)

The FLAG register is a read-only register that holds the

status information of the counters and can be read out on the data
bus. To read the FLAG byte for any axis, read the control address
of that axis.

FLAG Byte Defined

7 6 5 4 3 2 1 0

BT: Borrow toggle flip-flop.
Toggles every time CNTR underflows

CT: Carry toggle flip-flop.
Toggles every time CNTR overflows

CPT: Compare toggle flip-flop.
Toggles every time PR equals CNTR.

S: Sign flag. Set to 1 when CNTR underflows.
Reset to 0 when CNTR overflows

E: Error flag. Set to 1 when excessive noise is present at
the count inputs in quadrature mode. Irrelevant in non-
quadrature mode.

U/D': Up/Down flag. Set to 1 when counting up
And reset to 0 when counting down

IDX: Index. Set to 1 when selected index input is at active
level.

0: Not used. Always reset to 0.

Reset and Load Signal Decoders (Write to Control Address)

The following functions can be performed by writing to the

control address for that axis. Note that bits 5 and 6 define the
register and should always be zero when writing to the RLD register.

RLD Byte Defined

7 6 5 4 3 2 1 0

X

0

0

X

X

X

X

0

NOP

X

0

0

X

X

X

X

1

Reset BP

X

0

0

X

X

0

0

X NOP

X

0

0

X

X

0

1

X Reset CNTR

X

0

0

X

X

1

0

X Reset BT, CT, CPT, S

X

0

0

X

X

1

1

X Reset E

X

0

0

0

0

X

X

X NOP

X

0

0

0

1

X

X

X Transfer PR to CNTR

X

0

0

1

0

X

X

X Transfer CNTR to OL

X

0

0

1

1

X

X

X Transfer PR0 to PSC

0

0

0

X

X

X

X

X Select the RLD addressed by X'/Y input

1

0

0

X

X

X

X

X Select both XRLD and YRLD or ZRLD and WRLD together

Summary of Contents for 2IQEC2

Page 1: ...IQEC2 2IQEC4 Documentation Number 2IQEC2 43798 This product Designed and Manufactured 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 ...

Page 2: ...figuring the jumpers 6 SOFTWARE 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 MAP OF XT CLASS MACHINES A 1 HARDWARE I O MAP OF AT CLASS MACHINES A 2 APPENDIX B SPECIFICATIONS TIMING DIAGRAMS B 1 PIN DESCRIPTION B 1 ADDR...

Page 3: ...et 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 ...

Page 4: ... sub connectors Interrupt IRQ 2 7 10 12 14 or 15 Address Switch programmable 0 to hex 7F0 RS 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...

Page 5: ...se 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 th...

Page 6: ...ace Description 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 ...

Page 7: ...RQ 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 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 Table 3 Hardwa...

Page 8: ... The middle jumpers labeled JP3 JP7 JP11 and JP15 allow you to select what conditions cause the counter to be reset or the counter to be enabled depending on the software configuration of the input The last jumpers labeled JP2 JP6 JP10 and JP14 are used to define what conditions cause an interrupt IRQ JP5 selects the type of input encoder signals for the X and Y axes not including the index Set ju...

Page 9: ...2IQEC2 43798 Manual 7 B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5105 Location of Jumpers ...

Page 10: ... inputs in quadrature mode Irrelevant in non quadrature mode U D Up Down flag Set to 1 when counting up And reset to 0 when counting down IDX Index Set to 1 when selected index input is at active level 0 Not used Always reset to 0 Reset and Load Signal Decoders Write to Control Address The following functions can be performed by writing to the control address for that axis Note that bits 5 and 6 d...

Page 11: ... X X X X 0 Binary Count X 0 1 X X X X 1 Binary Coded Decimal Count X 0 1 X X 0 0 X Normal Count X 0 1 X X 0 1 X Range Limit X 0 1 X X 1 0 X Non Recycle Count X 0 1 X X 1 1 X Modulo N X 0 1 0 0 X X X Non quadrature X 0 1 0 1 X X X Quadrature 1X X 0 1 1 0 X X X Quadrature 2X X 0 1 1 1 X X X Quadrature 4X 0 0 1 X X X X X Select the CMR addressed by X Y input 1 0 1 X X X X X Select both XCMR and YCMR ...

Page 12: ...ent of N in the UP instance In frequency divider application the modulo N output frequency can be obtained at either the Compare FLG1 or the Borrow FLG2 output Modulo N output frequency fN fI N 1 where fI is the input count frequency and N PR Input Output Control Register Write to Control Address The functional modes of the programmable input and output pins are written into the IORs IOR Byte Defi...

Page 13: ...the quadrature clocks Note that only one of these inputs can be selected as the Index input at a time and hence only one type on indexing function can be performed in any given set up The index function must be disabled in non quadrature count mode IDR Byte Defined 7 6 5 4 3 2 1 0 X 1 1 X X X X 0 Disable Index X 1 1 X X X X 1 Enable Index X 1 1 X X X 0 X Negative Index Polarity X 1 1 X X X 1 X Pos...

Page 14: ... you are unable to communicate with the card from your software 1 Double check that the address is properly set 3 Check your pinouts 4 Try the demo software that comes with the card 5 Call B B Electronics Technical Support Technicians are available at 815 433 5100 to answer your questions from 8 am 5 00 pm weekdays Central Time ...

Page 15: ...rupt controller 8259A 040 043 timer 8253 060 063 PPI 8255A 080 083 DMA page register 74LS612 0A0 0AF NMI non maskable interrupt 200 20F game port joystick controller 210 217 expansion unit 2E8 2EF COM4 serial port 2F8 2FF COM2 serial port 300 31F prototype card 320 32F hard disk 378 37F parallel printer 380 38F SDLC 3B0 3BF MDA monochrome adapter and printer 3D0 3D7 CGA color graphics adapter 3E8 ...

Page 16: ...controller 2 8237A 0F0 0FF 80287 math coprocessor 1F0 1F8 hard disk 200 20F game port joystick controller 258 25F Intel Above Board 278 27F parallel printer port 2 2E8 2EF COM4 serial port 2F8 2FF COM2 serial port 300 31F prototype card 378 37F parallel printer 1 380 38F SDLC or bisynch com 2 3A0 3AF bisynch com 1 3B0 3BF MDA monochrome adapter 3BC 3BE parallel printer on monochrome adapter 3C0 3C...

Page 17: ... FLG 2 Programmed output 11 FLG 1 Programmed output 12 Load Counter Input 13 Reset Counter Input 14 5VDC 15 Ground Addresses Base X Axis Data Base 1 X Axis Control Base 2 Y Axis Data Base 3 Y Axis Control Base 4 Z Axis Data Base 5 Z Axis Control Base 6 W Axis Data Base 7 W Axis Control Base 8 IRQ Register Base 9 Do not use Base 10 Do not use Base 11 Do not use Base 12 Clear IRQ Base 13 Do not use ...

Page 18: ...k to Count Delay tQ1 5t3 6t3 X1 X2 X4 Count Clock Pulse Width tQ2 42 ns tQ2 t3 Index Input Pulse Width tidx 125 ns tidx 3t3 Index Skew from A tAi 42 ns tAi t3 Carry Borrow Compare Output Width tQ3 42 ns tQ3 t3 Non Quadrature Mode Parameter Symbol Min Value Max Value Unit Remarks Clock A High Pulse Width t6 16 ns Clock A Low Pulse Width t7 16 ns Direction Input B Set up Time t8S 20 ns Direction Inp...

Page 19: ...2IQEC2 43798 Manual Appendix B Specifications B 3 B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5105 Filter Clock modulo 1 shown Quadrature Clock and Index Positive index shown ...

Page 20: ...43798 Manual B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5105 Carry Borrow Compare Carry Toggle Borrow Toggle and Compare Toggle 4X Quadrature Normal Binary Count and PR 1 Non Quadrature mode A Count B Direction ...

Page 21: ...ual Appendix B Specifications B 5 B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5105 Non Recycle Non Quadrature BCD Mode Modulo N Non Quadrature Modulo 3 shown Range Limit Non Quadrature PR 4 ...

Page 22: ...2IQEC2 43798 Manual Appendix C Typical Set up Examples C 1 B B Electronics PO Box 1040 Ottawa IL 61350 PH 815 433 5100 FAX 815 433 5105 Appendix C Typical Set up Examples ...

Reviews: