Electronic Components Datasheet Search
  English  ▼

X  

LS7166 Datasheet(PDF) 19 Page - LSI Computer Systems

Part # LS7166
Description  24-BIT QUADRATURE COUNTER
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  LSI [LSI Computer Systems]
Direct Link  http://www.lsicsi.com
Logo LSI - LSI Computer Systems

LS7166 Datasheet(HTML) 19 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
 19 / 19 page
background image
/* Write data into 7166 Preset Register
Addr has address of 7166 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), (unsigned char)Data);
Data >>= 8;
outp(DATAMODE(Addr), (unsigned char)Data);
Data >>= 8;
outp(DATAMODE(Addr), (unsigned char)Data);
}
/* Read 7166 Output Latch
Addr has address of 7166 counter
Data returns 24 bit OL register value. */
unsigned long Read_7166_OL(int Addr);
unsigned long Read_7166_OL(int Addr){
unsigned long Data = 0;
outp(CTRLMODE(Addr), MCR(Rst_BP + Trf_CNTR_OL));
Data |= (unsigned long) inp(DATAMODE(Addr));
lrotr(Data,8);
Data |= (unsigned long) inp(DATAMODE(Addr));
lrotr(Data,8);
Data |= (unsigned long) inp(DATAMODE(Addr));
lrotr(Data,16);
return(Data);
}
/* Read Output Status Register
Addr has address of 7166 counter
returns OSR data */
unsigned long Read_7166_OSR(int Addr);
unsigned long Read_7166_OSR(int Addr){
return(inp(CNTRLMODE(Addr)));
}
7166-121508-19



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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