这边在LINUX下测试CH9434M,波特率设置为115200,单路串口都不能满速,请问这是正常的吗?
驱动使用的是https://github.com/WCHSoftGroup/ch9434ser_linux
另外,Data sheet里面有提到,CH9434有个CH9434M和CH9434A两个型号,请问有啥区别?
再次,这边查看驱动里面,CH9434可以支持SPI连续模式,但是需要特定固件版本,请问这个固件有办法升级到连续模式的版本吗?
ret = ch943x_port_read_multi(&s->p[0].port, 0, CH943X_CHIP_VER_REG, s->ver, 4);
if (ret)
goto out;
if ((s->ver[3] != 0x5A) || (s->ver[2] != (s->ver[0] + s->ver[1]))) {
s->spi_contmode = false;
s->ver[0] = 0;
s->ver[1] = 1;
} else {
if (s->ver[1] & 0xf0) {
dev_err(&s->spi_dev->dev, "Current driver does not support this chip version.\n");
goto out;
}
if (spi->max_speed_hz > 2000000) {
dev_err(&s->spi_dev->dev,
"SPI continuous transmission mode can only be enabled when the SPI clock does not exceed 2M.\n");
goto out;
}
spi_contmode_reg = ch943x_port_read(&s->p[0].port, CH943X_SPI_CONT_MODE_REG);
ch943x_port_write(&s->p[0].port, CH943X_SPI_CONT_MODE_REG, CH943X_SPI_CONTE_BIT | spi_contmode_reg);