전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

LS7166 데이터시트(PDF) 16 Page - LSI Computer Systems

부품명 LS7166
상세설명  24-BIT QUADRATURE COUNTER
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  LSI [LSI Computer Systems]
홈페이지  http://www.lsicsi.com
Logo LSI - LSI Computer Systems

LS7166 데이터시트(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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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