| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 93 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 93 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
93 / 117 page ![]() ! 11. UART Introduction Send empty fifo interrupt Interrupt status bit: UART_TXFIFO_EMPTY_INT_ST Definition: After configure empty threshold value and enable interrupts ,it will trigger this empty interrupt when the data length of the data-send queue is less than the set threshold. Application: Can be used in forwarding the buffer data into UART automatically with the cooperation of interrupt handler function.For example,set the empty threshold to 5, then when the tx fifo length be less than 5 bytes trigger the empty interrupt,in the empty interrupt handler ,take the data from the buffer to fill the tx fifo full(operating speed is much higher than tx fifo fifo transmission speed ). Continue the cycle until the buffer data has totally been sent out, then close the empty interrupt. Configure threshold: Empty interrupt threshold (or threshold) in UART_CONF1 register #define UART_TXFIFO_EMPTY_THRHD 0x0000007F //Send queue empty interrupt threshold configuration bits, seven bits and range 0 ~ 127 #define UART_TXFIFO_EMPTY_THRHD_S 8 //Register Offset is 8 (start from 8th) To enable interrupt: In UART_INT_ENA register #define UART_TXFIFO_EMPTY_INT_ENA (BIT(1)) //empty interrupt enable bit, 1: enable;0: disable Clear interrupt status: Fill the sending queue above the threshold,and clear the corresponding interrupt status bit.If there is no data need to send, close the interrupt enable bits. Please see details in examples of interrupt handling. Error detection interrupt Interrupt status bit: Parity Error Interrupt UART_PARITY_ERR_INT_ST Termination line error interrupt(line-break) UART_BRK_DET_INT_ST Received frame error interrupt UART_FRM_ERR_INT_ST Definition: Parity error interrupt (parity_err): received byte exists parity error. Termination line error interrupt(BRK_DET):receive break signal,or receive error initial conditions (rx line always stays low) Receive frame error interrupt (frm_err):stop bit is not 1. Application: Generally used for error detection. Espressif ! /! 85 104 2017.05 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |