INSTRUCTION MANUAL Sensoray Model 626 PCI Multifunction I/O Board Revision F January 28, 2004 For Technical Support contact Sensoray Co., Inc. 7313 SW Tech Center Dr., Tigard, Oregon 97223, USA Tel:(503) 684-8005 Fax:(503) 684-8164 e-mail: techsupport@sensoray.com www.sensoray.com...
P THE OUNTER OURCE 10.5.1 Software Control of the Index ......................... 20 10.5.2 Multiplier................................. 20 10.5.3 Software Control Of Direction & Count Generation ..................20 10.6 A’ ................... 20 RIVING OUNTER OUNTER VERFLOW Sensoray Model 626 Instruction Manual Page 1...
Page 4
Table 7 Selecting Positive or Negative Edge Capture ................11 Table 8 Enabling & Disabling Edge Capture ..................11 Table 9 Reading Captured Edges ......................12 Table 10 Reading the Status of the Interrupt Enable Registers ............12 Sensoray Model 626 Instruction Manual Page 2...
Page 5
Table 20 Read from MISC1 88 (hex)..................... 23 Table 21 Write to MISC2 90 (hex)......................23 Table 22 Read from MISC2 92 (hex)..................... 23 Table 23 Reading back Digital Outputs 1-7 Source Selection............. 25 Table 24 Encoder Connectors ........................ 29 Sensoray Model 626 Instruction Manual Page 3...
2. Special Handling Instructions The Model 626 circuit board contains CMOS circuitry that is sensitive to Electrostatic Discharge (ESD). Special care should be taken in handling, transporting, and installing the 626 to prevent ESD damage to the board. In particular: •...
This is the information that identifies the 626 board in the PCI system. Device ID: 7146(hex) Vendor ID: 1131(hex) 5. Installation The installation of the Model 626 into a PCI system is straight forward as no special adjustment (jumpers) are required. Sensoray Model 626 Instruction Manual...
The interrupts are disabled to allow the system time to get back up and running. Table 3 Counter Initial States Register or I/O State Page Counter input selection Edge detection Multiplier Counters Unchanged Clear Counter B Pre-load trigger Pre-load registers Sensoray Model 626 Instruction Manual...
Digital I/O Channels Overview The 626 board provides 48 digital I/O channels. 40 of these channels (Channels 0-39) offer edge detection & interrupt on edge detection. Either a positive or negative edge can be detected. The other 8 channels (40-47) have simple input/output functionality only.
Pulling the input to ground will cause a ‘1’ to be read from the digital input register. The corresponding output register must have “0” written to it before it can be used as an input. Sensoray Model 626 Instruction Manual...
‘0’ is used to disable one or more channels. 2. Now write to the WRCAPSELA, B or C to apply the above command to the corresponding channels selected with a ‘1’ in WRCAPSELA, B or C. Sensoray Model 626 Instruction Manual...
RDEDGREGC RDEDGREGA, B & C are used to determine which channels will capture positive edges and which will capture negative edges(when they are enabled). A transition from 0 to 1 is considered a positive edge. Sensoray Model 626 Instruction Manual...
9.6.2 Digital Input Interrupt Handling There is only one main interrupt to the system from the 626. Once this interrupt has been received it is up to the user to determine whether it originated from the counters (See “Counter Interrupt Handling”...
10.1 Overview The Model 626 has six counters arranged in 3 pairs : 0A, 0B, 1A, 1B, 2A, and 2B. One of these pairs is shown in Figure 6 P17. They can be used in pairs or “stand alone”. Each counter can be used with the internal quadrature encoder interface for positioning systems, as timers using the internal clock, or as external (hardware) or internal (software) event counters.
Note the counter interrupts are disabled when the system powers up but if an interrupt occurred during power down then it will occur the moment the interrupts are re-enabled. Sensoray Model 626 Instruction Manual...
Note: If the counters are driven in a single ended mode as shown in Figure 4 and Figure 5, then the unused phase inputs do not have to be biased at 2.5V. Each encoder input has two 100K resistors that bias the input to 2.5V when no driving source is present. Sensoray Model 626 Instruction Manual...
10.3 Block Diagram From From other other counter counter interrupts interrupts Combined Counter Interrupts PCI Bus Figure 6 - Block diagram of a counter pair Sensoray Model 626 Instruction Manual...
Do not be confused by the naming of registers CR0A & CR0B. They are simply the A & B parts of the single register CR0 (Counter Register 0) and do not refer specifically to counter A and counter B. Sensoray Model 626 Instruction Manual...
If ‘Counter A Index Source’=01 then the digital inputs control the indexing. While in this mode ‘Counter A Index Edge Selection’=0 will index on the positive edges while 1 will index on the negative edges. Sensoray Model 626 Instruction Manual...
‘Counter B Source Edge Selection’ must be 0. To set the count direction to down ‘Counter B Source’ must be 11. To set the count direction to up ‘Counter B Source’ must be 10. Sensoray Model 626 Instruction Manual...
‘Latch Source’=01 will latch counter A when there is a counter A index. ‘Latch Source’=10 will latch counter B when there is a counter B index. ‘Latch Source’=11 will latch counter B when counter A overflows. (Useful when frequency counting). Sensoray Model 626 Instruction Manual...
10.10.4 Counter Interrupt Handling There is only one main interrupt to the system from the 626. Once this interrupt has been received it is up to the user to determine whether it originated from the counters or the digital inputs.
Before writing to any of the bits of MISC2, except bit 15 (Clear watchdog), the write enable (bit 15) of MISC1 must be set. This is to prevent accidental modification of the watchdog settings by a crashed CPU. It is a good idea to clear this bit immediately after writing to MISC2. Sensoray Model 626 Instruction Manual...
PCI bus (Pulled low) if JP1 is inserted or if the jumper is not inserted then bit 14 of Misc2 will go high and the LED will flash at ½ the selected watchdog period. Sensoray Model 626 Instruction Manual...
0=Digital input, 1= Counter 2B Overflow 12. Battery Backup A 3.6V Nickel Cadmium battery can be connected to the 626 using JP1. Make sure that it is connected correctly or damage will occur. It will be trickle charged at approximately 100mA if the “Charge Enable”...
If this feature is not used then insert the jumpers which in effect connects the sense input to the D/A output right on the board. J6, J7, J8 & J9 are inserted to disable the sense inputs for channels 0 -3 respectively. Sensoray Model 626 Instruction Manual...
Operating range -12V -11.6 Quiescent current (not charging) Charging current 62.5 Battery drain under backup Battery Battery drain with charger off and not in backup mode Internal timer mode Encoder Externally driven 500KHz Temperature Operating range Sensoray Model 626 Instruction Manual...
The counter number is shown in brackets. A+, B-, I+ etc shows the phase & polarity of the quadrature inputs. Example: (2A) A+ is the positive line (Non inverted) of the A phase of counter 2A. Sensoray Model 626 Instruction Manual...
Need help?
Do you have a question about the 626 and is the answer not in the manual?
Questions and answers