background image

Manual 104-QUAD-8 

14 

Data Registers (0, 2, 4, 8, A, C, E)h: 

 

These registers are read to retrieve the current count from the channel, and written to set the Preset 
Register and the Filter Clock Prescalers.  
 
To get the count from Channel 1 (Data register 0) you would first write 11h to the control register at 
address 1. Three reads are then required to get the current count from data register 0. The first read 
returns the Least Significant Byte and the last read returns the Most Significant Byte. 
 
In order to write to the Preset Register first write 11h to the control register. Then perform three writes to 
the data register. The first write is the Least Significant Byte, and the last write is the Most Significant

 

Byte. 
 

In order to write to the Filter Clock Prescaler first write 11h to the control register. Then write one byte 
to the data register with the desired PSC value. Then write 19h to the control register.

 

 

Control Registers (1, 3, 5, 7, 9, B, D, F)h: 

 

The control registers all correspond to the data register that is one address below it. 
The control register is used for the following operations: 

 

Reading the Flag Register;  

 

Resetting the BP (three byte data pointer) and flags; 

 

Setting the PSC (filter clock factor n) and PR (preset count); 

 

Initial setup of the Counter Mode Register, Input/Output Control Register and Index Control 
Register. 

 

Reading the FLAG Register: 

 

Bit 0 BT:  

Borrow Toggle flip-flop. Toggles every time the counter underflows. 

 

 

Bit 1 CT:  

Carry Toggle flip-flop. Toggles every time the counter overflows. 

 
Bit 2 CPT :  

Compare Toggle flip-flop. Toggles every time the counter is equal to the Preset 
Register. 

 
Bit 3 S:  

Sign flag. Set to 1 when counter underflows and reset to 0 when it overflows. 

 
Bit 4 E:  

Error flag. Set to 1 when excessive noise is present at the count inputs in 
quadrature mode. Ignore in other modes. 

 
Bit 5 U/D:  

Up/Down flag. Set to 1 when counting up and reset to 0 when counting down. 

 
Bit 6 IDX:  

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

 
Bit 7:    

Not used is always 0. 

 

Summary of Contents for 104-QUAD-6

Page 1: ...Diego CA 92121 858 550 9559 Fax 858 550 7322 contactus accesio com www accesio com MODEL 104 QUAD 8 MODEL 104 QUAD 6 MODEL 104 QUAD 4 EIGHT SIX AND FOUR CHANNEL QUADRATURE INPUT PC 104 BOARDS USER MAN...

Page 2: ...or the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2002 2005 by ACCES I O Products Inc 10623 Roselle S...

Page 3: ...parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable r...

Page 4: ...Registers 0 2 4 8 A C E h 14 Control Registers 1 3 5 7 9 B D F h 14 Reading the FLAG Register 14 Writing to the RLD Reset and Load Signal Decoders 15 Writing to the CMR Counter Mode Register 15 Writi...

Page 5: ...and total count By performing these functions on board it frees the computer for higher level applications The ability to provide an interrupt for the index frees the computer from the necessity of co...

Page 6: ...l quadrature decoder PC 104 board 104 QUAD 4 Four channel quadrature decoder PC 104 board Model Options T Extended operating temperature of 40 to 85 C RoHS This product is available in a RoHS complian...

Page 7: ...d or missing PC 104 quadrature board Optional Accessories C104 34F 12 Ribbon cable assembly 12 with 34 pin female headers on each end STB 34 Screw terminal board 34 pin male header DIN SNAP6 DIN rail...

Page 8: ...the following steps as appropriate for your operating system Substitute the appropriate drive letter for your CD ROM where you see d in the examples below CD Installation The following instructions as...

Page 9: ...options and base address according to your application requirements as mentioned above 2 Remove power from the PC 104 stack 3 Assemble standoff hardware for stacking and securing the boards 4 Careful...

Page 10: ...10 through 12 and 15 by a jumper at locations labeled IRQ2 through IRQ7 IRQ10 through IRQ12 and IRQ15 For PCB Revision C1 and newer the Input Mode Select for encoder output type has 3 jumpers per cha...

Page 11: ...0 2E7 2E8 2EF 2F8 2FF 300 30F 310 31F 320 32F 370 377 378 37F 380 38F 3A0 3AF 3B0 3BB 3BC 3BF 3C0 3CF 3D0 3DF 3E8 3EF 3F0 3F7 3F8 3FF 8237 DMA Controller 1 8259 Interrupt 8253 Timer 8042 Keyboard Cont...

Page 12: ...umpers and for each 1 remove the corresponding jumper The following example illustrates jumper selection corresponding to hex 300 or binary 11 000x xxxx The x xxxx represents address lines A4 A3 A2 A1...

Page 13: ...Read Write Base Address 4 Channel 3 Data Read Write Second LS7267 Base Address 5 Channel 3 Flag Command Read Write Base Address 6 Channel 4 Data Read Write Base Address 7 Channel 4 Flag Command Read...

Page 14: ...trol register Control Registers 1 3 5 7 9 B D F h The control registers all correspond to the data register that is one address below it The control register is used for the following operations Readi...

Page 15: ...t Set both bits high to use Modulo N count Bits 3 4 Set both bits low to use non quadrature mode Set bit 3 high to use Quadrature times 1 Set bit 4 high to use Quadrature times 2 Set both bits high to...

Page 16: ...s Register 10h When an interrupt occurs read from address 10h to determine which channel was the source Bit 0 7 The Least Significant Bit will correspond to the first channel High true Writing to the...

Page 17: ...6 Bit 6 Set high to enable Channel 7 Bit 7 Set high to enable Channel 8 Reading Index Input Levels 16h Bit 0 through 7 correspond to channels 1 through 8 Logic 0 Index Input low false Logic 1 Index In...

Page 18: ...1 setup o 301 15 o 300 00 o 300 00 o 300 00 o 301 28 o 301 59 o 301 63 o 311 05 o 311 04 o 312 01 Channel 1 data 24 bit and flags 8 bit card interrupt status 8 bit o 301 11 i 300 i 300 i 300 i 301 i 3...

Page 19: ...put 3 23 24 3 Quadrature B Positive Input Ground 4 25 26 4 Fused 5V Index Negative Input 4 27 28 4 Index Positive Input Quadrature A Negative Input 4 29 30 4 Quadrature A Positive Input Quadrature B N...

Page 20: ...rature B Positive Input Ground 8 25 26 8 Fused 5V Index Negative Input 8 27 28 8 Index Positive Input Quadrature A Negative Input 8 29 30 8 Quadrature A Positive Input Quadrature B Negative Input 8 31...

Page 21: ...Positive pins 100k to 5V Negative pins 100k to ground Single ended threshold Negative pins 1 4V via pull up down combo Only when single ended jumper is installed Rev C PCBs and newer Counter Section...

Page 22: ...nual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 Ro...

Reviews: