ESP8266 - Module Application Design Guide
ESP8266 - Module Application Design Guide
ESP8266EX Application
Design Guide
By Li Lele!
Aug. 20, 2014
✓ ESP8266EX Schematic
✓ ESP8266EX Layout
✓ Test Board
✓ Appendix
Outline
Espressif Systems Confidential Aug. 20, 2014
✓ ESP8266EX Features:
!
✓ External components on ESP8266EX can be reduced to:!
• 7 resistors and capacitors!
• 1 crystal!
• 1 flash!
!
✓ All RF parts are integrated and internally self-calibrated when the chip powers on.!
!
✓ No special test equipment is needed during production.
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ Digital and IO Power Supply
✓ Pin 11, Pin 17 - VDDPST
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ Analog Power!
✓ Pin 1, Pin 3, Pin 4, Pin 29, Pin 30!
✓ Voltage: 3.0V∼3.6V!
Attention:
1. Recommend using GPIO to control the chip’s CHIP_EN
pin, so that the power can be kept always on. This will
help reduce the need of a switch.
2. If we connect CHIP_EN pin to VCC3V3, we need to
add a RC (R=5kΩ, C=1nF) circuit.
Note that CHIP_EN cannot be left floating.
3. Digital power VDDPST and Analog Power VDDA can
be connected together. Add a 10uF decoupling capacitor
to ground near chip's power supply pin.
4. Please do not add Ferrite beads in the power trace
connected to ESP8266EX.
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ RF Antenna Port!
✓ The RF port's impedance is 50 Ω. The antenna should be matched to 50 Ω for
the best performance. !
50 Ω
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ SDIO
✓ Add 200 Ω resistors to reduce the noise. If ESP8266EX is far from the
please add matching resistor on all SDIO traces. No need for pull-up
resistor in SDIO.!
ESP8266EX chip.
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ CRYSTAL
✓ The maximum allowable frequency offset of crystal is ±10PPM.!
the range of 8.2pF to 12pF. The specific value should be adjusted based on
Attention:
1、Frequency accuracy of the crystal is critical.
If the frequency deviation is larger than the
specified limits, it results in poor iPerf test
performance, and degraded sensitivity (like
missing some APs during channal scan).
!
2、Do not use the probe to measure the crystal
pin, as it causes frequency deviation.
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
✓ GENERAL GUIDE LINES
!
✓ 4 Layers are recommend for PCB.!
✓ If Layer 1 is Signal, then Layer 2 should be GND.!
✓ Decoupling capacitor C5 should be placed as close to the chip power supply Pin as possible.!
✓ Width of the trace between Power supply and pin3, 4 should be at least 15mil.!
✓ No high speed signal traces or power traces below or near the crystal. Traces for 26MHz
crystal must be shield well and crystal should be placed as close to the XTAL pins as possible
(short lines).
✓ Place vias around the Wi-Fi module circuit to shield it from the other circuit's noise. !
✓ It is advisable to keep the Wi-Fi chip and antenna away from DRAM, touch panel
chips, and LED drivers to minimize digital noise, and optimize the WiFi sensitivity.!
flash1:SDIO
2 flash2:HSPI
SD_D2
Power 5V CHIP_EN SWICH
SD_D3 1
ANT
SD_CMD
SD_CLK Reset
SD_D0
SD_D1
Demo board
Espressif Systems Confidential Sunday, August 31, 2014
MTDO GPIO0 GPIO2
1 X X SDIO / SPI
0 0 1 Uart Download
0 1 1 Flash Boot
GPIO_control
Espressif Systems Confidential Aug. 20, 2014
附1
✓ ESP8266EX Standalone Mode
✓ Schematic
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
APP. 2
✓ ESP8266EX Standalone Mode
Desired level Before first software Necessary ANT Extendable Extendable
Pin Name during power on download Function Switch function GPIO/I2C
Output high Deep- GPIO16 (optional
8 XPD_DCDC Sleep Yes [0]
interal pull-down)
Input, Internal pull-up Wakeup GPIO14 (optional
9 MTMS HSPICLK
resistor interal pull-up)
Input, Internal pull-up GPIO12 (optional
10 MTDI HSPIQ
resistor interal pull-up)
Input, Internal pull-up GPIO13 (optional
12 MTCK HSPID
resistor interal pull-up)
Low Input, Internal pull-up GPIO15 (optional
13 MTDO HSPICS
resistor interal pull-up)
High Output, Many toggles GPIO2 (optional interal
14 GPIO2 U1TXD
pull-up)
High(uart d/l: Output, Many toggles GPIO0 (optional interal
15 GPIO0 Yes [0] SPICS2
pull-up)
Low)
Input, Internal pull-up GPIO4 (optional interal
16 GPIO4
resistor pull-up)
Input, Hi-Z GPIO9 (optional interal
18 SD_DATA_2 SPIHD Yes HSPIHD
pull-up)
Input, Hi-Z GPIO10 (optional
19 SD_DATA_3 SPIWP Yes[0] HSPIWP
interal pull-up)
20 SD_CMD Input, Hi-Z SPICS0 No
21 SD_CLK Input, Hi-Z SPICLK No
22 SD_DATA_0 Input, Hi-Z SPIQ No
23 SD_DATA_1 Input, Hi-Z SPID Yes No
Input, Internal pull-up GPIO5 (optional interal
24 GPIO5
resistor pull-up)
Input, Internal pull-up GPIO3 (optional interal
25 U0RXD U0RXD Yes
resistor pull-up)
High Output, Many toggles GPIO1 (optional interal
26 U0TXD U0TXD Yes SPICS1
pull-up)
Reference schematic
Espressif Systems Confidential Aug. 20, 2014
附4
✓ ESP8266EX SPI-Slave Mode
Desired level Before first software ANT
Pin Name during power on download Necessary Function extendable GPIO
Switch
8 XPD_DCDC Output high Yes [0] GPIO16 (optional interal pull-
9 MTMS Input, Internal pull-up HSPICLK GPIO14 (optional interal pull-up)
resistor pull-up
Input, Internal
10 MTDI HSPIQ GPIO12 (optional interal pull-up)
resistor
Input, Internal pull-up
12 MTCK HSPID GPIO13 (optional interal pull-up)
resistor
High (uart d/l: Input, Internal pull-up
13 MTDO resistor HSPICS GPIO15 (optional interal pull-up)
Low)
Output, Many toggles Add testpoint:
14 GPIO2 GPIO2 (optional interal pull-up)
U1TXD
(uart d/l: Output, Many toggles
15 GPIO0 Yes [0] GPIO0 (optional interal pull-up)
Low)
16 GPIO4 Input, Internal pull-up GPIO4(optional interal pull-up)
18 SD_DATA_2 resistor
Input, Hi-Z HSPIHD Yes GPIO9 (optional interal pull-up)
Input, Hi-Z SPI_SLAVE_CS(or
19 SD_DATA_3 pull down) Yes [0] GPIO10 (optional interal pull-up)
Important 1:
Green: Available, but have to consider the red mark.
Gray: Rarely used in extending GPIO port. SD_DATA_2 and SD_DATA_3 can be used as GPIO ports
only when using dual spi flash. SD_DATA_3 should be kept low during downloading firmware.
Blank: Never used in extending GPIO port.
Important 2:
Work mode: MTDO and U0TXD should be kept high when powering on the chip. If it is not used, it could
be left floating ( it has internal pull-up). MTDO should be kept low when powering on the chip.
Flash burning can use SPI Slave interface, downloading from the host, this is the same as the normal mode.
Uart download mode: GPIO2 and U0TXD should be kept high when powering on the chip. If it is not
used, it could be left floating ( it has internal pull-up). MTDO and GPIO0 should be kept low when
powering on the chip.
Important 3:
Before downloading the software at first time: GPIO0 is output and flipped(output clk signal with the same
frequency as Crystal clk ). GPIO2 and U0TXD are both output and have many toggles(low speed uart
signal).XPD_DCDC output high and the pins of other green and gray highlights are in inputting state (except
SD_DATA_2 and SD_DATA_3, which has internal enable pull-up resistor ).
After downloading the software at the first time: pins of all green and gray highlights can be set as GPIO,
input, input pull-up/pull-down, output high or output low.