Electronic Components Datasheet Search
  English  ▼

X  

ESP8266 Datasheet(PDF) 93 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.

Part # ESP8266
Description  General Purpose Input/Output Interface (GPIO)
PDF  117 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ESPRESSIF [ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.]
Direct Link  https://www.espressif.com/
Logo ESPRESSIF - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.

ESP8266 Datasheet(HTML) 93 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.

Back Button ESP8266 Datasheet HTML 89Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 90Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 91Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 92Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 93Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 94Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 95Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 96Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 97Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. Next Button
Zoom Inzoom in Zoom Outzoom out
 93 / 117 page
background image
!
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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