Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button 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. ESP8266 Datasheet HTML 60Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 61Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. ESP8266 Datasheet HTML 62Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. 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. Next Button
Zoom Inzoom in Zoom Outzoom out
 61 / 117 page
background image
!
6. SPI Wi-Fi Passthrough 1-Interrupt Mode
1. void spi_slave_init(uint8 spi_no)
Function:
Initialise the SPI slave mode, set the IO interface to SPI mode, start the SPI transmission
interrupt, and register spi_slave_isr_handler. The communication format is set to be 8 bits
command + 8 bits address + 256 bits (32 Bytes) read/write data.
Parameters:
spi_no: number of the SPI module. The ESP8266 processor has two SPI modules (SPI
and HSPI) with the same functions.
Value to be selected: SPI or HSPI.
2. spi_slave_isr_sta(void *para)
Function and trigger condition:
It's the SPI interrupt handler function. When the master successfully reads data from or
writes data into the slave, the interrupt will be triggered. Users can revise the interrupt
service routine in order to attain the communication functions they need. The code is
shown as below:
struct spi_slave_status_element
{
uint8 wr_busy:1;
uint8 rd_empty :1;
uint8 comm_cnt :3;
uint8 res :3;
};
union spi_slave_status
{
struct spi_slave_status_element elm_value;
uint8 byte_value;
};
void spi_slave_isr_sta(void *para)
{
uint32 regvalue,calvalue;
uint32 recv_data,send_data;
union spi_slave_status spi_sta;
if(READ_PERI_REG(0x3ff00020)&BIT4){
//following 3 lines is to clear isr signal
Espressif
! /!
53 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