Electronic Components Datasheet Search
  English  ▼

X  

ESP8266 Datasheet(PDF) 92 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) 92 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.

Back Button ESP8266 Datasheet HTML 88Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. 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. Next Button
Zoom Inzoom in Zoom Outzoom out
 92 / 117 page
background image
!
11. UART Introduction
Definition: When enable receive overflow to interrupt and the length of the receive queue is
greater than the total length of the queue (128 Bytes), it will trigger the interrupt signal.
Trigger scene: Generally, it’s only under the case of unset flow control,because there will not
occur overflow when has flow control.Different from the full interrupt is artificially set the
threshold and the data will not lose,overflow interrupt triggering will usually has data loss.
Can be used for debugging and error checking.
Set enable to interrupt:
In UART_INT_ENA register
#define UART_RXFIFO_OVF_INT_ENA (BIT(4)) //Overflow interrupt enable bit: 1: enable; 0:
disable
Clear interrupt status:
Read queue value to make the queue length less than 128, then set the clear interrupt
status register.
Receive timeout interrupt
Interrupt status bit: UART_RXFIFO_TOUT_INT_ST
Definition:When configure threshold value of tout,enable interrupts and UART begin to
receive data, it will triggered tout interrupt once stop transmission time exceeds the set
threshold.
Applications: more applied in handling serial commands or data, process the data directly,
or post a message, or turn into deposited buffer.
Configure threshold and function enable:
Tout interrupt threshold (or threshold) in UART_CONF1 register.
Tout unit threshold is about 8 data bits uart time (approximately one byte).
#define UART_RX_TOUT_EN (BIT(31)) //Timeout function enable bit: 1: enable;0: disable
#define UART_RX_TOUT_THRHD 0x0000007F //Timeout threshold configuration bits, a
total of seven and range 0 ~ 127
#define UART_RX_TOUT_THRHD_S 24 //Register offset is 24 (start from 24th bit)
Set enable to interrupt:
In UART_INT_ENA register
#define UART_RXFIFO_TOUT_INT_ENA (BIT(8)) tout // Interrupt enable bit:1: enable;0:
disable
Clear interrupt status:
Like full interrupts,tout interrupt also need to firstly read out all received fifo data,then clear
interrupt status register.Otherwise, interrupt status bit will still be set after exiting.
Please see details in examples of interrupt handling.
Espressif
! /!
84 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