ESP8266

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(SoC 内部存储)
(Develop Tools)
第98行: 第98行:
 
<br><br>
 
<br><br>
  
== Develop Tools ==
+
== 开发工具 ==
  
 
=== Arduino ===
 
=== Arduino ===
第115行: 第115行:
  
 
=== SDK ===
 
=== SDK ===
 +
 +
 +
<br><br>
 +
 +
== 开发手册 ==
  
  

2015年10月12日 (一) 15:08的版本

Esp8266ex-chip.jpg

目录

1 概述

ESP8266 是一个带完整 WiFi 功能、 同时带一个 32bit MCU 的 SoC,可以取代原 Arduino 核心板 + WiFi 扩展板完成的大部分应用

最重要的,他的价格,只有 RMB 10 块左右

带 1MB Flash 的模块价格,也只在 RMB 13 块左右,批量的价格更便宜

下图是一个典型的、可独立运行的模块,外部元器件 10 个以内(实际 7 个外围元器件就行):

ESP-01.jpg


ESP8266 的芯片详细特性,参考此页:ESP8266 特性


1.1 总体结构

ESP8266EX 集成:天线开关,RF balun,功率放大器,低噪放大器,过滤器,电源管理模块,32 位 MCU

仅需 7 个外围器件,就是一个完整的带 32bit MCU、完整 WiFi 功能的 SoC


ESP8266 结构框图:

Esp8266ex-block.jpg


内部 CPU (MCU) 使用 Tensilica’s L106 钻石系列32位内核处理器,带片上 SRAM



1.2 MCU 结构

Tensilica Xtensa LX3 32-bit RISC SOC clocked at 80 MHz,It can also reach a maximum value of 160MHz
Only 20% of MIPS has been occupied by the WiFi stack, the rest can all be used for user application programming and development


MCU Core 的框图:

Tensilica-xtensalx3.jpg


  • 32-bit ALU
  • 16, 32 or 64 GPR
  • six special purpose registers
  • 80 base instructions

The Xtensa ISA employs 24-bit instructions with 16-bit narrow encodings for the most common instructions



1.3 SoC 内部存储

ESP8266EX WiFi SoC is embedded with memory controller, including SRAM and ROM. MCU can visit the memory units through iBus, dBus, and AHB interfaces.

According to our current version of SDK provided, SRAM space that is available to users is assigned as below:

  • RAM size is around 50 KB, that is to say, when ESP8266EX is working under the station mode (WiFi) and is connected to the router, programmable space accessible to user in heap and data section is around 50 KB
  • There is no programmable ROM in the SoC, therefore, user program must be stored in an external SPI flash


用户外部程序都存储在外部 SPI flash 上,启动时,SoC 自动加载


还有,除了外部 BOM 少,硬件易实现易测试外,对开发者最友好的,牛逼的,是其天生带串口刷机功能。。。片子出厂时就有串口刷机功能。。。



1.4 管脚定义

Esp8266ex-layout.jpg


  • PIN8 --- GPIO16 / Deep-Sleep Wakeup
  • PIN9 --- GPIO14 / HSPICLK
  • PIN10 --- GPIO12 / HSPIQ
  • PIN12 --- GPIO13 / HSPID
  • PIN13 --- GPIO15 / HSPICS
  • PIN14 --- GPIO2 / UART TX during flash programming
  • PIN15 --- GPIO0 / SPICS2
  • PIN16 --- GPIO4
  • PIN24 --- GPIO5
  • PIN25 --- GPIO3 / UART RX during flash programming / URXD
  • PIN26 --- GPIO1 / SPICS1 / UTXD



2 Quick Start



3 开发工具

3.1 Arduino


安装过程会根据你的操作系统去下载对应的 esptool 和 xtensa-lx106-elf-gcc,下载的压缩包位于 C:\PATH\TO\YOUR\Application Data\Arduino15\staging\packages

有可能会下载失败,可自行下载后,放入这个目录



3.2 SDK



4 开发手册



5 典型应用方案

  • WiFi 智能插座
  • WiFi 智能灯
  • WiFi 智能门磁




6 资源





















个人工具
名字空间

变换
操作
导航
工具箱