Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button ESP8266 Datasheet HTML 63Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 64Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 65Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 66Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 67Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 68Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 69Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 70Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 71Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. Next Button
Zoom Inzoom in Zoom Outzoom out
 67 / 117 page
background image
!
7. SPI Wi-Fi Passthrough 2-Interrupt Mode
7.3. Instruction on The Data Flow Control Line
The ESP8266 uses 2 GPIOs to output the slave receive buffer status and send buffer
status.
7.3.1. GPIO0 MOSI Buffer Status
When GPIO0 enters the slave receive interrupt, the interrupt program will resume the SPI
slave to communicable status in order to prepare for the next communication. Then, GPIO0
will be written to be low level, data received will be processed, and GPIO0 will be written to
be high level to exit the interrupt program. Therefore:
•
Between the master enables an SPI write communication to GPIO0 generates a
falling edge, if users enable any other SPIs, communication errors will occur.
•
When GPIO0 is at low level, if the master enables any SPI to write (0x02 command),
SPI_W0 to SPI_W7 in the slave receive register will be covered. But if there is
effective data in the slave send register (refer to GPIO2 instructions), when GPIO0 is
at low level, master can be started to read (0x03 command) data between SPI_W8 to
SPI_W15 in the slave send register.
•
If GPIO0 shifts from low level to high level, it means the slave has processed data
from SPI_W0 to SPI_W7 in the receive register, and the master can start another
write operation (0x02 command).
7.3.2. GPIO2 Master Receives The Slave Send Buffer Status
GPIO2 activities are slightly different from those of GPIO0. In the slave send interrupt, the
interrupt program will resume the SPI slave to communicable status in order to prepare for
the next communication. Then, GPIO0 will be written to be low level, and quit the interrupt
program. After that, if data is sent to the ESP8266 through WiFi and is required to be
forwarded by SPI, ESP8266 software will be written into SPI_W8 to SPI_W15, and GPIO2
will be set to be high level. Therefore:
•
Between the master enables an SPI read communication to GPIO2 generates a
falling edge, if users enable any other SPIs, communication errors will occur.
•
When GPIO2 is at low level, if the master enables any SPI to read (0x03 command), it
can only read data the same as the previous data, or incomplete data. But if data in
the slave receive register has been processed (refer to GPIO2 instructions), when
GPIO2 is at low level, master can be started to write (0x02 command).
•
If GPIO2 shifts from low level to high level, it means the slave has updated data from
SPI_W8 to SPI_W15 in the send register, and the master can start the another read
operation (0x03 command).
7.3.3. Master Communication Logic Implementation
Incomplete C code is used to briefly introduce the communication logic:
Espressif
! /!
59 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