esp32的uart波特率问题,不能配置成3000000吗?
Posted: Mon Jun 21, 2021 9:29 am
因为一个特殊的传感器,他的波特率是3000000,也就是3M,我看文档上写的是可以支持5M的,但实际是不行的
uart_config_t uart_config = {
.baud_rate = 3000000,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.source_clk = UART_SCLK_APB,
};
是否配置有问题?
uart_config_t uart_config = {
.baud_rate = 3000000,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.source_clk = UART_SCLK_APB,
};
是否配置有问题?