ESP8266 Developer Zone The Official ESP8266 Forum 2017-12-19T19:15:37+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=8762 2017-12-19T19:15:37+08:00 2017-12-19T19:15:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8762&p=18736#p18736 <![CDATA[Re: Units of UART_RX_TOUT_THRHD]]> ESP8266 Technical Reference.

Statistics: Posted by Her Mary — Tue Dec 19, 2017 7:15 pm


]]>
2017-12-16T22:52:09+08:00 2017-12-16T22:52:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8762&p=18713#p18713 <![CDATA[Units of UART_RX_TOUT_THRHD]]> I have some question about UART configuration of my ESP8266.
I changed rx_tout_thrhd value from 0x02 by default to 0x10, to prevent false interrupt event of UART receiver. Now my code works just fine. But i dont know which units is used for rx_tout_thrhd value. Is it microseconds, miliseconds, parts of byte reciving time, or anything else?

My code:

Code:

WRITE_PERI_REG(UART_CONF1(uart_no),
           ((100 & UART_RXFIFO_FULL_THRHD) << UART_RXFIFO_FULL_THRHD_S) |
           ((110 & UART_RX_FLOW_THRHD) << UART_RX_FLOW_THRHD_S) |
           UART_RX_FLOW_EN |
           (/*0x02*/0x10 & UART_RX_TOUT_THRHD) << UART_RX_TOUT_THRHD_S |
           UART_RX_TOUT_EN |
        ((0x10 & UART_TXFIFO_EMPTY_THRHD) << UART_TXFIFO_EMPTY_THRHD_S));

Statistics: Posted by valerycpp — Sat Dec 16, 2017 10:52 pm


]]>