ls7266r1 LSI Computer Systems, Inc., ls7266r1 Datasheet - Page 15

no-image

ls7266r1

Manufacturer Part Number
ls7266r1
Description
24-bit Dual-axis Quadrature Counter
Manufacturer
LSI Computer Systems, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ls7266r1-S
Manufacturer:
TI
Quantity:
301
Part Number:
ls7266r1-S
Manufacturer:
ST
0
Part Number:
ls7266r1-S
Manufacturer:
LSI
Quantity:
20 000
Part Number:
ls7266r1-SD
Manufacturer:
SCL
Quantity:
430
7266R1-100704-15
}
/* Write_7266_PR
Input: Addr has Address of 7266 counter.
Data: has 24 bit data to be written to PR register
void Write_7266_PR(int Addr,unsigned long Data);
void Write_7266_PR(int Addr,unsigned long Data)
{
}
/* Read_7266_OL
*/
unsigned long Read_7266_OL(int Addr);
unsigned long Read_7266_OL(int Addr)
{ unsigned long Data=0;
}
/* Get_7266_Flags
*/
unsigned char Get_7266_Flags(int Addr);
unsigned char Get_7266_Flags(int Addr)
{
}
*/
//Setup PR Reg. for Modulo N Counter to 0x123456
//Setup PR Reg. for Modulo N Counter to 0x123456
outp(XDATA(Addr),0x56); //Least significant Byte first
outp(XDATA(Addr),0x34); //then middle byte
outp(XDATA(Addr),0x12); //then most significant byte
outp(YDATA(Addr),0x56); //Least significant Byte first
outp(YDATA(Addr),0x34); //then middle byte
outp(YDATA(Addr),0x12); //then most significant byte
//Enable Counters
outp(XCMD(Addr),IOR(EnAB));
outp(XCMD(Addr),RLD(Rst_BP));
outp(XDATA(Addr),(unsigned char)Data);
Data >>= 8;
outp (XDATA(Addr),(unsigned char)Data);
Data >>= 8;
outp(XDATA(Addr),(unsigned char)Data);
Input: Addr has Address of 7266 counter.
Output: Data returns 24 bit OL register value.
outp(XCMD(Addr),(RLD(Rst_BP + Trf_Cntr_OL)); //Reset Byte Pointer to Synchronize Byte reading and
Data |=(unsigned long)inp(XDATA(Addr));
lrotr(Data,8);
Data |=(unsigned long)inp(XDATA(Addr));
lrotr(Data,8);
Data |=(unsigned long)inp(XDATA(Addr)); //read byte 2 from OL
lrotr(Data,16);
return(Data);
Input: Addr has Address of 7266 counter.
returns Flags of counter
return(inp(CMD(Addr)));
//Reset Byte Pointer to Synchronize Byte Writing
//Rotate for next Byte
//Rotate for next Byte
//Rotate for last Byte
//read byte 0 from OL
//read byte 1 from OL
Transferring of data from counters to OL.

Related parts for ls7266r1