| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 64 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 64 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
64 / 117 page ![]() ! 6. SPI Wi-Fi Passthrough 1-Interrupt Mode for(idx=0;idx<8;idx++) { WRITE_PERI_REG(SPI_W8(HSPI)+(idx<<2), READ_PERI_REG(SPI_W0(HSPI)+(idx<<2))); } / **************************************************************/ /***testing part, it can be revised. rd_empty is set to be 0, the slave can read**/ spi_sta.byte_value=READ_PERI_REG(SPI_STATUS(HSPI))&0xff; spi_sta.elm_value.rd_empty=0; WRITE_PERI_REG(SPI_STATUS(HSPI), (uint32)spi_sta.byte_value); /******************************************/ GPIO_OUTPUT_SET(0, 1); // interrupt line set to be 1, inform the master to read the slave status /****************master reads the interrupt handler***************/ }else if(regvalue&SPI_SLV_RD_BUF_DONE){ //*****complete the read operation, rd_empty set to be 1, communication count increases by 1****// spi_sta.byte_value=READ_PERI_REG(SPI_STATUS(HSPI))&0xff; spi_sta.elm_value.comm_cnt++; spi_sta.elm_value.rd_empty=1; WRITE_PERI_REG(SPI_STATUS(HSPI), (uint32)spi_sta.byte_value); GPIO_OUTPUT_SET(0, 1); // interrupt line set to be 1, inform the master to read the slave status } /****************master reads status interrupt handler***************/ if(regvalue&SPI_SLV_RD_STA_DONE){ GPIO_OUTPUT_SET(0,0); // interrupt line set to be 0, the master has read the status } Espressif ! /! 56 104 2017.05 |
|
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 |
| 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 |