LS7166 LSI Computer Systems, Inc., LS7166 Datasheet

no-image

LS7166

Manufacturer Part Number
LS7166
Description
24-bit quadrature counter
Manufacturer
LSI Computer Systems, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LS7166
Manufacturer:
LSI
Quantity:
5 530
Part Number:
LS7166-S
Manufacturer:
ST
0
Part Number:
LS7166-S
Manufacturer:
ISD
Quantity:
20 000
Part Number:
LS7166A-S
0
7166-081507-1
FEATURES:
• Programmable modes are: Up/Down,
• DC to 25MHz Count Frequency.
• 8-Bit I/O Bus for uP Communication and Control.
• 24-Bit comparator for pre-set count comparison.
• Readable status register.
• Input/Output TTL and CMOS compatible.
• 3V to 5.5V operation (V
• LS7166 (DIP); LS7166-S (SOIC);
GENERAL DESCRIPTION:
The LS7166 is a CMOS, 24-bit counter that can be pro-
grammed to operate in several different modes. The oper-
ating mode is set up by writing control words into internal
control registers (see Figure 8). There are three 6-bit and
one 2-bit control registers for setting up the circuit functional
characteristics. In addition to the control registers, there is a
5-bit output status register (OSR) that indicates the current
counter status. The IC communicates with external circuits
through an 8-bit three state I/O bus. Control and data words
are written into the LS7166 through the bus. In addition to
the I/O bus, there are a number of discrete inputs and out-
puts to facilitate instantaneous hardware based control func-
tions and instantaneous status indication.
REGISTER DESCRIPTION:
Internal hardware registers are accessible through the I/O
bus (D0 - D7) for READ or WRITE when CS = 0. The C/D in-
put selects between the control registers (C/D = 1) and the
data registers (C/D = 0) during a READ or WRITE operation.
(See Table 1)
Binary, BCD, 24 Hour Clock, Divide-by-N,
x1 or x2 or x4 Quadrature and Single-Cycle.
LS7166-TS24 (24-Pin TSSOP) - See Figure 1 -
U L
A3800
®
LSI/CSI
The information included herein is believed to be
accurate and reliable. However, LSI Computer Systems,
Inc. assumes no responsibilities for inaccuracies, nor for
any infringements of patent rights of others which may
result from its use.
LSI Computer Systems, Inc. 1235 Walt Whitman Road, Melville, NY 11747
DD
- V
24-BIT QUADRATURE COUNTER
SS
).
LCTR/LLTC
ABGT/RCTR
ABGT/RCTR
LCTR/LLTC
V
DD
PIN ASSIGNMENTS - Top View
( +V)
(631) 271-0400 FAX (631) 271-0405
WR
NC
NC
NC
D0
WR
D1
D2
D1
CS
D0
D2
CS
A
B
A
B
LS7166
10
10
11
12
7
3
7
5
9
1
4
5
6
8
9
1
2
3
4
6
8
2
DIP and SOIC
FIGURE 1
20-PIN
2 4 - P I N
TSSOP
13
12
11
19
18
15
14
17
16
20
20
17
16
24
15
22
19
18
14
13
23
21
D4
August 2007
V
RD
C/D
BW
CY
D7
D6
D5
D3
SS
V
BW
RD
C/D
V
CY
NC
D7
D6
D5
D4
D3
SS
DD
( -V )
( - V )
( +V)

Related parts for LS7166

LS7166 Summary of contents

Page 1

... The IC communicates with external circuits through an 8-bit three state I/O bus. Control and data words are written into the LS7166 through the bus. In addition to the I/O bus, there are a number of discrete inputs and out- puts to facilitate instantaneous hardware based control func- tions and instantaneous status indication ...

Page 2

PR (Preset register). The PR is the input port for the CNTR. The CNTR is loaded with a 24 bit data via the PR. The data is first written into the WRITE cycle sequence of Byte 0 ...

Page 3

TABLE 1 - Register Addressing Modes ...

Page 4

OCCR (Output Control Register) Initializes CNTR and output operating modes. Bit # (Quadrature Register). Selects quadrature count mode (See Fig. 7) Bit # ...

Page 5

I/O DESCRIPTION: (See REGISTER DESCRIPTION for I/O Prgramming.) Data-Bus (D0 - D7) (Pin 8 - Pin 15). The 8-line data bus is a three-state I/O bus for interfacing with the system bus. CS (Chip Select Input) (Pin 2). A logical ...

Page 6

