Encoder To Microprocessor Interface Chip Chip: Features: Description
Encoder To Microprocessor Interface Chip Chip: Features: Description
Description: Features:
Chip
The LS7266R1 is an LSI monolithic CMOS building block useful in motion Ø X4 or X1 resolution multiplication.
control applications. The two 24-bit multimode counters, registers, and Ø Two preloadable 24-bit Up/Down counters.
logic enables a microprocessor to track the speed, direction, position, and Ø Choice of two 20-pin packages: SOIC surface mount or DIP (600mil).
index of one or two optical incremental encoders. In addition to an 8-bit data Ø X1 or X2 or X4 resolution multiplier.
bus, programmable real-time inputs and outputs are provided for hardware Ø Binary, BCD, Divide-by-N, Range Limit, Non-Recycle & Non-quadrature Modes.
based control functions and status indication. Ø 2-axis 24-Bit comparators.
Ø Independent mode programmability for each axis.
Note: Ø 17 MHz in quadrature mode.
US Digital has already designed the IC's on this data sheet into various Ø 4 control registers.
products. Please see the PC7266, AD5 or ED2. Ø Readable status flag register.
Ø Digital filtering of the input quadrature clocks.
Ø Programmable 8-bit separate filter clock prescalers for each axis.
Ø Error flags for excess noise.
Ø 8-Bit tri-state I/O bus.
Ø Latched counter outputs.
Ø Input/Output TTL & CMOS compatible.
Ø 5 volt operation.
Price:
$16.55 / 1
$13.25 / 25
$10.60 / 100
$9.00 / 500
$7.65 / 1K
The control channel has different behavior depending on whether it is being read or written. When read, the control channel always returns six bits of status
information from the FLAG register. When writing to the control channel, data is sent to one of four different five-bit-wide control registers: reset/load decoder
(RLD), counter mode register (CMR), input/output control register (IOR), and index control register (IDR). Bits D5 and D6 of the data determine which register
is addressed; bit D7 is a special bit that forces the write to occur in both the X and Y counting systems when set. There is no provision for reading back the
contents of any of the control channel write registers; the host software must keep a local copy of what was sent.
One final wrinkle involves the prescale counter register. To load this register, host software must first write a single byte to the lowest order byte of the preset
latch; then the software must invoke a command to transfer data from this latch to the prescaler latch by writing a bit into the RLD register.
XLCNTR/XLOL (pin 19) Programmable input to operate either as direct load CNTR or direct load OL or synchronous load CNTR or synchronous load
OL. The synchronous load mode is intended for interfacing with the encoder index output in quadrature clock mode. In direct
YLCNTR/YLOL (pin 1) load mode, a logic low level is the active level at this input. In synchronous load mode the active level can be programmed to
be either a logic low or a logic high. Both quarter cycle and half cycle index signals are supported by this input in the indexed
load mode. The synchronous function must be disabled in non-quadrature count mode.
Programmable input to operate either as direct reset CNTR or count enable/disable gate or synchronous reset CNTR. The
XRCNTR/XABG (pin 18)
synchronous reset CNTR mode is intended for interfacing with the encoder index output in quadrature clock mode. The
YRCNTR/YABG (pin 28) synchronous reset CNTR mode the active level can be programmed to be either a logic low or a logic high. In count enable/disable
mode, a logic high at this input enables the counter and a logic low level disables the counter. Both quarter cycle and half cycle
index signals are supported by this input in the indexed reset CNTR mode.
XFLG1 (pin 22) Programmable output to operate either as CARRY (Active low), or COMPARE (generated when PR = CNTR; Active low), or
YFLG1 (pin 27) IDX (FLAG bit 6), or CARRY/BORROW (Active low).
XFLG2 (pin 23) Programmable output to operate as either BORROW (Active low), or U/D (FLAG bit 5), or E (FLAG bit 4).
YFLG2 (pin 26)
Common Inputs/Outputs:
WR (pin 14) Write input: Control/Data bytes are written at the trailing edge of low level pulse applied to this input.
RD (pin 16) Read input: A low level applied to this input enables the FLAGs and OLs to be read on the data bus.
CS (pin 15) Chip select input: A low level applied to this input enables the chip for Read and Write.
C/D (pin 13) Control/Data input: This input selects between a control register or a data register for Read/Write.
When low, a data register is selected. When high, a control register is selected.
D0-D7 (pins 4-11) Data bus input/output: The 8-bit three-state data bus is the I/O port through which all data transfers
take place between the LS7266 and the host processor.
FCK (pin 2) Filter clock input: The FCK is divided down internally by two 8-bit programmable prescalers, one for
each channel.
X/Y (pin 17) X/Y select: X/Y = 0 selects X-axis and X/Y = 1 selects the Y-axis. X/Y is overridden by D7 = 1 in control
write mode(C/D = 1).
VDD (pin 3) +5VDC
VSS (pin 12) GND
Range Limit: In range limit count mode, an upper and a lower limit is set,
mimicking limit switches in the mechanical counterpart. The upper limit is set
by the content of the PR and the lower limit is set to be 0. The CNTR freezes
Output Latch (Read Only, Data): as CNTR = PR when counting up and at CNTR = 0 when counting down. At
The 24-bit counter value at any instant can be accessed by transferring its either of these limits, the counting is resumed only when the count direction
contents to the 24-bit Output Latch. Note that only good stable data will be is reversed.
passed from the counter to the Output Latch even if the counter bits are in the
midst of a transition. This chip will internally stretch the latch pulse if necessary Non-Recycle: In non-recycle count mode the CNTR is disabled, whenever
until the counter has stabilized. The 3 bytes are then read from the Output Latch a count overflow or underflow takes place. The end of cycle is marked by
(least significant byte 1st). The byte pointer is automatically incremented with the generation of a Carry (in Up Count) or a borrow (in Down Count). The CNTR
each read cycle. You must reset the byte pointer (BP) before making the first is re-enabled when a reset or load operation is performed on the CNTR.
read.
Modulo-N: In modulo-N count mode, a count boundary is set between 0 and
the content of the PR. When counting up, at CNTR = PR, the CNTR is reset to
0 and the up count is continued from that point. When counting down, at CNTR
= 0, the CNTR is loaded with the content of PR and down count is continued
from that point.
Preset Register (Write Only, Data): The modulo-N is true bidirectional in that the divide-by-N output frequency is
The 24-bit preset register is the input port for the 24-bit counter and the filter generated in both up and down direction of counting for same N and does
clock prescaler (PSC). The data is first written into the preset register in 3 write not require the complement of N in the UP instance. In frequency divider
cycles (least significant byte 1st). The byte pointer is automatically application the modulo-N output frequency can be obtained at either the
incremented with each write cycle. You must reset the byte pointer (BP) before compare (CY) or the BW output. Modulo-N output frequency fN= (fi/ (N+1))
making the first write. where fi = Input count frequency and N = PR.
Input/Output Control Register (IOR): Reset & Load Signal Decorders (RLD):
Control functions may be combined. The toggle flip flops are triggered by
the trailing edges of the associated Carry, Borrow, or Compare match.
Thus there is a 1-clock delay between the input and output of each flip flop.
Unless otherwise specified, assume the longest prop delay from any input
to any output is <110ns.
DC Electrical Characteristics:
Parameter Min. Max. Units Notes
Supply voltage 4.5 5.5 Volts
Supply current 800 µA all clocks off
Input logic low 0.8 Volts
Input logic high 2.0 Volts
Absolute Maximum Ratings: Output low voltage 0.5 Volts IOutSink=5mA
Parameter Min. Max. Units Output high voltage VCC-.5 Volts IOutSource=1mA
Voltage at any input -.5 VCC+.5 Volts Input leakage current 30 nA
Supply voltage (VCC) - 7 Volts Output source current 1 mA VO = VCC-.5V
Operating temperature -25 80 °C Output sink current 5 mA VO = 0.5V
Storage temperature -65 150 °C Data bus leakage 60 nA data bus off current
Read Cycle Timing: The data bus will become valid 50ns after asserting Write Cycle Timing: Allow at least 30ns setup time after asserting both
both Read and Chip Select. Release starts when either Read or Chip Select Write and Chip Select for valid input data.
is terminated.
Parameter Symbol Min Max Unit Parameter Symbol Min Max Unit
RD Pulse Width tr1 50 - ns WR Pulse Width tw1 30 - ns
CS Setup Time tr2 50 - ns CS Setup Time tw2 30 - ns
CS Hold Time tr3 0 - ns CS Hold Time tw3 0 - ns
C/D Setup Time tr4 50 - ns C/D Setup Time tw4 30 - ns
C/D Hold Time tr5 0 - ns C/D Hold Time tw5 0 - ns
X/Y Setup Time tr6 50 - ns X/Y Setup Time tw6 30 - ns
X/Y Hold Time tr7 0 - ns X/Y Hold Time tw7 0 - ns
Data Bus Access Time tr8 50 - ns Data Bus Setup Time tw8 30 - ns
Data Bus Release Time tr9 - 25 ns Data Bus Hold Time tw9 0 - ns
Back to Back Read Delay tr10 60 - ns Back to Back Write Delay tw 1 0 60 - ns
Note 4: FCKn is the final modulo-n internal filter clock, arbitrarily shown here as modulo-1.
Parameter Symbol Min Max Unit Remarks
FCK high pulse width t1 14 - ns -
FCK low pulse width t2 14 - ns -
FCK frequency fFCK - 35 MHz -
Mod-n filter Clock (FCKn) period t3 28 - ns t3 = (n+1)(t1+t2), where N = PSC = 0 to FF(Hex)
FCKn frequency fFCKn - 35 MHz -
Quadrature separation t4 57 - ns -
Quadrature clock pulse width t5 115 - ns -
Quadrature clock frequency fQA, fQB - 4.3 MHz fQA = fQB = 1/8t3
Note 5 : Shown here is positive index with solid line depicting 1/4 cycle index
and dotted line depicting 1/2 cycle index. Either LCNTR/LOL or RCNTR/ABG
input can be used as the INDEX input.
Note 6 : X1, X2 and X4 clocks are the final internal Up/Down count clocks Note 8 : COMPARE is generated when PR = CNTR. In this timing diagram
derived from filtered and decoded Quadrature Clock inputs, A and B. it is arbitrarily assumed that PR = 1.
Note 7 : INDEX0 is the synchronized internal "load OL" or "reset CNTR" signal
based on LCNTR/LOL or RCNTR/ABG input being selected as the INDEX input,
respectively.