SPI Slave

bjpirt
Posts: 15
Joined: Sun Nov 09, 2014 4:15 pm

SPI Slave

Postby bjpirt » Wed Dec 10, 2014 5:20 pm

Hello,
Thanks for making such a great chip! I'm interested in using it as an SPI slave and have a few questions:

- first, is this possible? I think it is but the docs don't go into much detail
- which pins does it use? Is it the same as the SPI master pins or does it clash with the flash communication pins?
- how do I enable it in the firmware?

Any information will be gratefully received!
Thanks,
Ben

Espressif_Kelly
Posts: 140
Joined: Mon Oct 27, 2014 10:40 am

Re: SPI Slave

Postby Espressif_Kelly » Mon Dec 15, 2014 7:47 pm

Dear Sir,

Thanks for your interest in our product.

1. ESP8266 can indeed work in SPI-Slave mode.
About the schematic and notes of ESP8266 working in SPI-Slave Mode, you can refer to "1-HDK-ESP8266_Module Application Design Guide(EN).pdf" for details.

2. If you only use SPI interface in the occasion of transmitting commands and the like which no high speed need, we advise you to use HSPI-Slave instead.

The clock rate that HSPI supports can be the same as standard SPI. However, HSPI may be limited by the rate of processing data for there is no link-list and DMA

The communication pins are shown as below.
SPI:
SD_CLK---SPICLK
SD_D0---SPIQ/MISO
SD_D1---SPID/MOSI
SD_D2---SPIHD
SD_D3---SPIWP
SD_CMD---SPICS0

HSPI:
MTMS---HSPICLK
MTDI---HSPIQ/MISO
MTCK---HSPID/MOSI
MTDO---HPSICS

3.The SPI-Mode SDK is still in developing. With regard to the SDK of HSPI-Slave, you can e-mail us to apply for it.

bjpirt
Posts: 15
Joined: Sun Nov 09, 2014 4:15 pm

Re: SPI Slave

Postby bjpirt » Mon Dec 15, 2014 8:58 pm

Kelly,
Thanks for your very helpful reply. So if i'm understanding correctly, I can use HSPI which will not clash with the flash memory on the SD port and which uses the same pins as SPI master (but in a different order).
I'll email about the SPI SDK now.
Thanks,
Ben

O2addict
Posts: 1
Joined: Tue Jan 20, 2015 5:21 am

Re: SPI Slave

Postby O2addict » Fri Jan 30, 2015 10:58 pm

I would like to use the SPI interface to enable this to connect to a CanBus, and trasnmit the PGNs from a server over Wifi. Who can I discuss this with, and see what we can do with the development of the firmware?

Who is online

Users browsing this forum: No registered users and 12 guests