想用STM32f051R8 外接一个SC12A触摸感应器,关于I2C配置的问题想请教下各位
SC12A的资料如下
但是还是不太懂具体怎么来配置STM32的I2C ,看到例程里是这么配置的
I2C_InitStruct.I2C_Mode = I2C_Mode_I2C;
I2C_InitStruct.I2C_AnalogFilter = I2C_AnalogFilter_Enable;
I2C_InitStruct.I2C_DigitalFilter = 0x00;
I2C_InitStruct.I2C_OwnAddress1 =0x00;
I2C_InitStruct.I2C_Ack = I2C_Ack_Enable;
I2C_InitStruct.I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit;
I2C_InitStruct.I2C_Timing = 0x00210507;
换成这个SC12A还是有点不太会,主要是时间寄存器的值,如下工具里的数值应该怎么填呢?
|
哪里有工具