最大放大和增益设置是什么意思?//DATAGET PG51设备命令//AAAACDD(地址:命令:顶部两个数据位)/命令00=写;10=读取POTUR3 0B01110000 / /雨刮器3在地址7 / /数据表页40中定义PoTy2 0B0110000/WiPER 2在地址6α定义POTHE1 0B000 010000 / /雨刮器1在地址1α定义POTYO0B00000000 / /雨刮器0位于地址0。γ定义TCON00B01000//地址0x04μl,定义TCON1 0B101000//地址0x0A//写入0B11111111到TCON0将连接电阻器端和第一个两个POTS / /写入0B11111111到TCON1的擦拭器将连接下一个两个POTS /SPI协议的电阻器端和刮水器。设备需要16位写入。首先是8位的POT地址,然后是7位数据//WiReTyPix16BIT(POT0,数据)/示例/ /设置电位16位(TCON0,0B11111111);WrimePix16BIT(TCON1,0B11111111);/ /写入数据以移动WiSerWrices PI1616位(POTIO0,数据);/数据0 - 127或0 - 255,如果8位设备。
以上来自于百度翻译
以下为原文
What do you mean by maximum amplification and gain settings?
//datasheet pg51 Device commands
//AAAACCDD (address:Command:top two Data bits)// command 00 = write; 10 = read
#define POT_3 0b01110000 //wiper 3 is at address 7// datasheet page 40
#define POT_2 0b01100000 //wiper 2 is at address 6
#define POT_1 0b00010000 // wiper 1 is at address 1
#define POT_0 0b00000000 //wiper 0 is at address 0.
#define TCON0 0b01000000 //address 0x04
#define TCON1 0b10100000 //address 0x0A
//write 0b11111111 to TCON0 will connect resistor ends and wiper of first two pots
//write 0b11111111 to TCON1 will connect resistor ends and wiper of next two pots
//SPI protocol for this device requires 16 bit write. First the 8-bit pot address and then the 7 bits of data.
//wirteSPI_16bit(POT0, data)
//Example
//Set up potentiometer
WriteSPI_16bit(TCON0, 0b11111111);
WriteSPI_16bit(TCON1, 0b11111111);
//write data to move wiper
WriteSPI_16bit(POT_0, data); //data 0 - 127 or 0 - 255 if 8-bit device
最大放大和增益设置是什么意思?//DATAGET PG51设备命令//AAAACDD(地址:命令:顶部两个数据位)/命令00=写;10=读取POTUR3 0B01110000 / /雨刮器3在地址7 / /数据表页40中定义PoTy2 0B0110000/WiPER 2在地址6α定义POTHE1 0B000 010000 / /雨刮器1在地址1α定义POTYO0B00000000 / /雨刮器0位于地址0。γ定义TCON00B01000//地址0x04μl,定义TCON1 0B101000//地址0x0A//写入0B11111111到TCON0将连接电阻器端和第一个两个POTS / /写入0B11111111到TCON1的擦拭器将连接下一个两个POTS /SPI协议的电阻器端和刮水器。设备需要16位写入。首先是8位的POT地址,然后是7位数据//WiReTyPix16BIT(POT0,数据)/示例/ /设置电位16位(TCON0,0B11111111);WrimePix16BIT(TCON1,0B11111111);/ /写入数据以移动WiSerWrices PI1616位(POTIO0,数据);/数据0 - 127或0 - 255,如果8位设备。
以上来自于百度翻译
以下为原文
What do you mean by maximum amplification and gain settings?
//datasheet pg51 Device commands
//AAAACCDD (address:Command:top two Data bits)// command 00 = write; 10 = read
#define POT_3 0b01110000 //wiper 3 is at address 7// datasheet page 40
#define POT_2 0b01100000 //wiper 2 is at address 6
#define POT_1 0b00010000 // wiper 1 is at address 1
#define POT_0 0b00000000 //wiper 0 is at address 0.
#define TCON0 0b01000000 //address 0x04
#define TCON1 0b10100000 //address 0x0A
//write 0b11111111 to TCON0 will connect resistor ends and wiper of first two pots
//write 0b11111111 to TCON1 will connect resistor ends and wiper of next two pots
//SPI protocol for this device requires 16 bit write. First the 8-bit pot address and then the 7 bits of data.
//wirteSPI_16bit(POT0, data)
//Example
//Set up potentiometer
WriteSPI_16bit(TCON0, 0b11111111);
WriteSPI_16bit(TCON1, 0b11111111);
//write data to move wiper
WriteSPI_16bit(POT_0, data); //data 0 - 127 or 0 - 255 if 8-bit device
举报