| Electronic Components Datasheet Search |
|
LS7166 Datasheet(PDF) 19 Page - LSI Computer Systems |
|
|
|||||||||||||||||||||||||||||
LS7166 Datasheet(HTML) 19 Page - LSI Computer Systems |
|
19 / 19 page ![]() /* 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 |
|
|
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 |
| 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 |