对不起,是的,你是对的,我正在使用4线SPI。
我的SPISend例程是:
(uint8_t
* transmit,uint8_t
*收到,uint16_t
长度) {
HAL_StatusTypeDef
状态;
HAL_GPIO_WritePin(CS_I2C_SPI_GPIO_Port,CS_I2C_SPI_Pin,
GPIO_PIN_RESET
);
status = HAL_SPI_TransmitReceive(& hspi1,transmit,receive,length,100);
HAL_GPIO_WritePin(CS_I2C_SPI_GPIO_Port,CS_I2C_SPI_Pin,GPIO_PIN_SET
);
(状态!= HAL_OK
){
(
''传输%d r n'',状态有问题);
}
}
当我发送两个字符时,模式是:
所以信号形式是可以的。在5.25 MBaud我没有嗡嗡声芯片。我正在获得的价值观是有意义的。
我检查了三字节版本上的波形(读取| multiple | xlow,read | xhigh,dummy)它看起来很好,没有违反,但数据没有改变。
安德烈
以上来自于谷歌翻译
以下为原文
Sorry, yes you are correct, I'm using 4 wire SPI.
My SPISend routine is:
(uint8_t
* transmit, uint8_t
* receive, uint16_t
length) {
HAL_StatusTypeDef
status;
HAL_GPIO_WritePin( CS_I2C_SPI_GPIO_Port, CS_I2C_SPI_Pin,
GPIO_PIN_RESET
);
status = HAL_SPI_TransmitReceive( &hspi1, transmit, receive, length, 100);
HAL_GPIO_WritePin( CS_I2C_SPI_GPIO_Port, CS_I2C_SPI_Pin,
GPIO_PIN_SET
);
(status !=
HAL_OK
) {
(
''there is a problem with the transmit %drn'', status);
}
}
When I send two characters the pattern is:
So the signaling form is okay. At 5.25 MBaud I'm not buzzing the chip. The values that I'm getting out make sense.
I checked the wave forms on the three byte version (read | multiple | xlow, read | xhigh, dummy) and it looked good, nothing violated, but the data did not change.
Andrei
对不起,是的,你是对的,我正在使用4线SPI。
我的SPISend例程是:
(uint8_t
* transmit,uint8_t
*收到,uint16_t
长度) {
HAL_StatusTypeDef
状态;
HAL_GPIO_WritePin(CS_I2C_SPI_GPIO_Port,CS_I2C_SPI_Pin,
GPIO_PIN_RESET
);
status = HAL_SPI_TransmitReceive(& hspi1,transmit,receive,length,100);
HAL_GPIO_WritePin(CS_I2C_SPI_GPIO_Port,CS_I2C_SPI_Pin,GPIO_PIN_SET
);
(状态!= HAL_OK
){
(
''传输%d r n'',状态有问题);
}
}
当我发送两个字符时,模式是:
所以信号形式是可以的。在5.25 MBaud我没有嗡嗡声芯片。我正在获得的价值观是有意义的。
我检查了三字节版本上的波形(读取| multiple | xlow,read | xhigh,dummy)它看起来很好,没有违反,但数据没有改变。
安德烈
以上来自于谷歌翻译
以下为原文
Sorry, yes you are correct, I'm using 4 wire SPI.
My SPISend routine is:
(uint8_t
* transmit, uint8_t
* receive, uint16_t
length) {
HAL_StatusTypeDef
status;
HAL_GPIO_WritePin( CS_I2C_SPI_GPIO_Port, CS_I2C_SPI_Pin,
GPIO_PIN_RESET
);
status = HAL_SPI_TransmitReceive( &hspi1, transmit, receive, length, 100);
HAL_GPIO_WritePin( CS_I2C_SPI_GPIO_Port, CS_I2C_SPI_Pin,
GPIO_PIN_SET
);
(status !=
HAL_OK
) {
(
''there is a problem with the transmit %drn'', status);
}
}
When I send two characters the pattern is:
So the signaling form is okay. At 5.25 MBaud I'm not buzzing the chip. The values that I'm getting out make sense.
I checked the wave forms on the three byte version (read | multiple | xlow, read | xhigh, dummy) and it looked good, nothing violated, but the data did not change.
Andrei
举报