| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 48 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 48 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
48 / 117 page ![]() ! 4. SPI Communication User Guide PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U, 2);//configure io to spi mode PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, 2);//configure io to spi mode PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, 2);//configure io to spi mode PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 2);//configure io to spi mode os_printf("\r\n ============= spi init slave =============\r\n"); SPIInit(SpiNum_HSPI, &hSpiAttr); // Set spi interrupt information. SpiIntInfo spiInt; spiInt.src = (SpiIntSrc_TransDone | SpiIntSrc_WrStaDone |SpiIntSrc_RdStaDone |SpiIntSrc_WrBufDone |SpiIntSrc_RdBufDone); spiInt.isrFunc = spi_slave_isr_sta; SPIIntCfg(SpiNum_HSPI, &spiInt); // SHOWSPIREG(SpiNum_HSPI); SPISlaveRecvData(SpiNum_HSPI); uint32_t sndData[8] = { 0 }; sndData[0] = 0x35343332; sndData[1] = 0x39383736; sndData[2] = 0x3d3c3b3a; sndData[3] = 0x11103f3e; sndData[4] = 0x15141312; sndData[5] = 0x19181716; sndData[6] = 0x1d1c1b1a; sndData[7] = 0x21201f1e; // write 8 word (32 byte) data to SPI buffer W8~W15 SPISlaveSendData(SpiNum_HSPI, sndData, 8); // set the value of status register Espressif ! /! 40 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 |