Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

LS7166 Datasheet(PDF) 16 Page - LSI Computer Systems

No. de pieza LS7166
Descripción Electrónicos  24-BIT QUADRATURE COUNTER
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  LSI [LSI Computer Systems]
Página de inicio  http://www.lsicsi.com
Logo LSI - LSI Computer Systems

LS7166 Datasheet(HTML) 16 Page - LSI Computer Systems

Back Button LS7166_08 Datasheet HTML 11Page - LSI Computer Systems LS7166_08 Datasheet HTML 12Page - LSI Computer Systems LS7166_08 Datasheet HTML 13Page - LSI Computer Systems LS7166_08 Datasheet HTML 14Page - LSI Computer Systems LS7166_08 Datasheet HTML 15Page - LSI Computer Systems LS7166_08 Datasheet HTML 16Page - LSI Computer Systems LS7166_08 Datasheet HTML 17Page - LSI Computer Systems LS7166_08 Datasheet HTML 18Page - LSI Computer Systems LS7166_08 Datasheet HTML 19Page - LSI Computer Systems  
Zoom Inzoom in Zoom Outzoom out
 16 / 19 page
background image
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 */
/* Set PR and SIGN */
#define Rst_Master
0x20
/* Reset COMPT */
#define Rst_COMPT 0x10
/* Transfer PR to CNTR (24 bits) */
#define Trf_PR_CNTR 0x08
/* Reset CNTR, BWT and CYT */
/* Set SIGN bit */
#define Rst_CNTR_BWT_CYT_Set_SIGN
0x04
/* Transfer CNTR to OL (24 bits) */
#define Trf_CNTR_OL 0x02
/* Reset PR/OL Byte Pointer */
#define Rst_BP 0x01
/************************************************************************/
/* ICR (Input Control Register) */
/* Select ICR */
#define ICR(arg) (arg | 0x40)
_____ ____
/* Select LCTR / LLTC as Load-CNTR Input */
#define LCNTR 0x00
_____ ____
/* Select LCTR / LLTC as Load-OL Input */
#define LOL
0x20
_____ ____
/* Select ABGT / RCTR as Reset-CNTR Input */
#define RCNTR 0x00
_____ ____
/* Select ABGT / RCTR as Enable / Disable Gate for A / B Inputs */
#define ABGate 0x10
/* Disable A / B Inputs */
#define DisAB 0x00
/* Enable A / B Inputs */
#define EnAB
0x08
7166-081507-16



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com