TI工程师您好:
这是通过串口发出来的读到的值
0x00=80
0x01=10
0x02=3f
0x03=b5
0x04=17
0x05=0
0x06=50
0x07=14
0x08=c0
0x09=12
LSB=57
MSB=f9 0xf957 = (63831)D
0x00=80
0x01=10
0x02=3f
0x03=b5
0x04=17
0x05=0
0x06=50
0x07=14
0x08=c0
0x09=12
LSB=ca
MSB=ed 0xedca =(60874)D
0x00=80
0x01=11
0x02=32
0x03=b5
0x04=17
0x05=0
0x06=50
0x07=14
0x08=c0
0x09=12
LSB=d0
MSB=7 0x07d0=(2000)D
LDC1000_WriteReg(LDC1000_CMD_RPMAX, 0x11 ); //01 38
LDC1000_WriteReg(LDC1000_CMD_RPMIN, 0x32); //02 27
LDC1000_WriteReg(LDC1000_CMD_SENSORFREQ, 0xb5); //03 N=181 =0Xb5
LDC1000_WriteReg(LDC1000_CMD_LDCCONFIG, 0x17); //04 幅值 4V 响应时间 6144
LDC1000_WriteReg(LDC1000_CMD_CLKCONFIG, 0x00); //05 : Clock input on XIN pin 8MHZ
LDC1000_WriteReg(LDC1000_CMD_INTCONFIG, 0x02); //0a INTB pin indicates the status of Comparator output
LDC1000_WriteReg(LDC1000_CMD_THRESHILSB, 0x50); //06 默认
LDC1000_WriteReg(LDC1000_CMD_THRESHIMSB, 0x14); //07默认
LDC1000_WriteReg(LDC1000_CMD_THRESLOLSB, 0xC0); //08默认
LDC1000_WriteReg(LDC1000_CMD_THRESLOMSB, 0x12); //09默认
LDC1000_WriteReg( LDC1000_CMD_PWRCONFIG, 0x01); //0b 电源模式 开启
最大的Proximity Code值是32768吧,这是什么原因?寄存器的设置是按照EVM 做的 External Clock Signal on XIN TBCLK输入时钟8MHZ ƒSENSOR is the sensor frequency =1.068 算出来 Min Sensor Frequency 181 , SPI SCLK 4.5MHZ?
说明书说过高可能导致传感器振荡超时,然后将0x03的值配置为0x15 或者 0x45 MSB 变换还是很大