Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 4.16 KB

notes_ESP8266.md

File metadata and controls

59 lines (39 loc) · 4.16 KB

ESP8266 [](@description Notes on ESP8266)

Factss

Other versions

Some comments from Timothy

  • Well, I have looked into that and figured out that the ESP8266 has 2 SPI interfaces (SPI and HSPI), the Flash memory uses the SPI interface, so we can attach the ADC to the HSPI interface and configure the SPI clock to between 1MHz to 80MHz depending on what we need. Therefore, it turns out it is possible to use an ADC with SPI interface, though it will involve some changes to the SPI registers but it can be done.
  • The HSPI is definitely better than a software SPI. However, without the DMA (the HSPI isn't connected to it) the CPU will be distracted every time when a word is received via the HSPI. This means that the 2M words/sec stream will interrupt the 80 MHz CPU of the module on every 40-th cycle. Depending on the wifi software of the module, this may be a quite long delay for the system. Fortunatelly, we can try to speed up the module to 160 MHz in case of insufficient performance.

Some comments from Igor

  • According to the PDF for ESP8266 it supports up to 40 MHz SPI clock (with default core clock) that is enough for our purpose. However, it doesn't have a DMA for the SPI master, so reading of the data from the ADC will be partially software based. This means that we can definitly pass the data through the SPI, but success of the further operations depends on the free CPU resources.

Fun piratebox