You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I found that during use, it is only effective the first time. When I change the baud rate on the sending end, it still gives the value detected during the first power-up and does not change."
The text was updated successfully, but these errors were encountered:
Answers checklist.
General issue report
I used the following code for baud rate detection:
uint32_t uart_baud_detect()
{
// static uint16_t delay_cnt = 0;
if(REG_GET_BIT(UART_CONF0_REG(1), UART_AUTOBAUD_EN) == 0) // Enable auto baud rate detection
{
REG_WRITE(UART_RX_FILT_REG(1), (2 << UART_GLITCH_FILT_S) | UART_GLITCH_FILT_EN);
REG_WRITE(UART_LOWPULSE_REG(1), 4095); // Reset register to max value
REG_WRITE(UART_HIGHPULSE_REG(1), 4095); // Reset register to max value
REG_SET_BIT(UART_CONF0_REG(1), UART_AUTOBAUD_EN); // Enable autobaud
}
while(REG_GET_BIT(UART_CONF0_REG(1), UART_AUTOBAUD_EN) && REG_READ(UART_RXD_CNT_REG(1)) < 300)
{
}
However, I found that during use, it is only effective the first time. When I change the baud rate on the sending end, it still gives the value detected during the first power-up and does not change."
The text was updated successfully, but these errors were encountered: