| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 35 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 35 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
35 / 117 page ![]() ! 4. SPI Communication User Guide As SPI module triggers transmission interruption frequently, 5 interruption source enabled should be closed. The corresponding codes are as follows: regvalue=READ_PERI_REG(SPI_FLASH_SLAVE(SPI)); regvalue&=~(0x3ff); WRITE_PERI_REG(SPI_FLASH_SLAVE(SPI),regvalue); If HSPI is triggered, software that resets the 5 interruption source is needed, in order to avoid the repeated interruption function. The corresponding codes are as follows: regvalue=READ_PERI_REG(SPI_FLASH_SLAVE(HSPI)); regvalue&=~(0x1f); WRITE_PERI_REG(SPI_FLASH_SLAVE(HSPI),regvalue); Data receiving and transmitting data share one register, SPI_FLASH_C0. The corresponding codes of readout register are as follows: recv_data=(uint8)READ_PERI_REG(SPI_FLASH_C0(HSPI)); recv_data is a global variable. Processing program defined by users can be inserted to the tail of the sentence. 4.5. SPI Interface Description 4.5.1. Data Structure 4.5.1.1. Enumerated Values SpiMode SpiSubMode ⚠ Notice: Interruption program is unfit for time-consuming processing code because long-time interruption program will cause watchdog timer unable to realize normal reset and will also lead to unexpected restart of processor. ⚠ Notice: The contents of this chapter are applicable only for Non-OS SDK V1.5.3 and above. Value Description SpiMode_Master Master mode SpiMode_Slave Slave mode Value Description SpiSubMode_0 SPI_CPOL 0 SPI_CPHA 0 SpiSubMode_1 SPI_CPOL 0 SPI_CPHA 1 Espressif ! /! 27 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 |