| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 91 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 91 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
91 / 117 page ![]() ! 11. UART Introduction 11.4.2. Interface Open interrupt enable: UART_ENABLE_INTR_MASK(uart_no,ena_mask); Close interrupt enable: UART_DISABLE_INTR_MASK (uart_no,disable_mask); Clear interrupt enable: UART_CLR_INTR_STATUS_MASK(uart_no,clr_mask); Get interrupt status UART_GET_INTR_STATUS(uart_no); 11.4.3. Interrupt Type Receive full interrupt Interrupt status bits:UART_RXFIFO_FULL_INT_ST Definition: When configure threshold and enable interrupts, triggered will interrupt when rx fifo data length is greater than the threshold. Application:more applied in receiving UART data ,cooperating with flow control,dealing with directly or posting messages or turn into buffer.For example,when the configuration of the threshold is 100 and the enable full is interruption, the full will interrupt once the serial port receive 100 Bytes. Configure threshold value: Full interrupt threshold In the UART_CONF1 register #define UART_RXFIFO_FULL_THRHD 0x0000007F //The threshold mask, 7bit long and range 0 ~ 127 #define UART_RXFIFO_FULL_THRHD_S 0 //Shift register is 0 (start from 0bit) Set enable to interrupt: In UART_INT_ENA register #define UART_RXFIFO_FULL_INT_ENA (BIT(0)) //full interrupt enable bit, 1: enable;0: disable clear interrupt status: As for special full interrupts you need first to read all fifo received data empty, then write the clear interruption status register.Otherwise, the interrupt status bit will be set again after exit. Please see details in examples of interrupt handling. Receive overflow interrupt Interrupt status bits:UART_RXFIFO_OVF_INT_ST Espressif ! /! 83 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 |