ESP8266芯片规格书
esp8266 技术参考 说明书
3.2.1.
平台介绍 ......................................................................................................................13
第9章
I2C 接口口说明
描述 I2C 的功能、master 接口口和使用用示例例。
第 10 章
I2S 接口口说明
描述 I2S 的功能、模块配置和接口口函数说明。
第 11 章
UART 接口口说明
描述 UART 的功能、硬件资源、参数配置、配置中断、中断处理理
函数示例例流程和屏蔽上电打印。
第 12 章
PWM 接口口说明
附录
附录
GPIO 寄存器器、SPI 寄存器器、UART 寄存器器、定时器器寄存器器。
描述 SDIO 的功能、DEMO 实现方方案、ESP8266 端及 STM32 端
软件说明。
描述 SPI 的功能、SPI 主/从机协议格式和 API 函数说明。
描述 SPI 的功能、从机协议格式、从机状态定义与中断线行行行为和
应用用场景 1 参数配置 .....................................................................................................8
2.3.2.
应用用场景 2 参数配置 .....................................................................................................9
1.3. 串串行行行外设接口口(SPI/HSPI) .....................................................................................................1
ESP8266 安信可ESP-12F WIFI模块规格书
规格书版本1.02015年8月23日免责申明和版权公告本文中的信息,包括供参考的URL地址,如有变更,恕不另行通知。
文档“按现状”提供,不负任何担保责任,包括对适销性、适用于特定用途或非侵权性的任何担保,和任何提案、规格或样品在他处提到的任何担保。
本文档不负任何责任,包括使用本文档内信息产生的侵犯任何专利权行为的责任。
本文档在此未以禁止反言或其他方式授予任何知识产权使⽤许可,不管是明示许可还是暗示许可。
Wi-Fi 联盟成员标志归Wi-Fi 联盟所有。
文中提到的所有商标名称、商标和注册商标均属其各自所有者的财产,特此声明。
注意由于产品版本升级或其他原因,本手册内容有可能变更。
深圳市安信可科技有限公司保留在没有任何通知或者提示的情况下对本手册的内容进行修改的权利。
本手册仅作为使用指导,深圳市安信可科技有限公司尽全力在本手册中提供准确的信息,但是深圳市安信可科技有限公司并不确保手册内容完全没有错误,本手册中的所有陈述、信息和建议也不构成任何明示或暗示的担保。
目录1. 产品概述 (2)1.1. 特点 (3)1.2. 主要参数 (4)2. 接口定义 (5)3. 外型与尺寸 (7)4. 功能描述 (9)4.1. MCU (9)4.2. 存储描述 (9)4.3. 晶振 (9)4.4. 接口说明 (10)4.5. 最大额定值 (11)4.6. 建议工作环境 (11)4.7. 数字端口特征 (11)5. RF 参数 (12)6. 功耗 (13)7. 倾斜升温 (14)8. 原理图 (15)9. 产品试用 (16)1.产品概述ESP-12F WiFi 模块是由安信可科技开发的,该模块核心处理器ESP8266 在较小尺寸封装中集成了业界领先的Tensilica L106 超低功耗32 位微型MCU,带有16 位精简模式,主频支持80 MHz 和160 MHz,支持RTOS,集成Wi-Fi MAC/ BB/RF/PA/LNA,板载天线。
低功耗WIFI芯片ESP8266规格书
桹ⷧ㘶Ⓟ⣷㘴㟅Ⓙ䤓庆㻑㈏㈏㢾浧抮庆㻑᧨力 APB 㲰⧦㘴㟅Ⓙ䤓㈏㈏㢾幎桽⹓ⷧ⣷䤓 庆㻑ᇭ APB 㲰⧦⏔㇢屲䪐⣷᧨⇕♹♾ⅴ幎桽 ESP8266 㲰⧦␔♾冥䲚䤓⹓ⷧ⣷ᇭ䟀ℝ♠抐 ⦿⧏ₜ⚛᧨APB 庆㻑♾厌Ⓙ才㡯兎䟄㘴㟅⣷ᇬSI/SPIᇬ㧉 SDIOᇬGPIOᇬUARTᇬ ⸭㢅㢅朮(RTC)ᇬMAC 㒥㟿ⷦ⪉サᇭ
Ҁ䪛ؑ、ᢰ
2013 ᒤ 12 ᴸ 09 ᰕ
ESP8266 802.11bgn 㤉厌ℶ❐
1
グϻ
⃟曺㤉厌℡勣♿ಧಧESCP 㕴㦘浧㊶厌㡯兎 SOC᧨全䲊┷♿幍帰サ㧴䰞檂᧨⸒ ⅴ㦏⇝㒟㦻㙟∪㦏⮶⸭䞷㊶᧨ WiFi ┮厌⏴␅Ⅵ侊兮㙟∪㡯棟♾厌ᇭ
ሴ仁 balun
ᔰޣ
ሴ仁 ᧕᭦ ሴ仁 ਁሴ
VCO
12 | P a g e
Ҁ䪛ؑ、ᢰ
2013 ᒤ 12 ᴸ 09 ᰕ
ESP8266 802.11bgn 㤉厌ℶ❐
8
8.1
CPUȡႈט়ᣕओ
CPU
扨㷍唾䓖⏴ℕ₹怔⇝┮䘖 32 ⇜㈽⨚ CPU᧨サ㦘 16 ⇜位丏㲰㆞ᇭ♾ⅴ抩扖ⅴₚ㘴 ♲扭㘴年 CPU᧶
䘎᧕ᆈۘ᧗ࡦಘǃҏਟԕ⭘ᶕ䇯䰞ཆ᧕䰚ᆈⲴ㕆⸱ RAM/ROM ᧕ਓ(iBus) ਼ṧ䘎᧕ᆈۘ᧗ࡦಘⲴᮠᦞ RAM ᧕ਓ(dBus) 䇯䰞ᇴᆈಘⲴ AHB ᧕ਓ JTAG 䈳䈅᧕ਓ
↯抐 802.11n, MCS7, POUT =+14dBm 㘴㟅 802.11b, ▔栎 1024 ⷦ唑, -80dBm 㘴㟅 802.11g, ▔栎 1024 ⷦ唑, -70dBm 㘴㟅 802.11n, ▔栎 1024 ⷦ唑, -65dBm 侊兮㈔㧉㲰㆞ 䂀ㄵ䧰䦯 唑厌㲰㆞ DTIM 1 唑厌㲰㆞ DTIM 3 ␂㧉
ESP8266-07 WiFi模块用户手册V1.0
目
录
术语和缩写 ................................................................................................................................................ 4 1. 产品简介 .................................................................................................................................................... 5 1.1. 概述 .................................................................................................................................................... 5 1.1.1 产品特性 .................................................................................................................................... 5 1.1.2 模块封装 .................................................................................................................................... 6 1.1.3 模块基本参数 ............................................................................................................................ 7 1.2. 硬件介绍 ............................................................................................................................................ 8 1.3. 功耗 .................................................................................................................................................. 11 1.4. 射频指标 .......................................................................................................................................... 12 1.5. 尺寸 .................................................................................................................................................. 13 1.6. WiFi 天线 ........................................................................................................................................ 14 1.7. 推荐炉温曲线 .................................................................................................................................. 14 2. 功能描述 .................................................................................................................................................. 15 2.1. 主要功能 .......................................................................................................................................... 15 2.2. 工作模式 .......................................................................................................................................... 15 2.3. 应用领域 .......................................................................................................................................... 15 2.4. AiCloud ........................................................................................................................................... 15 3. 全功能测试版介绍 .................................................................................................................................. 16 3.1. 测试步骤 .......................................................................................................................................... 17
无线组网技术-ESP8266通信模块介绍
深度睡眠唤醒;GPIO16 GPIO14;HSPI_CLK GPIO12;HSPI_MISO
数字/IO 电源(1.8 V ~ 3.3 V) GPIO13;HSPI_MOSI;UART0_CTS
GPIO15;HSPI_CS;UART0_RTS 可口 作烧写 Flash 时 UART1_TX;GPIO2
03 STA+AP 模式:两种模式的共存模式,即可以通过互联网控
制又可实现无缝切换,方便操作。
四、ESP8266模组主要用途
串口CH340 转Wi-Fi; 工业透传DTU; Wi-Fi 远程监控/控制; 玩具领域; 三色LED 控制; 消防、安防智能一体化管理; 智能卡终端,无线POS 机,Wi-Fi 摄像头,手持设备等。
五 、 ESP8266 模 组 管 脚
五 、 ESP8266 模 组 管
脚 管脚 1
名称 VDDA
类型 P
2
LNA
I/O
3 VDD3P3
P
4 VDD3P3
P
5 VDD_RTC P
6
TOUT
I
7 CHIP_EN
I
8 XPD_DCDC I/O
9
MTMS
I/O
10
MTDI
I/O
11 VDDPST
P
12
点 • 802.11 b/g/n
• 内置Tensilica L106 超低功耗 32 位微型 MCU,主频支持 80 MHz 和160 MHz,支持 RTOS • 内置10 bit高精度ADC • 内置TCP/IP协议栈 • 内置TR 开关、balun、LNA、功率放大器和匹配网络 • 内置PLL、稳压器和电源管理组件,802.11b 模式下+18 dBm的输出功率 • A-MPDU 、 A-MSDU 的聚合和 0.4 s的保护间隔 • Wi-Fi @ 2.4 GHz,支持 WPA/WPA2 安全模式 • 支持AT本地升级及云端OTA升级 • 支持 STA/AP/STA+AP 工作模式 • 支持 Smart Config 功能(包括 Android 和 iOS 设备) • HSPI 、UART、I2C、I2S、IR Remote Control、PWM、GPIO • 深度睡眠保持电流为 20 uA,关断电流小于 5 uA • 2 ms 之内唤醒、连接并传递数据包 • 待机状态消耗功率小于1.0 mW (DTIM3)
ESP8266_WiFi Specifications _Chinese
免责申明和版权公告本文中的信息,包括供参考的URL地址,如有变更,恕不另行通知。
文档“按现状”提供,不负任何担保责任,包括对适销性、适用于特定用途或非侵权性的任何担保,和任何提案、规格或样品在他处提到的任何担保。
本文档不负任何责任,包括使用本文档内信息产生的侵犯任何专利权行为的责任。
本文档在此未以禁止反言或其他方式授予任何知识产权使用许可,不管是明示许可还是暗示许可。
Wi-Fi联盟成员标志归Wi-Fi联盟所有。
文中提到的所有商标名称、商标和注册商标均属其各自所有者的财产,特此声明。
目录1简介5 2技术概述6 3特征7 4应用图表8 5超低能耗技术95.1最大集成度9 6ESP8266 的应用主体10 7规格117.1功耗117.2射频规格12 8CPU、存储器和接口138.1CPU 138.2存储控制器138.3AHB和AHB模块138.4接口148.4.1 主SI/SPI控制(可选)148.4.2 通用 IO 158.4.3 数字IO 管脚15 9固件和软件工具开发包179.1特征17 10电源管理19 11时钟管理2011.1高频时钟2011.2外部参考要求2112无线电接收器2212.1频道频率2212.2 2.4GH Z接收器2212.3 2.4GH Z发射器2312.4时钟生成器23附 QFN32封装尺寸图241简介乐鑫智能互联平台——ESCP拥有高性能无线SOC,给移动平台设计师带来福音,它以最低成本提供最大实用性,为WiFi功能嵌入其他系统提供无限可能。
图1:ESP8266 时钟结构图2技术概述ESP8266是一个完整且自成体系的Wi-Fi网络解决方案,能够搭载软件应用,或通过另一个应用处理器卸载所有Wi-Fi网络功能。
ESP8266在搭载应用并作为设备中唯一的应用处理器时,能够直接从外接闪存中启动。
内置的高速缓冲存储器有利于提高系统性能,并减少内存需求。
另外一种情况是,无线上网接入承担Wi-Fi适配器的任务时,可以将其添加到任何基于微控制器的设计中,连接简单易行,只需通过SPI/SDIO接口或中央处理器AHB 桥接口即可。
8266无线智能iot模块
序号 No
更改日期
Date of modification
更改记录 Record of Modification
主要更改内容
Main content of modification
更改原因
Reason of modification
更改通知编号
Serial number of modification
Contents
IEEE802.11g
BPSK, QPSK, 16QAM, 64QAM and OFDM
CH1 to CH13 @ 11g
6, 9, 12, 18, 24, 36, 48, 54Mbps
Min.
Typ.
Max.
Unit
Remark
12
13.5
15
dBm
-
-
-20
dBr
-
-
-28
dBr
型号预览 Model Overview:
型号
安装方式
支持标准
BL-ME266RPN-C6
SMD
IEEE 802.11 b/g/n
BL-ME266RPN-C8
SMD
IEEE 802.11 b/g/n
BL-ME266RPN-C9
SMD
IEEE 802.11 b/g/n
速率
65Mbps 65Mbps 65Mbps
11g: BPSK, QPSK, 16QAM, 64QAM and OFDM 11n: BPSK, QPSK, 16QAM, 64QAM and OFDM
Data rates
Form factor Host Interface PCB Stack Dimension Antenna Operation Temperature Storage Temperature Operation Voltage ESD Protection
ESP8266系列芯片技术文档变更说明书
文件编号Document No.ESP-00-2-007-03文件名称Document Name产品/工艺变更通知Product/Process Change Notice(PCN)文件版本Document Version1.1保存期限Retention Period3年3 yearsESP8266 系列芯片技术文档变更ESP8266 Series Chip Product Technical Document ChangePCN编号PCN No.PCN-02-20190716提出日期Issue Date of PCN2019/7/16产品名称Product Name ESP8266EXESP8285变更日期Proposed Date of Change2019/8/1封装类型/尺寸Package Type/Size QFN 5X5首次出货日期Proposed Date of FirstShipmentNA客户批准/Customer Consent: 需要批准/Approval Required通知,无需批准/Notification, Approval Not Required变更等级/Classification of Change: 主要变更/Major 轻微变更/Minor变更原因/Reason for Change:ESP8266 系列产品技术文档中有关产品在Deep-sleep 模式下的GPIO hold 功能描述有误,故进行相关内容的修改。
The description of GPIO hold function of ESP8266 series of products working in the Deep-sleep mode in the technical documents of ESP8266 series of products is incorrect, so the relevant content needs to be modified.变更描述/Description of Change:删除ESP8266 系列产品的技术文档中有关产品在Deep-sleep 模式下的GPIO hold 功能的描述。
乐鑫信息科技 ESP8266 Phy Init Bin 重要参数配置说明说明书
ESP8266 Phy Init Bin重要参数配置说明版本 1.0乐鑫信息科技版权所有 © 2018关于本⼿手册本⽂文档主要对ESP8266 phy init bin 的重要参数配置情况进⾏行行了了说明。
发布说明⽇日期版本发布说明2018.12V1.0⾸首次发布。
⽂文档变更更通知⽤用户可通过乐鑫官⽹网订阅⻚页⾯面https:///zh-hans/subscribe订阅技术⽂文档变更更的电⼦子邮件通知。
证书下载⽤用户可通过乐鑫官⽹网证书下载⻚页⾯面https:///zh-hans/certificates下载产品证书。
⽬目录..............................................................................................1.ESP8266 Phy Init Bin 结构说明 1.................................................................................................2.ESP8266 Phy Init Bin 校验位 2..............................................................................................3.ESP8266 Phy Init Bin 版本信息 3.................................................................................................................................4.晶振选择 4................................................................................................................5.6 档 TX Power 设置 5.....................................................................................................6.不不同速率配置的 TX Power 6................................................................................................................7.TX Power 限制设置7......................................................................................................7.1.TX Power 可配的限制值范围 77.2.TX Power 限制参数说明 7............................................................................................................................................................................................................................................8.RF ⾃自校准91. ESP8266 Phy Init Bin 结构说明 1.ESP8266 Phy Init Bin结构说明ESP8266 phy init bin 由 128-byte 的phy init data 构成,如表1-1所示:表 1-1. ESP8266 Phy Init Bin 结构说明名称⼤大⼩小phy init data128 bytes2. ESP8266 Phy Init Bin 校验位 2.ESP8266 Phy Init Bin 校验位ESP8266phy init bin 校验位存于phy init data的 byte 0 中,参数为Init_bin_magic,默认值为 0x5。
ESP8266芯片规格书
2014年12月月3月日
HT20, MCS7 (65Mbps, 72.2Mbps) 邻频抑制
OFDM, 6Mbps OFDM, 54Mbps
HT20, MCS0 HT20, MCS7
-71
dBm
37
dB
21
dB
37
dB
20
dB
8. CPU、存储器和接月口 8.1. CPU 这款芯月片嵌月入了月一个超低功率32位微型CPU,带有16位精简模式。可以通过以下接月口连接该CPU: ▪ 连接存储控制器、也可以月用来访问外接闪存的编码RAM/ROM接月口(iBus) ▪ 同样连接存储控制器的数据RAM接月口(dBus) ▪ 访问寄存器的AHB接月口 ▪ JTAG调试接月口
月月目录
乐鑫信息科技
1 1 1 2 2 3 3 4 4 4 5 5 5 5 5 5 6 7 7 7 8 9 10 10 10 10 11 11 11 11 12
2014年12月月3月日
1. 简介 乐鑫智能互联平台——ESCP拥有月高性能月无线SOC,给移动平台设计师带来福月音,它以最低成本提供 最月大实月用性,为WiFi功能嵌月入其他系统提供月无限可能。
另外月一种情况是,月无线上月月网接月入承担Wi-Fi适配器的任务时,可以将其添加到任何基于微控制器的设 计中,连接简单易月行,只需通过SPI/SDIO接月口或中央处理器AHB桥接月口即可。
ESP8266强月大的月片上处理和存储能月力,使其可通过 GPIO 月口集成传感器及其他应月用的特定设备,实 现了最低前期的开发和运月行中最少地占月用系统资源。ESP8266月高度月片内集成,包括天线开关balun、 电源管理转换器,因此仅需极少的外部电路,且包括前端模块在内的整个解决月方案在设计时将所占 PCB空间降到最低。
ESP8266-08-WiFi模块用户手册V1.0知识讲解
E S P8266-08-W iF i模块用户手册V1.0ESP8266 WiFi模块用户手册V1.0目录术语和缩写 (4)1.产品简介 (5)1.1.概述 (5)1.1.1产品特性 (5)1.1.2模块封装 (6)1.1.3模块基本参数 (6)1.2.硬件介绍 (7)1.3.功耗 (10)1.4.射频指标 (11)1.5.尺寸 (13)1.6.WiFi 天线 (14)1.7.推荐炉温曲线 (14)2.功能描述 (15)2.1.主要功能 (15)2.2.工作模式 (15)2.3.应用领域 (16)2.4.AiCloud (16)3.全功能测试版介绍 (17)3.1.测试步骤 (18)3.2.基础AT指令 (22)3.2.1 测试AT (22)3.3.WiFi功能AT指令 (22)3.3.1 选择WiFi应用模式:AT+CWMODE (22)3.3.2列出当前可用接入点:AT+CWLAP (23)3.3.3 加入接入点:AT+CWJAP (23)3.3.4 退出接入点:AT+CWQAP (23)3.3.5设置AP模式下的参数:AT+CWSAP (24)3.4.TCPIP AT指令 (25)3.4.1建立TCP/UDP连接:AT+CIPSTART (25)3.4.2获得TCP/UDP连接状态:AT+CIPSTATUS (25)3.4.3启动多连接:AT+CIPMUX (26)3.4.4发送数据:AT+CIPSEND (27)3.4.5关闭TCP/UDP连接:AT+CIPCLOSE (27)3.4.6获取本地IP地址:AT+CIFSR (28)3.4.7配置为服务器: (29)3.4.8选择TCPIP应用模式:AT+CIPMODE (32)3.4.9设置服务器主动断开的超时时间:AT+CIPSTO (32)3.4.10设置波特率:AT+CIOBAUD (32)4.产品试用 (33)表格目录表格 1 术语和缩写4表格 2 模块技术规格7表格 3 Pin脚定义10表格 4 功耗数据11表格 5 射频指标12图目录图 2 模块管脚排列图 (8)图 3 尺寸图 (13)图 4 WiFi射频参考电路图 (14)图 5 推荐回流曲线图 (15)图 6 全功能测试板板正面视图 (17)术语和缩写表格 1 术语和缩写1.产品简介1.1.概述ESP8266是一款超低功耗的UART-WiFi 透传模块,拥有业内极富竞争力的封装尺寸和超低能耗技术,专为移动设备和物联网应用设计,可将用户的物理设备连接到Wi-Fi 无线网络上,进行互联网或局域网通信,实现联网功能。
安信可 ATK-ESP8266 WIFI 用户手册
高性能UART-WIFI 模块ATK-ESP8266 WIFI 用户手册User Manual目录1.特性参数 (1)2.使用说明 (2)2.1模块引脚说明 (2)2.1安信可ESP8266-12F WIFI模块 (3)2.2模块使用说明 (4)2.2.1 功能说明 (4)2.2.1.1 透传模式 (4)2.2.2 使用前准备 (4)2.2.3 硬件连接 (4)2.2.4 指令结构 (5)2.2.3 基础AT指令 (5)2.2.3.1 AT (5)2.2.3.2 AT+RST (6)2.2.3.3 AT+GMR (6)2.2.3.4 ATE (6)2.2.3.5 AT+RESTORE (6)2.2.3.6 AT+UART (6)2.2.4 WIFI功能AT指令 (7)2.2.4.1 AT+CWMODE (8)2.2.4.2 AT+CWJAP (8)2.2.4.3 AT+CWLAP (9)2.2.4.4 AT+CWQAP (9)2.2.4.5 AT+CWSAP (9)2.2.4.6 AT+CWLIF (10)2.2.4.7 AT+CWDHCP (10)2.2.4.8 AT+CW AUTOCONN (11)2.2.4.9 AT+CIPSTAMAC (11)2.2.4.10 A T+CIPAPMAC (11)2.2.4.11 A T+CIPSTA (12)2.2.4.12 A T+CIPAP (12)2.2.4.13 A T+SA VETRANSLINK (12)2.2.5 TCP/IP工具箱AT指令 (13)2.2.5.1 AT+CIPSTA TUS (13)2.2.5.2 AT+CIPSTART (14)2.2.5.3 AT+CIPSEND (15)2.2.5.4 AT+CIPCLOSE (15)2.2.5.5 AT+CIFSR (16)2.2.5.6 AT+CIPMUX (16)2.2.5.7 AT+CIPSERVER (16)2.2.5.8 AT+CIPMODE (17)2.2.5.9 AT+CIPSTO (17)2.2.5.10 A T+CIUPDA TE (17)2.2.5.11 A T+PING (18)2.2.6 基本AT指令测试 (18)2.2.6.1 AT+RST 重启模块,如图2.2.6.1.1 (19)2.2.6.2 AT+GMR 查看版本信息,如图2.2.6.2.1 (19)2.2.7 TCP Client透传模式 (19)2.2.8 多连接server (23)3 结构尺寸 (26)4 其他 (26)1.特性参数ATK-ESP8266是ALIENTEK推出的一款高性能的UART-WiFi(串口-无线)模块,ATK-ESP8266板载ai-thinker公司的ESP8266模块,该模块通过FCC,CE认证,可直接用于产品出口欧美地区。
WIFI技术及ESP8266芯片简介
WIFI技术及ESP8266芯片简介Falcon Image Technologies, Co., Ltd.Rev. 1.0March 31, 2020Version History1.WIFI技术简介1.1 wifi发展及历史为了实现工业、家庭和楼宇的自动化控制,将人类从有线的环境中解放出来,以取代线缆为目标,用于无线个人区域网(WPAN,Wireless Personal Area Network)范围的短距离无线通信技术标准得到了迅速的发展,典型技术标准有蓝牙(Bluetooth)、ZigBee、无线USB(WirelessUSB)、无线局域网Wi-Fi (IEEE 802.11b/g)等。
在人们享受方便快捷的时候,这些技术的电磁兼容问题日益凸现。
由于这些技术均选择了2.4GHz(2.4~2.483GHz)ISM 频段,再加上无绳电话和微波炉等干扰源,就使得该频段日益拥挤,各种信号带宽见图WLAN是英文WirelessLAN的缩写,就是无线局域网的意思。
无线以太网技术是一种基于无线传输的局域网技术,与有线网络技术相比,具有灵活、建网迅速、个人化等特点。
将这一技术应用于电信网的接入网领域,能够方便、灵活地为用户提供网络接入,适合于用户流动性较大、有数据业务需求的公共场所、高端的企业及家庭用户、需要临时建网的场合以及难以采用有线接入方式的环境等作为全球公认的局域网权威,IEEE802工作组建立的标准在过去二十年内在局域网领域独领风骚。
这些协议包括了802.3Ethernet协议、802.5TokenRing协议、802.3z100BASE-T快速以太网协议。
在1997年,经过了7年的工作以后,IEEE 发布了802.11协议,这也是在无线局域网领域内的第一个国际上被认可的协议。
在1999年9月,他们又提出了802.11b"HighRate"协议,用来对802.11协议进行补充,802.11b在802.11的1Mbps和2Mbps速率下又增加了5.5Mbps 和11Mbps两个新的网络吞吐速率。
ESP8266 WiFi模块参数配置指南说明书
ESP8266 Phy Init Bin Parameter Configuration GuideVersion 1.0Espressif SystemsCopyright © 2018About This Guide This guide provides the parameter configuration for ESP8266 phy init bin.Release NotesDate Version Release notes2018.12V1.0Initial releaseDocumentation Change NotificationEspressif provides email notifications to keep customers updated on changes totechnical documentation. Please subscribe at https:///en/subscribe.CertificationDownload certificates for Espressif products from https:///en/certificates.Table of Contents....................................................................................... 1.Structure of ESP8266 Phy Init Bin 1.................................................................................... 2.Check Bits for ESP8266 Phy Init Bin 2.......................................................................................... 3.Version of ESP8266 Phy Init Bin 3............................................................................................... 4.Selection of Crystal Oscillator 4.......................................................................................................... 5.Six Levels of TX Power 5.......................................................................................... 6.TX Power for Various Data Rates 6.................................................................................................................... 7.TX Power Limits 7..........................................................................................7.1.Value Range of the TX Power Limits 77.2.Parameters for the TX Power Limits 7................................................................................................................................................................................................................. 8.RF Calibration 91. Structure of ESP8266 Phy Init Bin 1.Structure of ESP8266 Phy InitBin ESP8266 phy init bin is comprised of a 128-byte phy init data as shown in Table 1-1:Table 1-1. Structure of ESP8266 Phy Init BinName Sizephy init data128 bytes2. Check Bits for ESP8266 Phy Init Bin 2.Check Bits for ESP8266 PhyInit Bin The check bits for ESP8266 phy init bin are stored in byte zero of phy init data, and therelevant parameter is Init_bin_magic with default value of 0x5. The check bits are used forverifying the data location in ESP8266 phy init bin. If the parameter value is the same asthe default value when reading data, it is assumed that data are stored correctly inESP8266 phy init bin.Table 2-1. Check Bits for ESP8266 Phy Init BinLocation in phy init data Parameter Name Default Value Description0Init_bin_magic5For check3. Version of ESP8266 Phy Init Bin3.Version of ESP8266 Phy InitBinThe version information of ESP8266 phy init bin is stored in byte 1 of phy init data.For example, ESP8266_esp_data_bin_v08.bin represents Version 08, which is stored inbyte 1 as 0x8.Table 3-1. Version of ESP8266 Phy Init BinLocation in phy init data Parameter Name Default Value Description1Init_bin_version8phy init bin version4. Selection of Crystal Oscillator 4.Selection of Crystal OscillatorThe parameter crystal_sel allows you to select a crystal oscillator. The available options aregiven in Table 4-1. Currently, ESP8266 mainly supports 26 MHz and 40 MHz crystaloscillators.Table 4-1. Selection of Crystal OscillatorLocation in phy init data Parameter Name Default Value Description48crystal_sel10: 40 MHz crystal oscillator 1: 26 MHz crystal oscillator 2: 24 MHz crystal oscillator5. Six Levels of TX Power 5.Six Levels of TX PowerTX power can be switched between six levels. The indexes for the six levels are thenumbers from 0 to 5 at the end of the parameter names. For example, the index fortxpwr_qdb_0 is 0, representing the maximum TX power. From txpwr_qdb_0 totxpwr_qdb_5, the TX power decreases progressively.Default TX power settings can be found in Table 5-1.Table 5-1. Six Levels of TX PowerLocation in phy init data Parameter Name Default Value Unit Actual TX Power34txpwr_qdb_0780.25 dB19.5 dBm35txpwr_qdb_1740.25 dB18.5 dBm36txpwr_qdb_2700.25 dB17.5 dBm37txpwr_qdb_3640.25 dB16 dBm38txpwr_qdb_4600.25 dB15 dBm39txpwr_qdb_5560.25 dB14 dBm6. TX Power for Various Data Rates 6.TX Power for Various DataRates You can choose from any of the six TX power levels for different data rates. The columnDefault value in Table 6-1 contains the TX power index.Table 6-1. TX Power for Various Date RatesLocation in phy init data Parameter Name Data rate/mode DefaultValueDescription40txpwr_index_0MCS0, 1 Mbit/s, 2 Mbit/s, 5.5 Mbit/s, 11 Mbit/s,6 Mbit/s, 9 Mbit/s0Select txpwr_qdb_041txpwr_index_1MCS1, 12 Mbit/s0Select txpwr_qdb_0 42txpwr_index_2MCS2, 18 Mbit/s1Select txpwr_qdb_1 43txpwr_index_3MCS3, 24 Mbit/s1Select txpwr_qdb_1 44txpwr_index_4MCS4, 36 Mbit/s2Select txpwr_qdb_2 45txpwr_index_5MCS5, 48 Mbit/s3Select txpwr_qdb_3 46txpwr_index_6MCS6, 54 Mbit/s4Select txpwr_qdb_4 47txpwr_index_7MCS75Select txpwr_qdb_596txpwr_index_11b_en802.11b00: use txpwr_index_0 toset TX Power for 802.11b1: use bytes 97 and 98 toset TX Power for 802.11b97txpwr_index_11b_01 Mbit/s,2 Mbit/s0Select txpwr_qdb_098txpwr_index_11b_15.5 Mbit/s, 11 Mbit/s0Select txpwr_qdb_07. TX Power Limits7.TX Power LimitsThe TX power limits have been set mainly to limit the maximum powers for channels 1, 11,13 and 14 in order to conform to the certification test results.7.1.Value Range of the TX Power LimitsThe TX power limits are set against the six levels. The value range of the limits is [0:5],which includes the values presented in Table 7-1.7.2.Parameters for the TX Power LimitsThe parameters for the TX power limits are specified in Table 7-2. For example, if the valueof byte 78 is set to 2, the bytes 30-33 are enabled to configure the maximum TX powers for channels 1, 11, 13 and 14.Table 7-1. Values of the TX Power Limits ValueTX Power Limit (Unit: 0.25 dB)0txpwr_qdb_01txpwr_qdb_12txpwr_qdb_23txpwr_qdb_34txpwr_qdb_45txpwr_qdb_5Table 7-2. Parameters for the TX Power Limits Location inphy init data Parameter name Default value Description78fcc_enable 00: disable bytes 30-331: reserved2: enable bytes 30-33 to set maximum TXpower30mpwr_chan10Set the maximum TX power for 802.11 b/g/n mode at channel 1, range [0:5]. 0xf8 isan invalid parameter.31mpwr_chan110Set the maximum TX power for 802.11 b/g/n mode at channel 11, range [0:5]. 0xf8is an invalid parameter.7. TX Power Limits32mpwr_chan130Set the maximum TX power for 802.11 b/ g/n mode at channel 13, range [0:5]. 0xf8 is an invalid parameter.33mpwr_chan140Set the maximum TX power for 802.11 b/ g/n mode at channel 14, range [0:5]. 0xf8 is an invalid parameter.8. RF Calibration 8.RF CalibrationThe values of the parameter RF_calibration are shown in Table 8-1. To ensure better RFperformance, it is recommend to set RF_calibration to 3, otherwise the RF performancemay become poor.Table 8-1. Parameter of RF CalibrationLocation inphy init dataParameter name Default value Description114RF_calibration30 & 1: only used for setting TX power 2: No RF calibration3: Conduct all RF calibrationDisclaimer and Copyright NoticeInformation in this document, including URL references, is subject to change without notice.THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES WHATSOEVER,INCLUDING ANY WARRANTY OF MERCHANTABILITY , NON-INFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE.All liability, including liability for infringement of any proprietary rights, relating to use of information in this document is disclaimed. No licenses express or implied, by estoppel or otherwise, to any intellectual property rights are granted herein.The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo is a registered trademark of Bluetooth SIG.All trade names, trademarks and registered trademarks mentioned in this document are property of their respective owners, and are hereby acknowledged. Copyright © 2018 Espressif Inc. All rights reserved.Espressif IoT Team。
Adafruit Feather HUZZAH ESP8266 说明书
28212821Adafruit Feather HUZZAH ESP8266Created by lady adaLast updated on 2018-01-11 03:27:01 PM UTC2489991011111212131316161717191920212323242425262627293031313233343539393939Guide ContentsGuide Contents Overview Pinouts Power Pins Logic pins Serial pins I2C & SPI pins GPIO pins Analog PinsOther control pins NC Pins AssemblyHeader Options!Soldering in Plain HeadersPrepare the header strip:Add the breakout board:And Solder!Soldering on Female HeaderTape In Place Flip & Tack Solder And Solder!Power Management Battery + USB Power Power supplies Measuring Battery ENable pinUsing NodeMCU Lua Open up serial console Hello world!Scanning & Connecting to WiFi WebClient example Using Arduino IDEInstall the Arduino IDE 1.6.8 or greaterInstall the ESP8266 Board PackageSetup ESP8266 Support Blink TestConnecting via WiFi DownloadsDatasheets & FilesMore info about the ESP8266Schematic394141414141414141424242Fabrication Print ESP8266 F.A.Q.When I connect stuff to some of the pins, the Huzzah stops working. Whats up with that?My Huzzah board keeps crashing and resetting, whats up with that?I can't seem to find the Serial port on my computer for the Feather HUZZAH?I still can't seem to find the Serial port on my computer for the Feather Huzzah!So, I’m getting a 'no such file' error compiling for ESP8266 on my MacWhenever I start or reset the ESP8226 there's a bunch of "gibberish" on the Serial console I'm having difficulties uploading to the HUZZAH with the Arduino IDE I tried that, but I'm still having difficulties uploading with the Arduino IDE I'm stuck in bootloader mode and can't upload I can't get Lua to respond to my commandsOverviewFeather is the new development board from Adafruit, and like it's namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller cores.This is the Adafruit Feather HUZZAH ESP8266 - our take on an 'all-in-one' ESP8226 WiFi development board with built in USB and battery charging. Its an ESP8266 WiFi module with all the extras you need, ready to rock! We have other boards in the Feather family, check'em out here.At the Feather HUZZAH's heart is an ESP8266 WiFi microcontroller clocked at 80 MHz and at 3.3V logic. This microcontroller contains a Tensilica chip core as well as a full WiFi stack. You can progam the microcontroller using the Arduino IDE for an easy-to-run Internet of Things core. We wired up a USB-Serial chip that can upload code at a blistering 921600 baud for fast development time. It also has auto-reset so no noodling with pins and reset buttonpressings.To make it easy to use for portable projects, we added a connector for any of our 3.7V Lithium polymer batteries and built in battery charging. You don't need a battery, it will run just fine straight from the micro USB connector. But, if you do have a battery, you can take it on the go, then plug in the USB to recharge. The Feather will automatically switch over to USB power when its available.Comes fully assembled and tested, with a USB interface that lets you quickly use it with the Arduino IDE or NodeMCU Lua. (It comes preprogrammed with the Lua interpretter) We also toss in some header so you can solder it in and plugPinoutsPower PinsGND - this is the common ground for all power and logicThe TX pin is the output from the module and is 3.3V logic.In theory you can use any pins for I2C and SPI but to make it easier for people using existing Arduino code, libraries,This breakout has 9 GPIO: #0, #2, #4, #5, #12, #13, #14, #15, #16 arranged at the top edge of the Feather PCBOther control pins NC PinsAssemblyWe ship Feathers fully tested but without headers attached - this gives you the most flexibility on choosing how to use and configure your FeatherHeader Options!Before you go gung-ho on soldering, there's a few options to consider!The first option is soldering in plain male headers, thislets you plug in the Feather into a solderless breadboardAnother option is to go with socket female headers. Thiswon't let you plug the Feather into a breadboard but it will let you attach featherwings very easilyWe also have 'slim' versions of the female headers, thatare a little shorter and give a more compact shapeFinally, there's the "Stacking Header" option. This one issort of the best-of-both-worlds. You get the ability toplug into a solderless breadboard and plug afeatherwing on top. But its a little bulkySoldering in Plain HeadersPrepare the header strip:Cut the strip to length if necessary. It will be easier tosolder if you insert it into a breadboard - long pins downAdd the breakout board:Place the breakout board over the pins so that the short pins poke through the breakout padsAnd Solder!Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (https://adafru.it/aTk)).Solder the other strip as well.You're done! Check your solder joints visually andcontinue onto the next stepsSoldering on Female HeaderTape In PlaceFor sockets you'll want to tape them in place so whenyou flip over the board they don't fall outFlip & Tack SolderAfter flipping over, solder one or two points on eachstrip, to 'tack' the header in placeAnd Solder!Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (https://adafru.it/aTk)).You're done! Check your solder joints visually and continue onto the next stepsPower ManagementBattery + USB PowerWe wanted to make the Feather HUZZAH easy to power both when connected to a computer as well as via battery. There's two ways to power a Feather. You can connect with a MicroUSB cable (just plug into the jack) and the Feather will regulate the 5V USB down to 3.3V. You can also connect a 4.2/3.7V Lithium Polymer (Lipo/Lipoly) or Lithium Ion (LiIon) battery to the JST jack. This will let the Feather run on a rechargable battery. When the USB power is powered, it will automatically switch over to USB for power, as well as start charging the battery (if attached) at 100mA. This happens 'hotswap' style so you can always keep the LiPoly connected as a 'backup' power that will only get used when USB power is lost.your FeatherThe above shows the Micro USB jack (left), Lipoly JST jack (top left), as well as the 3.3V regulator and changeover diode (just to the right of the JST jack) and the Lipoly charging circuitry (right below the regulator).There's also a CHG LED next to the USB jack, which will light up while the battery is charging. This LED might also flicker if the battery is not connected.Power suppliesYou have a lot of power supply options here! We bring out the BAT pin, which is tied to the lipoly JST connector, as well as USB which is the +5V from USB if connected. We also have the 3V pin which has the output from the 3.3V regulator. We use a 500mA peak low-dropout regulator. While you can get 500mA from it, you can't do it continuously from 5V as it will overheat the regulator. We use this to power the ESP8266 which can draw spikes of 250+mA (although its not continuous).You should be able to budget about 250mA current available from the regulator, which will leave plenty for the WiFi module.Measuring BatteryIf you're running off of a battery, chances are you wanna know what the voltage is at! That way you can tell when thebattery needs recharging. Lipoly batteries are 'maxed out' at 4.2V and stick around 3.7V for much of the battery life, then slowly sink down to 3.2V or so before the protection circuitry cuts it off. By measuring the voltage you can quickly tell when you're heading below 3.7VSince the ESP8266 does not have multiple ADC pins, we didn't want to 'sacrifice' one for Lipoly battery monitoring. However we do have a tutorial that mentions how to do it, using two resistors. You can check out the wiring diagram here (use the VBat pin to measure) and the code here.ENable pinIf you'd like to turn off the 3.3V regulator, you can do that with the EN(able) pin. Simply tie this pin to Ground and it willpins will still be powereddisable the 3V regulator. The BAT and USBOnce the terminal software is connected, click the Reset button on the Feather HUZZAH ESP8266 board to reset it and have it print out the welcome message:If you don't get this message, first check that the red/blue leds flickered when you press the reset button. If they didnt, make sure you've got the right baud rate selected in the software (9600)Hello world!Ok we can now turn on an LED. There is a red LED on each board, connected to G PIO #0board so watch out!swapping!So to set the pin #0 LED on and off (which would be pin #3 in Lua) first make it an output:Turn the LED on with:And off with:You can make this a little more automated by running a longer script.For longer text, pasting can be difficult as the lua interpreter needs a little delay time between characters and also require CR-LF settings. For that reason you may want to paste each line and then hit return manually.Pin Notes PCB/Arduino NodeMCU/Lua No pullups!0324394152911101212613714515816gpio.mode(3, gpio.OUTPUT)gpio.write(3, gpio.LOW)gpio.write(3, gpio.HIGH)while 1 dogpio.write(3, gpio.HIGH)tmr.delay(1000000) -- wait 1,000,000 us = 1 second gpio.write(3, gpio.LOW)tmr.delay(1000000) -- wait 1,000,000 us = 1 second endThe LED will now be blinking on and off.Note that since its in a loop, its not possible to get it to stop via the interpreter. To stop it, click the Reset button again!This code halts the processor during the tmr.delay, a smarter way to blink an LED is to use the timer capability to set off the LED control (code from here )Scanning & Connecting to WiFiWe'll continue with a quick demo of scanning for WiFi and connecting.Once you're back at the Lua prompt, set the ESP8266 into WiFi Client mode withThen you can run the scanner and have it print out the available AP'sor for more detail...-- Pin definition local pin = 3local status = gpio.LOWlocal duration = 1000 -- 1 second duration for timer -- Initialising pingpio.mode(pin, gpio.OUTPUT)gpio.write(pin, status)-- Create an intervaltmr.alarm(0, duration, 1, function () if status == gpio.LOW then status = gpio.HIGH elsestatus = gpio.LOW endgpio.write(pin, status)end )wifi.setmode(wifi.STATION)-- print ap list function listap(t)for k,v in pairs(t) do print (k.." : "..v) end endwifi.sta.getap(listap)Using Arduino IDEWhile the Feather HUZZAH ESP8266 comes pre-programmed with NodeMCU's Lua interpretter, you don't have to use it! Instead, you can use the Arduino IDE which may be more familar. This will write directly to the firmware, erasing the NodeMCU firmware , so if you want to go back to Lua, use the flasher to re-install itDon't forget to visit for the latest and greatest in ESP8266 news, software and gossip!In order to upload code to the ESP8266 and use the serial console, connect any data-capable micro USB cable to the Feather HUZZAH and the other side to your computer's USB port.Don't forget you will also need to install the SiLabs CP2104 Driver:Click here to download the CP2104 USB Driverhttps://adafru.it/vrfDownload the CP2104 Legacy USB Driverhttps://adafru.it/ymFInstall the Arduino IDE 1.6.8 or greaterpackage)Download Arduino IDE from (1.6.8 or greater) from The latest is usually the bestInstall the ESP8266 Board PackageEnter /stable/package_esp8266com_index.json into Additional Board Manager URLs field in the Arduino v1.6.4+ preferences.Visit our guide for how to add new boards to the Arduino 1.6.4+ IDE for more info about adding third party boards. Next, use the Board manager to install the ESP8266 package.After the install process, you should see that esp8266 package is marked INSTALLED. Close the Boards Manager window once the install process has completed.Setup ESP8266 SupportWhen you've restarted, select Adafruit HUZZAH ESP8266 from the Tools->Board dropdown80 MHz as the CPU frequencyYou can keep the Flash Size at "4M (3M SPIFFS)For Upload Speed, select 115200 baud (You can also try faster baud rates, we were able to upload at a blistering 921600 baud but sometimes it fails & you have to retry)The matching COM port for your FTDI or USB-Serial cableBlink TestWe'll begin with the simple blink testEnter this into the sketch window (and save since you'll have to)Now you can simply upload! The Feather HUZZAH has built in auto-reset that puts it into bootloading mode automagicallyvoid setup() {pinMode(0, OUTPUT);}void loop() {digitalWrite(0, HIGH);delay(500);digitalWrite(0, LOW);delay(500);}The sketch will start immediately - you'll see the LED blinking. Hooray!Connecting via WiFiOK once you've got the LED blinking, lets go straight to the fun part, connecting to a webserver. Create a new sketch with this code:/** Simple HTTP get webclient test*/#include<ESP8266WiFi.h>const char* ssid = "yourssid";const char* password = "yourpassword";const char* host = "";void setup() {Serial.begin(115200);delay(100);// We start by connecting to a WiFi networkSerial.println();Serial.println();Serial.print("Connecting to ");Serial.println(ssid);WiFi.begin(ssid, password);while (WiFi.status() != WL_CONNECTED) {delay(500);Serial.print(".");}Serial.println("");Serial.println("WiFi connected");Serial.println("IP address: ");Serial.println(WiFi.localIP());}int value = 0;void loop() {delay(5000);++value;Serial.print("connecting to ");Serial.println(host);// Use WiFiClient class to create TCP connectionsWiFiClient client;const int httpPort = 80;if (!client.connect(host, httpPort)) {Serial.println("connection failed");return;}// We now create a URI for the requestString url = "/testwifi/index.html";Serial.print("Requesting URL: ");Serial.println(url);// This will send the request to the serverclient.print(String("GET ") + url + " HTTP/1.1\r\n" +"Host: " + host + "\r\n" +"Connection: close\r\n\r\n");delay(500);// Read all the lines of the reply from server and print them to Serialwhile(client.available()){String line = client.readStringUntil('\r');Serial.print(line);}Serial.println();Serial.println("closing connection");}Dont forget to updateconst char* ssid = "yourssid";const char* password = "yourpassword";to your access point and password, then upload the same way: get into bootload mode, then upload code via IDEOpen up the IDE serial console at 115200 baud to see the connection and webpage printout!That's it, pretty easy!This page was just to get you started and test out your module. For more information, check out the ESP8266 port github repository for much more up-to-date documentation!Fabrication Printnoticed that PL2303-based cables don't work on Macs for some reason. FTDI or CP210x based chipsets work best I tried that, but I'm still having difficulties uploading with the Arduino IDESometimes, it helps to switch the board type to "Generic ESP8266 Module". Set the Reset Method to "nodemcu" See this forum postI'm stuck in bootloader mode and can't uploadYou say your led is stuck on dim and you get an error trying to upload? And you're sure your serial cable is connected and working correctly? Well, here's a potential fix: Connect the GPIO0 pin to GND through a 220 ohm resistor. Leave it connected while you upload. You may have to try it a couple of times, but it should eventually upload and get the HUZZAH unstuck from bootload mode! You can then remove the resistor connection, and your HUZZAH will be happy ever after!(Note: you may also have to tie RST and EN (CH_PD) together to get this to work. Remove the connection once you have the module programmed).Thanks to forum user misslevania for the tip!I can't get Lua to respond to my commandsMake sure your terminal software is sending correct line endings! The default PuTTY settings may be wrong when trying to talk to Lua on an ESP8266. Lua expects CRLF "\r\n" line endings, and apparently PuTTY defaults to just LF "\n"!28212821。
esp8266
esp8266ESP8266是一款非常流行的Wi-Fi模块,广泛应用于物联网和智能家居领域。
本文将介绍ESP8266的基本特性、应用场景以及如何使用它进行开发。
第一部分:ESP8266简介ESP8266是由乐鑫科技(Espressif Systems)开发的一款低成本、低功耗Wi-Fi模块。
它采用了Tensilica Xtensa LX106核心处理器,主频80MHz,内置32位处理器和Wi-Fi功能,支持TCP/IP协议栈。
ESP8266模块内部集成了一些常见硬件接口,如UART、SPI和GPIO,方便开发者进行接口扩展和外部设备连接。
第二部分:ESP8266的特性1. 低成本和低功耗:ESP8266的成本非常低,适合大规模应用。
它的功耗也很低,可以满足电池供电的需求。
2. 强大的处理能力:虽然ESP8266主频只有80MHz,但其内置的32位处理器足够强大,能够处理复杂的计算任务。
3. Wi-Fi功能:ESP8266支持802.11 b/g/n标准,可以快速连接到无线网络,实现远程控制和数据传输。
4. 可编程性:ESP8266内置了存储器,可以用于存储程序代码和数据,方便开发者进行程序开发和扩展。
5. 开放源代码:ESP8266的SDK是开源的,开发者可以根据自己的需求进行定制和修改。
第三部分:ESP8266的应用场景1. 物联网应用:ESP8266可以连接到互联网,实现与云平台的数据交互,适用于智能家居、智能农业、智能城市等物联网应用。
2. 远程控制和监控:利用ESP8266的Wi-Fi功能,可以远程控制和监控设备,例如远程开关灯、监控温度。
3. 数据采集和传输:ESP8266可以连接到各种传感器,采集实时数据并传输到服务器或云平台,实现数据的实时监测和分析。
4. 物联网网关:ESP8266可以作为物联网网关使用,连接各种传感器和设备,实现设备间的通信和数据传输。
第四部分:ESP8266的开发和编程ESP8266的开发可以使用多种编程语言和工具,如Arduino IDE、MicroPython和Lua等。
Handson Technology ESP8266 NodeMCU WiFi开发板用户手册说明书
User Manual V1.2The ESP8266 is the name of a micro controller designed by Espressif Systems. The ESP8266 itself is a self-contained WiFi networking solution offering as a bridge from existing micro controller to WiFi and is also capable of running self-contained applications. This module comes with a built in USB connector and a rich assortment of pin-outs. With a micro USB cable, you can connect NodeMCU devkit to your laptop and flash it without any trouble, just like Arduino. It is also immediately breadboard friendly.Table of Contents1. Specification: (3)2. Pin Definition: (3)3. Using Arduino IDE (3)3.1 Install the Arduino IDE 1.6.4 or greater (4)3.2 Install the ESP8266 Board Package (4)3.3 Setup ESP8266 Support (5)3.4 Blink Test (7)3.5 Connecting via WiFi (9)4. Flashing NodeMCU Firmware on the ESP8266 using Windows (12)4.1 Parts Required: (12)4.2 Pin Assignment: (12)4.3 Wiring: (13)4.4 Downloading NodeMCU Flasher for Windows (13)4.5 Flashing your ESP8266 using Windows (13)5. Getting Started with the ESPlorer IDE (15)5.1 Installing ESPlorer (15)5.2 Schematics (18)5.3 Writing Your Lua Script (18)6. NodeMCU GPIO for Lua (22)7. Web Resources: (22)ing Arduino IDEClick ‘File’ -> ‘Preferences’ to access this panel. Next, use the Board manager to install the ESP8266 package.Click ‘Tools’ -> ‘Board:’ -> ‘Board Manager…’ to access this panel.Scroll down to ‘ esp8266 by ESP8266 Community ’ and click “Install” button to install the ESP8266 library package. Once installation completed, close and re-open Arduino IDE for ESP8266 library to take effect.Setup ESP8266 SupportWhen you've restarted Arduino IDE, select ‘Generic ESP8266 Module’ from the ‘Tools’ -> ‘Board:’ dropdown menu. Select 80 MHz as the CPU frequency (you can try 160 MHz overclock later)Find out which Com Port is assign for CH340 Select the correct Com Port as indicated on ‘Device Manager” Note: if this is your first time using CH340 “ USB-to-Serial ” interface, please install the driver first before proceed the above Com Port setting. The CH340 driver can be download from the below site:Once the ESP board is in bootload mode, upload the sketch via the IDE, Figure 3-2.Figure3-1: Connection diagram for the blinking testFigure 3.2: Uploading the sketch to ESP8266 NodeMCU module.The sketch will start immediately - you'll see the LED blinking. Hooray!Connecting via WiFiOK once you've got the LED blinking, let’s go straight to the fun part, connecting to a webserver. Create a new sketchconst char* host ="";void setup(){Serial.begin(115200);delay(100);// We start by connecting to a WiFi networkSerial.println();Serial.println();Serial.print("Connecting to ");Serial.println(ssid);WiFi.begin(ssid, password);while(WiFi.status()!= WL_CONNECTED){delay(500);Serial.print(".");}Serial.println("");Serial.println("WiFi connected");Serial.println("IP address: ");Serial.println(WiFi.localIP());}int value =0;void loop(){delay(5000);++value;Serial.print("connecting to ");Serial.println(host);// Use WiFiClient class to create TCP connectionsWiFiClient client;const int httpPort =80;if(!client.connect(host, httpPort)){Serial.println("connection failed");return;}// We now create a URI for the requestString url ="/projects/index.html";Serial.print("Requesting URL: ");Serial.println(url);// This will send the request to the serverclient.print(String("GET ")+ url +" HTTP/1.1\r\n"+"Host: "+ host +"\r\n"+"Connection: close\r\n\r\n");delay(500);// Read all the lines of the reply from server and print them to Serial while(client.available()){String line = client.readStringUntil('\r');Serial.print(line);}Serial.println();Serial.println("closing connection");}That's it, pretty easy right ! This section is just to get you started and test out your module.ESP8266 Module Breadboard Friendly with Header ConnectorESP8266 Module Breadboard FriendlyPL2303HX USB-UART Converter CableSome Male-to-Female Jumper WiresESP8266 Pin DescriptionCH_PD Pull high, connect to Vcc +3.3VVcc Power Supply +3.3VTXD Connect to RXD (white) of PL2303HX USB-Serial converter cable RXD Connect to TXD (Green) of PL2303HX USB-Serial converter cable GPIO0 Pull low, connect to GND pinGND Power Supply groundPress the button “Flash” and it should start the flashing process immediately, showing the Module MAC address if After finishing this flashing process, it should appear a green circle with a check icon at lower left corner.Your ESP8266 module is now loaded with NodeMCU firmware.Here’s a rundown of the features the ESPlorer IDE includes:Syntax highlighting LUA and Python code.Code editor color themes: default, dark, Eclipse, IDEA, Visual Studio.Undo/Redo editors features.Code Autocomplete (Ctrl+Space).Below the Code Window, you have 12 buttons that offer you all the functions you could possible need to interact with your ESP8266. Here’s the ones you’ll use most: “Save to ESP” and “Send to ESP”.5.3 Writing Your Lua ScriptBelow is your script to blink an LED.lighton=0pin=4gpio.mode(pin,gpio.OUTPUT)Right now you don’t need to worry how this code works, but how you can upload it to your ESP8266.Look at the top right corner of your ESPlorer IDE and follow these instructions: Press the Refresh button.Select the COM port for your FTDI programmer.Select your baudrate.Click Open.Copy your Lua script to the code window (as you can see in the Figure below):Congratulations, you’ve made it! The blue LED at the upper right corner should be blinking every 2 seconds!6. NodeMCU GPIO for LuaThe GPIO(General Purpose Input/Output) allows us to access to pins of ESP8266 , all the pins of ESP8266 accessed using the command GPIO, all the access is based on the I/O index number on the NoddMCU dev kits, not the internal GPIO pin, for example, the pin ‘D7’ on the NodeMCU dev kit is mapped to the internal GPIO pin 13, if you want to turn ‘High’ or ‘Low’ that particular pin you need to called the pin number ‘7’, not the internal GPIO of the pin. When you are programming with generic ESP8266 this confusion will arise which pin needs to be called during programming, if you are using NodeMCU devkit, it has come prepared for working with Lua interpreter which can easily program by looking the pin names associated on the Lua board. If you are using generic ESP8266 device or any other vendor boards please refer to the table below to know which IO index is associated to the internal GPIO of ESP8266.Nodemcu dev kit ESP8266 Pin Nodemcu devkitESP8266 PinD0 GPIO16 D7 GPIO13D1 GPIO5 D8 GPIO15D2 GPIO4 D9 GPIO3D3 GPIO0 D10 GPIO1D4 GPIO2 D11 GPIO9D5 GPIO14 D12 GPIO10D6 GPIO12D0 or GPIO16 can be used only as a read and write pin, no other options like PWM/I2C are supported by this pin.In our example in chapter 5 on blinking the blue LED, the blue LED in connected to GPIO2, it is defined as Pin4 (D4) in Lua script.7. Web Resources:•ESP8266 Lua Nodemcu WIFI Module•ESP8266 Breadboard Friendly Module•ESP8266 Remote Serial WIFI Module•PL2303HX USB-UART Converter Cable。
ESP8266EX 芯片硬件配对指南说明书
ESP8266EXHardware Matching GuideVersion 1.1Espressif SystemsCopyright © 2018About This GuideThis document introduces the frequency offset tuning and antenna impedance matching forESP8266EX, which are necessary for achieving optimum RF performance.Release NotesDocumentation Change NotificationEspressif provides email notifications to keep customers updated on changes totechnical documentation. Please subscribe at https:///en/subscribe .CertificationDownload certificates for Espressif products from https:///en/certificates .Date Version Release notes 2016.06V1.0Initial release.2018.11V1.1•Deleted “Modify Frequency Offset” in Section 2.2; •Updated document format and Figure 3-1.Table of Contents ................................................................................................................................ 1.Overview 1....................................................................................................... 2.Frequency Offset Tuning 1...........................................................................................................2.1.Testing Frequency Offset 12.2.Adjusting Frequency Offset 1..................................................................................................................................................................................................................... 3.Impedance Matching 21. Overview 1.OverviewESP8266EX is a highly integrated System-on-a-Chip (SoC) with only seven externalcomponents. In order to achieve the optimum performance of the chip, customers onlyneed to tune the frequency offset and match the antenna impedance, according to thecrystal oscillator and the antenna.The lack of frequency offset tuning and antenna impedance matching may reduce the RFperformance, resulting in AP-scanning issues, unstable connection and unstable datatransmission.2. Frequency Offset Tuning 2.Frequency Offset Tuning2.1.Testing Frequency OffsetThe frequency offset can be tested in one of the following ways:1.GPIO0 outputs crystal oscillator clock signals by default. Customers can compare thecalculated frequency to the standard frequency, and get the offset value.2.Customers can use the AT command and send AT+CWLAP command. The lastparameter is the offset value. However, it is a relative value. Customers can use astandard device for comparison.3.Customers can use the FCC/CE test firmware to send a standard wave and get theoffset value with an IQView equipment. The IQView equipment is shown in Figure 2-1.The FCC/CE certification and test document can be downloaded from:/en/support/download/other-tools.Figure 2-1. IQView Equipment2.2.Adjusting Frequency OffsetThe frequency offset can be adjusted by adjusting the capacitors on both sides of thecrystal oscillator:•Increase the capacitance if the frequency offset is positive, for example +50 ppm;•Decrease the capacitance if the frequency offset is negative, for example -50 ppm;•Generally, the capacitances are the same, and should be adjusted simultaneously.3. Impedance Matching 3.Impedance MatchingThe impedance of the ESP8266EX PA output end is (39+j6)Ω, so the matched impedanceis (39-j6)Ω (from antenna to the chip).To achieve best RF performance, the π-type impedance matching circuit of the externalantenna should be as is shown in Figure 3-1.Figure 3-1. Antenna Impedance MatchingNotes:•C1 must be a capacitor for filtering harmonics twice, and it is recommended to be 2.4 pF.•L1, C2, along with C1, perform a (39-j6)Ω impedance matching for the antenna.•L1 and C2 can be either inductors or capacitors, depending on different requirements.Disclaimer and Copyright NoticeInformation in this document, including URL references, is subject to change withoutnotice.THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES WHATSOEVER,INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT, FITNESSFOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUTOF ANY PROPOSAL, SPECIFICATION OR SAMPLE.All liability, including liability for infringement of any proprietary rights, relating to use ofinformation in this document is disclaimed. No licenses express or implied, by estoppel orotherwise, to any intellectual property rights are granted herein.The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo isa registered trademark of Bluetooth SIG.All trade names, trademarks and registered trademarks mentioned in this document are Espressif IoT Teamproperty of their respective owners, and are hereby acknowledged.。
ESP8266EX规格书
ESP8266EX 技术规格表版本 5.4版权 © 2017关于本⼿手册本⼿手册介绍了了 ESP8266EX 的产品参数,包含以下章节。
发布说明章标题内容第 1 章概述概述 ESP8266EX 的特点、协议、技术参数和应⽤用。
第 2 章管脚定义提供管脚布局和定义。
第 3 章功能描述描述 ESP8266EX 上的主要的功能模块和协议,包括 CPU、Flash 和存储、时钟、射频、Wi-Fi 和低功耗管理理。
第 4 章外设接⼝口描述 ESP8266EX 上所集成的外设接⼝口。
第 5 章电⽓气参数列列出 ESP8266EX 的电⽓气参数。
第 6 章封装信息提供 ESP8266EX 的封装信息。
附录Ⅰ管脚列列表提供详细的管脚信息,包括数字模列列表、缓冲列列表、登记表和复⽤用管脚列列表。
附录Ⅱ学习资源介绍 ESP8266 相关的必读资料料,必备资源和视频资源。
⽇日期版本发布说明2015.12V4.6更更新第 3 章。
2016.02V4.7更更新 3.6 和 4.1 节。
2016.04V4.8更更新第 1 章。
2016.08V4.9更更新第 1 章。
2016.11V5.0增加附录Ⅱ “学习资源”。
2016.11V5.1将表 5-2 中 Deep-sleep 模式对应的功耗由 10 μA 改为 20 μA。
2016.11V5.2将 3.3 节的晶振频率的范围由 26 MHz 到 52 MHz 改为 24 MHz 到 52MHz。
2016.12V5.3将⼯工作电压的最⼩小值由 3.0V 改为 2.5V。
2017.04V5.4将芯⽚片的输⼊入和输出阻抗从 50Ω改为 39+j6 Ω。
⽬目录.........................................................................................................................................1.概述 1...................................................................................................................................1.1.Wi-Fi 协议 2.....................................................................................................................................1.2.技术参数 3............................................................................................................................................1.3.应⽤用 4.................................................................................................................................2.管脚定义 53.功能描述7.....................................................................................................................................................................................................................................................3.1.CPU、存储和 Flash 73.1.1.CPU 7.......................................................................................................................................................................................................................................................3.1.2.内置存储 7......................................................................................................................3.1.1.外置 Flash 8.......................................................................................................................3.2.AHB 和 AHB 模块 8............................................................................................................................................3.3.时钟 8........................................................................................................................3.3.1.⾼高频时钟 8..........................................................................................................3.3.2.外部时钟参考要求 9............................................................................................................................................3.4.射频 9........................................................................................................................3.4.1.信道频率 9............................................................................................................3.4.2. 2.4 GHz 接收器器 10............................................................................................................3.4.3. 2.4 GHz 发射器器 10...................................................................................................................3.4.4.时钟⽣生成器器 10.........................................................................................................................................3.5.Wi-Fi 11...............................................................................................................................3.6.低功耗管理理 11.............................................................................................................................. 4.外设接⼝口13........................................................................................................4.1.通⽤用输⼊入/输出接⼝口 (GPIO) 134.2.SDIO 13...................................................................................................................................................................................................................................................4.3.串串⾏行行外设接⼝口 (SPI/HSPI) 134.3.1.通⽤用 SPI(主机/从机) 14..............................................................................................................................................................................................................4.3.2.HSPI(从机) 14....................................................................................................................................4.4.I2C 接⼝口 14....................................................................................................................................4.5.I2S 接⼝口 15............................................................................................................4.6.通⽤用异步收发器器 (UART) 15................................................................................................................4.7.脉冲宽度调制 (PWM) 16...............................................................................................................................4.8.IR 遥控接⼝口 164.9.ADC(模/数转换器器) 17........................................................................................................................................................................................................................4.10.LED Light 和 Button 接⼝口 18............................................................................................................................... 5.电⽓气参数19...................................................................................................................................5.1.电⽓气特性 19..........................................................................................................................................5.2.功耗 19..........................................................................................................................5.3.Wi-Fi 射频特征 20............................................................................................................................... 6.封装信息21..................................................................................................................... I.附录 - 管脚列列表22..................................................................................................................... II.附录 - 学习资源23 ...................................................................................................................................II.1.必读资料料 23 ...................................................................................................................................II.2.必备资源 23 ...................................................................................................................................II.3.视频资源 241.概述ESP8266EX 由乐鑫公司开发,提供了了⼀一套⾼高度集成的 Wi-Fi SoC 解决⽅方案,其低功耗、紧凑设计和⾼高稳定性可以满⾜足⽤用户的需求。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
通过编程,ESP8266会在检测到某种特定情况发月生的时候月自动唤醒。ESP8266在最短时间内月自动唤 醒,这月一特征可以应月用到移动设备的SOC上,这样SOC在开启Wi-Fi之前均处于低功耗待机状态。
2014年12月月3月日
HT20, MCS7 (65Mbps, 72.2Mbps) 邻频抑制
OFDM, 6Mbps OFDM, 54Mbps
HT20, MCS0 HT20, MCS7
-71
dBm
37
dB
21
dB
37
dB
20
dB
8. CPU、存储器和接月口 8.1. CPU 这款芯月片嵌月入了月一个超低功率32位微型CPU,带有16位精简模式。可以通过以下接月口连接该CPU: ▪ 连接存储控制器、也可以月用来访问外接闪存的编码RAM/ROM接月口(iBus) ▪ 同样连接存储控制器的数据RAM接月口(dBus) ▪ 访问寄存器的AHB接月口 ▪ JTAG调试接月口
为满月足移动设备和可穿戴性电月子产品的功率需求,ESP8266在近距离时可以通过软件编程减少PA的 输出功率来降低整体功耗,以适应不同的应月用月方案。
5.1. 最月大集成度 ESP8266集成了板月子上最关键的部件,其中包括电源管理组件、TR开关、RF balun、峰值为 +25dBm的月大功率PA,因此,ESP8266 既保证了BOM的成本最低,月又便于被嵌月入任何系统。 ESP8266仅有的外部BOM是电阻器、电容器和晶振。
8.2. 存储控制器 存储控制器包含ROM和SRAM。CPU可以通过iBus、dBus和AHB接月口访问存储控制器。这些接月口中 任意月一个都可以申请访问ROM或RAM单元,存储仲裁器以到达顺序确定运月行顺序。
8.3. AHB 和 AHB 模块
AHB模块充当仲裁器,通过MAC、主机的SDIO和CPU控制AHB接月口。由于发送地址不同,AHB数 据请求可能到达以下两个从机中的月一个: ▪ APB模块,或 ▪ 闪存控制器(通常在脱机应月用的情况下) 闪存控制器接收到的请求往往是月高速请求,月而APB模块接收到的往往是访问寄存器的请求。 PB模块充当解码器,但只可以访问ESP8266主模块内可编程的寄存器。由于发送地址不同,APB请 求可能到达月无线电接收器、SI/SPI、主机SDIO、GPIO、UART、实时时钟(RTC)、MAC或数字基 带。
8.4. 接月口 ESP 8266 包含多个模拟和数字接月口,详情如下:
8.4.1. 主SI/SPI控制(可选)
!5
乐鑫信息科技
2014年12月月3月日
主串月行接月口(SI)能在月二、三、四线制总线配置下运月行,被月用来控制EEPROM或其他I2C/SPI设备。 多址I2C设备共享2线制总线。
多址SPI设备共享时钟和数据信号,且根据芯月片的选择,各月自单独使月用由软件控制的GPIO管脚。
!6
乐鑫信息科技
2014年12月月3月日
8.4.3. 数字IO 管脚
数字IO焊盘是双向、三态的。它包括输月入和输出的三态控制缓冲器。此外,对于低功耗的运算,IO 还能被设定为保持状态。月比如说,当我们降低芯月片的功耗,所有输出使能信号可以被设定为保持低 功耗状态。
选择性的保持功能可以应需植月入IO中。当IO 不由内外部电路驱动时,保持功能可以被月用于保持上次2月月3月日
1. 简介 2. 技术概述 3. 特征 4. 应月用图表 5. 超低能耗技术 5.1. 最月大集成度 6. ESP8266 的应月用主体 7. 规格 7.1. 功耗 7.2. 规格 8. CPU、存储器和接月口 8.1. CPU 8.2. 存储控制器 8.3. AHB 和 AHB 模块 8.4. 接月口 8.4.1. 主SI/SPI控制(可选) 8.4.2. 通月用 IO 8.4.3. 数字IO 管脚 8.5. Analog ADC 9. 固件和软件月工具开发包 9.1. 特征 10. 电源管理 11. 时钟管理 11.1.月高频时钟 11.2.外部参考要求 12. 月无线电接收器 12.1.频道频率 12.2.2.4GHz接收器 12.3.2.4GHz发射器 12.4.时钟月生成器 附:QFN32封装尺月寸图
SPI_EN1常被月用于月用户应月用,如控制内置应月用中的外接月音频codec或感应器ADC。此管脚低电平有 效,不月用的时候应该悬空。
SPI_EN2常被月用来控制EEPROM,储存个别数据(individual data),如MIB信息、MAC地址和校准 数据,或作月一般月用途。此管脚低电平有效,不月用的时候应该悬空。
4. 应月用图表
5. 超低能耗技术
ESP8266专为移动设备、可穿戴电月子产品和物联月月网应月用设计,并与其他月几项专利技术月一起使机器实 现最低能耗。这种节能的构造以三种模式运月行:激活模式、睡眠模式和深度模睡眠式。
!2
乐鑫信息科技
2014年12月月3月日
ESP8266使月用月高端电源管理技术和逻辑系统调低月非必需功能的功率,调控睡眠模式与月工作模式之间 的转换,在睡眠模式下,其消耗的电流月小于12uA,处于连接状态时,其消耗的功率少于 1.0mW(DTIM=3)或0.5mW(DTIM=10)。
图1:ESP8266 时钟结构图
2. 技术概述
ESP8266是月一个完整且月自成体系的Wi-Fi月月网络解决月方案,能够搭载软件应月用,或通过另月一个应月用处理 器卸载所有Wi-Fi月月网络功能。
ESP8266在搭载应月用并作为设备中唯月一的应月用处理器时,能够直接从外接闪存中启动。内置的月高速 缓冲存储器有利于提月高系统性能,并减少内存需求。
7. 规格 7.1. 功耗 下列功耗数据是基于3.3V的电源、25°C的周围温度,并使月用内部稳压器测得。 [1] 所有测量均在没有SAW滤波器的情况下,于天线接月口处完成。 [2] 所有发射数据是基于 90% 的占空月比,在持续发射的模式下测得的。
模式
最月小值 通常 最月大值 单位
传送802.11b, DSSS 1Mbps, POUT=+19.5dBm 传送802.11b, CCK 11Mbps, POUT=+18.5dBm 传送802.11g, OFDM 54Mbps, POUT =+16dBm
灵敏度
2412 50
14
15
17.5
18.5
DSSS, 1Mbps
-98
CCK, 11Mbps
-91
6Mbps (1/2 BPSK)
-93
54Mbps (3/4 64-QAM)
-75
最月大值 单位
2484
-10 16 19.5
MHz Ω dB
dBm dBm
dBm dBm dBm dBm
!4
乐鑫信息科技
!1
乐鑫信息科技
2014年12月月3月日
▪ 内置TCP/IP协议栈 ▪ 内置TR开关、balun、LNA、功率放月大器和匹配月月网络 ▪ 内置PLL、稳压器和电源管理组件 ▪ 802.11b模式下+19.5dBm的输出功率 ▪ 月支持天线分集 ▪ 断电泄露电流月小于10uA ▪ 内置低功率32位CPU:可以兼作应月用处理器 ▪ SDIO 2.0、 SPI、UART ▪ STBC、1x1 MIMO、2x1 MIMO ▪ A-MPDU 、A-MSDU的聚合和 0.4μs的保护间隔 ▪ 2ms之内唤醒、连接并传递数据包 ▪ 待机状态消耗功率月小于1.0mW (DTIM3)
装有ESP8266的系统表现出来的领先特征有:节能VoIP在睡眠/唤醒模式之间的快速切换、配合低功 率操作的月自适应月无线电偏置、前端信号的处理功能、故障排除和月无线电系统共存特性为消除蜂窝 /蓝 月牙/DDR/LVDS/LCD干扰。
3. 特征 ▪ 802.11 b/g/n ▪ Wi-Fi Direct (P2P)、soft-AP
6. ESP8266 的应月用主体 ▪ 智能电源插头 ▪ 家庭月自动化 ▪ 月月网状月月网络 ▪ 月工业月无线控制 ▪ 婴月儿监控器 ▪ 月月网络摄像机 ▪ 传感器月月网络 ▪ 可穿戴电月子产品 ▪ 月无线位置感知设备 ▪ 安全ID标签 ▪ 月无线定位系统信号
!3
乐鑫信息科技
2014年12月月3月日
月月目录
乐鑫信息科技
1 1 1 2 2 3 3 4 4 4 5 5 5 5 5 5 6 7 7 7 8 9 10 10 10 10 11 11 11 11 12
2014年12月月3月日
1. 简介 乐鑫智能互联平台——ESCP拥有月高性能月无线SOC,给移动平台设计师带来福月音,它以最低成本提供 最月大实月用性,为WiFi功能嵌月入其他系统提供月无限可能。
图 2: SPI 时序特征
8.4.2. 通月用 IO 总共有多达16个GPIO管脚。固件可以给它们分配不同的功能。每个GPIO都可以配置内部上拉/下拉 电阻 、可供软件寄存器取样的输月入、引发边缘或电平CPU中断的输月入、引发电平唤醒中断的输月入、 开漏或互补推挽输出驱动、软件寄存器的输出源或sigma-delta PWM DAC。 这些管脚与其他功能复月用,如主接月口、UART、SI、蓝月牙共存等等。
SPI可以被月用来控制外接设备,如串月行闪存、月音频CODEC或其他从机设备,安装时,给它三个不同 的有效管脚,使其成为标准主SPI设备。
▪ SPI_EN0 ▪ SPI_EN1 ▪ SPI_EN2
SPI从机被月用作主接月口,从月而给SPI主机和SPI从机提供月支持。
在内置应月用中,SPI_EN0被月用作使能信号,作月用于外接串月行闪存,将固件和/或MIB数据下载到基 带。在基于主机的应月用中,固件和MIB数据可以通过主机接月口月二者任选其月一进月行下载。此管脚低电 平有效,不月用的时候应该悬空。