| Datenblatt-Suchmaschine für elektronische Bauteile |
|
LS7166 Datenblatt(PDF) 16 Page - LSI Computer Systems |
|
|
|||||||||||||||||||||||||||||
LS7166 Datenblatt(HTML) 16 Page - LSI Computer Systems |
|
16 / 19 page ![]() 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 |
|
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |