Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button ESP8266 Datasheet HTML 51Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 52Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 53Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 54Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 55Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 56Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 57Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 58Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 59Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. Next Button
Zoom Inzoom in Zoom Outzoom out
 55 / 117 page
background image
!
5. SPI Overlap & Display Application Guide
Please refer to
Chapter 4 EPS8266 SPI Communication User Guide for more
information about the application method of Host SPI Module. The configuration method of
Overlap mode is discussed in detail below.
5.2. Hardware Connection of SPI Overlap Mode
Pins including SD_CLK, SD_DATA0, and SD_DATA1 correspond to pins SCLK, MISO and
MOSI in two SPI modes, while pins SD_CMD, U0TXD, and GPIO0 correspond to chip
selection (CS) signals CS0, CS1, and CS2 respectively. Generally, SD_CMD connects to
the CS signal of an external Flash, while U0TXD and GPIO0 can be connect with the CS
signals of two slave devices. It can connect to the CS signal of two salve devices. Besides,
HSPI can read and write Flash data through enabled CS0, independent of SPI (e.g. Read
some pre-stored user data).
If more SPI devices are needed, device can be selected via other GPIOs, while CS0, CS1,
and CS2 are blocked by the configuration register.
5.3. API Description of SPI Overlap Mode
1. void hapi_overlap_init(void)
Function:
After SPI Overlap mode has been initialized, and SPI and HSPI interfaces are invoked,
interfaces including CLK, MOSI, and MISO can be shared with SPI and HSPI interfaces to
communicate with different devices. By default, CS2 is the CS signal of HSPI interface.
Please be careful when switching CS signals during communication.
Location:
\app\user\user_main.c in the DEMO.
2. SELECT_OLED(),SELECT_TFT()
Function:
Switch the CS pin of HSPI and OLED in DEMO connects to CS2. TFTLCD connects to
CS1. Before the start of HSPI communication, macro needs to be called. The macro
definition is as follows:
#define SELECT_OLED()
CLEAR_PERI_REG_MASK(SPI_PIN(HSPI),
SPI_CS2_DIS);\
SET_PERI_REG_MASK(SPI_PIN(HSPI), SPI_CS0_DIS |SPI_CS1_DIS)
#define SELECT_TFT()
CLEAR_PERI_REG_MASK(SPI_PIN(HSPI),
SPI_CS1_DIS);\
SET_PERI_REG_MASK(SPI_PIN(HSPI), SPI_CS0_DIS |SPI_CS2_DIS)
Therefore, users can change the macro definition. For example, the following macro can be
defined if HSPI is used to the operate Flash:
#define SELECT_FLASH()
CLEAR_PERI_REG_MASK(SPI_PIN(HSPI),
SPI_CS0_DIS);\
Espressif
! /!
47 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