TRANSIENT CHARACTERISTICS (See Timing Diagrams in Fig. 2 thru Fig 5.5V 0˚ to 85˚C, unless otherwise specified Parameter Clock A/B "Low” Clock A/B "High" Clock A/B Frequency (See NOTE 1) Clock ...

Page 7

LTCR CLK ( CLK (B) Q0 (Internal) Q1 (Internal) Q2-Q23 (Internal) CNTR=FFFFFD CNTR=FFFFFE CNTR=FFFFFF CNTR=000000 (PR=CNTR) COMP NOTE FIGURE 2 . LOAD COUNTER, UP CLOCK, DOWN CLOCK, COMPARE OUT, CARRY, BORROW ...

Page 8

T SRS CS C/D T CRS DATA BUS CS C/D WR DATA BUS LCTR DN CLK Q0 (INTERNAL) Q1 (INTERNAL) Q2-Q23 (INTERNAL) CNTR LD (INTERNAL) BW CNTR LOAD (LCTR or MCR BASED) UP CLK OR DN CLK ...

Page 9

A B UPCLK (x1) (Internal) DNCLK (x1) (Internal) UPCLK (x2) (Internal) DNCLK (x2) (Internal) UPCLK (x4) (Internal) DNCLK (x4) (Internal) UP/DN (OSR Bit 7166-110503-9 FORWARD CQV T CQV T CBW FIGURE 7. ...

Page 10

... INPUT) RD (WRITE INPUT (CONTROL /DATA INPUT) C/D 6 (COUNT INPUT (COUNT INPUT (AB GATE/LOAD LATCH) ABGT/RCTR (LOAD CTR/LOAD LATCH) LCTR/LLTC 3 PR/OL ADDRESS (+ (GND FIGURE 8. LS7166 BLOCK DIAGRAM 7166-110103-10 I BUFFER D0, D6, INPUT BUFFER AND DECODE LOGIC -D7 PR/OL ADDRESS CLOCK DN CLOCK D0 -D4 OSR QR OCCR ...

Page 11

... FIGURE 9. 80C31/8051 TO LS7166 INTERFACE IN EXTERNAL ADDRESS MODE 8051 80C31 AD0 P0.0 AD1 P0.1 AD2 P0.2 AD3 P0.3 AD4 P0.4 AD5 P0.5 AD6 P0.6 AD7 P0.7 ALE WR/ RD/ NOTE: Port_0 is open drain output. Add pull-up resistors to all Port_0 i/0 lines. 7166-110503-11 74HC573 ...

Page 12

... FIGURE 10. 8751 INTERFACE TO LS7166 IN I/O MODE UR 31 VCC P0.0 ER/VP P0.1 P0 P0.3 P0.4 18 P0.5 X2 P0.6 9 P0.7 RESET P2.0 12 INT0 P2.1 13 8051 P2.2 INT1 15 T0 P2.3 14 P2.4 T1 P2.5 P1.0 1 P1.0 P2.6 P1.1 2 P1.1 P2.7 P1.2 3 P1.2 P1.3 4 P1.3 RD P1.4 5 P1.4 WR P1.5 6 P1.5 PSEN P1 ...

Page 13

... PC0 31 PC1 PC1 32 PC2 PC2 33 PC3 PC3 34 PC4 PC4 35 PC5 PC5 36 PC6 PC6 37 PC7 PC7 38 42 PD0 43 PD1 44 PD2 45 PD3 46 PD4 PD5 47 MODA 25 MODB 68HC11A1 7166-110103-13 FIGURE 11. LS7166 TO 68HC11 INTERFACE U3 D0 PC0 PC1 PC2 PC3 PC4 ADDRESS D5 PC5 DECODE D6 PC6 PC7 ...

Page 14

... ISA BUS AEN IOR/ IOW/ 7166-110503-14 FIGURE 12. LS7166 INTERFACE EXAMPLE ADDRESS DECODER LS7166 IOW IOR C ...

Page 15

... FIGURE 13. 68000 INTERFACE TO LS7166 ADDRESS R/W LDS/UDS 68000 68008 68010 AS DTACK CLK CLOCK 7166-062306-15 DATA BUS LS373 DECODE S74 S74 C 7166 S74 CK R ...

Page 16

... C Sample Routines for Interfacing with LS7166 #include <stdio.h> #include <stdlib.h> #include <conio.h> #define DATAMODE(arg) (arg + 0) #define CTRLMODE(arg) (arg + 1) /************************************************************************/ /* MCR (Master Control Register Select MCR */ #define MCR(arg) (arg | 0x00) /* Master Reset */ /* Reset CNTR, ICR, OCCR, QR, BWT, CYT, OL, COMPT, and PR/OL Byte Pointer */ ...

Page 17

Decrement CNTR once for inputs are enabled */ #define Decr_CNTR 0x04 /* Increment CNTR once for inputs are enabled */ #define ...

Page 18

QR (Quadrature Register Select QR */ #define QR(arg) (arg | 0xC0) /* Enable x4 Quadrature Mode */ #define En_x4QM 0x03 /* Enable x2 Quadrature Mode */ #define En_x2QM 0x02 /* Enable x1 Quadrature Mode */ #define En_x1QM ...

Page 19

Write data into 7166 Preset Register Addr has address of 7266 counter Data has 24 bit data to be written to PR register */ void Write_7166_PR(int Addr, unsigned long Data); void Write_7166_PR(int Addr, unsigned long Data){ outp(CTRLMODE(Addr), MCR(Rst_BP)); outp(DATAMODE(Addr), ...

Related keywords