參數(shù)資料
型號: LS7266R1
廠商: LSI Corporation
元件分類: 通用總線功能
英文描述: 24-BIT DUAL-AXIS QUADRATURE COUNTER
中文描述: 24位雙軸正交計(jì)數(shù)器
文件頁數(shù): 13/14頁
文件大?。?/td> 71K
代理商: LS7266R1
#include<stdlib.h>
#include <stdio.h>
#include <conio.h>
#define XDATA(arg) (arg +0)
#define XCMD (arg) (arg + 1)
#define YDATA (arg) (arg +2)
#define YCMD (arg) (arg +3)
// RLD Reg.
#define RLD (arg) (arg | 0x80)
#define XRLD (arg) (arg | 0)
#define YRLD (arg) XRLD(arg)
#define Rst_BP 0x01
#define Rst_CNTR 0x02
#define Rst_FLAGS 0x04
#define Rst_E 0x06
#define Trf_PR_CNTR 0x08
#define Trf_CNTR_OL 0x10
#define Trf_PS0_PSC 0x18
7266R1-011598-13
//CMR Reg.
#define CMR(arg) (arg | 0xA0)
#define XCMR(arg) (arg | 0x20)
#define YCMR(arg) XCMR(arg)
#define BINCnt
#define BCDCnt
#define NrmCnt
#define RngLmt
#define NRcyc
#define ModN
#define NQDX
#define QDX1
#define QDX2
#define QDX4
0x00
0x01
0x00
0x02
0x04
0x06
0x00
0x08
0x10
0x18
//IOR Reg.
#define IOR(arg) (arg | 0xC0)
#define XIOR(arg) (arg | 0x40)
#define YIOR(arg) XIOR(arg)
#define DisAB
#define EnAB
0x00
0x01
#define LCNTR
#define LOL
#define RCNTR
#define ABGate
#define CYBW
#define CPBW
#define CB_UPDN
#define IDX_ERR
0x00
0x02
0x00
0x04
0x00
0x08
0x10
0x18
// IDR
#define IDR(arg) (arg | 0xE0)
#define XIDR(arg) (arg | 0x60)
#define YIDR(arg) XIDR(arg)
#define DisIDX
#define EnIDX
#define NIDX
#define PIDX
#define LIDX
#define RIDX
0x00
0x01
0x00
0x02
0x00
0x04
void Init_7266(int Addr);
/* Initialize 7266 as follows
Modulo N count mode for N = 0x123456
Binary Counting
Index on LCNTR/LOL Input
CY and BW outputs
RCNTR/ABG controls Counters
A and B Enabled
*/
void Init_7266(int Addr)
{
/Setup IOR Reg.
outp(XCMD(Addr),IOR(DisAB + LOL + ABGate + CYBW));
//Disable Counters and Set CY BW Mode
//Setup RLD Reg.
outp(XCMD(Addr),RLD(Rst_BP + Rst_FLAGS));
outp(XDATA(Addr),0x06);
outp(XCMD(Addr),RLD(Rst_E + Trf_PS0_PSC));
outp(XCMD(Addr),RLD(Rst_BP + Rst_CNTR));
//Reset Byte Pointer(BP) And Flags
//Load 6 to PR0 to setup Transfer to PS0
//Reset E Flag and Transfer PR0 to PSC
//Reset BP and Reset Counter
//Setup IDR Reg.
outp(XCMD(Addr),IDR(EnIDX + NIDX + LIDX));
//Enable Negative Index on LCNTR/LOL Input
//Setup CMR Reg.
outp(XCMD(Addr),CMR(BINCnt + ModN + QDX4)); //Set Binary Mondulo N Quadrature X4
C Sample Routines for Interfacing with LS7266R1
相關(guān)PDF資料
PDF描述
LS7366 32 BIT QUADRATURE COUNTER WITH SERIAL INTERFACE
LS7535FT DIMMER LIGHT SWITCH WITH UP AND DOWN CONTROLS
LS7566R 24-BIT x 4-AXES QUADRATURE COUNTER
LU82541ER 82541ER Gigabit Ethernet Controller
LVT162245 Low Voltage 16-Bit Transceiver with 3-STATE Outputs and 25? Series Resistors in A Port Outputs
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
LS7266R1-DIP 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Industrial Control IC
LS7266R1-SOIC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Industrial Control IC
LS7266R1TS 制造商:LSI Corporation 功能描述:
LS7266R1-TS 制造商:LSI Corporation 功能描述:
LS7270 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microprogram Sequencer