智嵌STM32F107网络互联开发板V2.2硬件使用手册

合集下载

STM32F107开发板原理图(功能完整)

STM32F107开发板原理图(功能完整)
Title:
D
uC-EVAL Ethernet
Rev: A.1(PCB.SCH) Date: 4/2/2009 4 Sheet 4 of
11
Number:MB834 1 2 3
1
2
3
4
A LED1 PE14
LED2
PD13
LED3 CN3 PA4 PB0 PB1 PB9 PB14 PB15 PC0 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PD2 PD7 PE0 RESET# C 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 PE3 PE4 PB3 PB4 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 PD6 PD5 PD4 PD3 PA15 PE2 PA13 PA14 CAN_L CAN_H
E_JRST E_JTDO E_JTDI E_JTCK
VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14
+3V3 VDD_2 VSS_2 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 36 35 34 33 32 31 30 29 28 27 26 25
DDP DDM TDOin ATTACH TDOin TDIout TCKout LED
+3V3
C
USB-miniB connector

STM32_WIFI开发板开发指南及使用说明-V0.32

STM32_WIFI开发板开发指南及使用说明-V0.32

北京世讯电子技术有限公司STM32 WIFI 开发板开发指南及教程欢迎选用世讯电子的开发板! 注意: 注意:如果你是初学者, 如果你是初学者,务必仔细 务必仔细阅读 仔细阅读每节内容 阅读每节内容! 每节内容! 1. 使用指南1.1 adhoc 模式工作( 模式工作(板子默认 wifi 工作模式) 工作模式)拿到板子后, ,先不要下载程序, 1) 拿到板子后 先不要下载程序,先给板子上电, 先给板子上电,测试运行一下! 测试运行一下! 2) 观看开发板上的指示灯, 观看开发板上的指示灯,等到 WIFI 模块旁边的 LED 不闪烁了。

不闪烁了。

3) 打开电脑的 wifi, 搜索一下, 搜索一下,看看能不能找到“ 看看能不能找到“ShiXun_ADHOC”这样的网 络,如下图所示4) 如果不能找到“ 如果不能找到“ShiXun_ADHOC”网络, 网络,需先恢复出厂设置, 需先恢复出厂设置,具体查看 1.2恢复出厂设置模式5) 在电脑上选中“ 在电脑上选中“ShiXun_ADHOC”网络, 网络,输入密码“ 输入密码“1234567890123”然后 选择连接。

选择连接。

6) 然后等待, 然后等待,这个过程有点长, 这个过程有点长,几十秒甚至 几十秒甚至 1 分多钟。

分多钟。

7) 等 wifi 模块旁边的 D6(LED)指示常亮 指示常亮了 常亮了,说明网络连接上了。

说明网络连接上了。

说明板子工 作正常。

作正常。

如下所示Rev 0.32Confidential Copyright@2014 by Shixun Electronic Inc-1-北京世讯电子技术有限公司B. 显示分配到 IP A. 显示已经连接上 8) 打开浏览器, 打开浏览器,输入地址 http://192.168.10.10/ 就可以出来下面页面了9) 然后点击测试部分, 然后点击测试部分,继电器开、 继电器开、关,LED 灯开、 灯开、关。

芯达STM32用户使用手册

芯达STM32用户使用手册

STM32F103VET6芯达 STM32○RUser's ManualPreliminaryRevision 1.0(2010.06.08) 芯达STM32开发板开发指南Copyright © 2009‐2010 ARM79 Limited. All rights reserved版本信息本手册进行了以下更改。

芯达STM32用户手册修订记录日期 修订版本 CR ID 修改章节 修改描述 作者 2010-5-28 1.00 全部 创建 林辰 2010-8-16 1.10 去掉蜂鸣器、AT45 林辰 2010-8-20 1.20 增加外扩接口、修林辰改外观图片版权声明本手册版权归属(以下简称“arm79”)所有, 并保留一切权力。

非经arm79同意(书面形式),任何单位或个人不得擅自摘录本手册部分或全部,违者我们将追究其法律责任。

敬告:在售开发板的手册会经常更新,请在网站查看最近更新,并下载最新手册,不再另行通知。

目录目录 (4)写在前面 (5)第一章芯达STM32光盘使用说明 (6)第二章芯达STM32硬件说明 (8)2.1 芯达STM32板载资源说明 (8)2.2 芯达STM32原理图说明 (9)2.2.1电源电路 (9)2.2.2 实时时钟(备用电池)电路 (9)2.2.3 系统时钟电路 (9)2.2.4 JTAG接口电路 (10)2.2.5 复位电路 (10)2.2.6 用户LED电路 (10)2.2.7 串口电路 (11)2.2.8 按键电路 (11)2.2.9 SD卡接口电路 (12)2.2.10 USB接口电路 (12)2.2.11 LCD TFT液晶接口电路 (13)2.2.12 外扩IO接口电路 (13)第三章芯达STM32开发前的准备 (15)3.1 J-Link驱动的安装 (15)3.2 使用J-Link下载调试 (18)3.3使用ISP下载调试 (25)3.3.1 安装Flash loader (25)3.3.2 使用ISP下载调试 (28)3.4安装RealView MDK软件 (34)3.5使用MDK + J-Link调试 (38)第四章芯达STM32初步开发举例 (49)4.1 下载固件库 (49)4.2 STM32简单开发 (50)附福州芯达工作室简介 (54)写在前面感谢您选购芯达STM32开发板产品!请详细阅读以下文字,以获取对芯达STM32开发板的更多信息。

金龙107开发板用户手册(User Manual)

金龙107开发板用户手册(User Manual)

旺宝-金龙107开发板用户手册1、第一章 硬件篇1.1.金龙STM32F107VCT6开发板简介金龙107嵌入式开发板采用STM32F107VC,是意法半导体推出全新STM32互连型(connectivity)系列微控制器中的一款性能较强产品,此芯片集成了各种高性能工业标准接口,且STM32不同型号产品在引脚和软件上具有完美的兼容性,可以轻松适应更多的应用。

新STM32标准外设包括 10个定时器、两个12位 1 M sample/s AD(模数转换器)(快速交替模式下 2M sample/s)、两个12位DA(数模转换器)、两个I2C接口、五个USART接口和三个SPI端口和高质量数字音频接口IIS ,另外STM32F107拥有全速USB(OTG)接口,两路CAN2.0B 接口,以及以太网 10/100 MAC模块。

此芯片可以满足工业、医疗、楼宇自动化、家庭音响和家电市场多种产品需求!1.2.开发板板载资源STM32F107VCT6,ARM Cortex-M3内核,主频72MHz,内部含有256K字节的FLASH和64K字节的SRAM1个10M/100M以太网接口,标准RJ45接口,支持平行交叉网线自适应1个USB 2.0 OTG全速接口,可以作为USB SLA VE,也可以作为USB HOST 1个标准的3.2/4.3/5/7寸TFT LCD接口,带触摸功能1个I2S音频解码芯片WM8978,支持MP3软解,高品质音乐播放1个FM收音机芯片TEA57672个耳机接口1个SD卡接口1个2.4G无线通信模块接口1个红外接收头1个摄像头接口,选配OV7670模块1个温度传感器接口,选配DS18B202个CAN总线接口1个RS485接口1个RS232串口,DB9母头1个USB转串口芯片PL2303,笔记本使用更加方便1个SPI FLASH芯片,W25Q16,存储字库更加方便1个IIC接口的EEPROM芯片,24C02,容量2K1个小喇叭1个复位按钮,控制整板硬件复位4个功能按钮,其中包括WAKEUP唤醒功能和TEMPER入侵功能1个五向按键1个电源指示灯,LD2,红色4个用户状态指示灯,LD1,LD3,LD4,LD5红色2个启动模式选择配置端口1个RTC实时时钟后备电池座1个标准的JTAG/SWD仿真调试下载接口1路电位器可调电阻模拟输入,可以做模数转换实验1个DAC数模转换接口连接到接线端子1个ADC模数转换接口连接到接线端子1个PWM接口连接到接线端子1个DC5V电源接口1个电源开关,控制整个板子的电源除晶振占用的IO管脚,其余所有IO口全部引出到扩展双排插针2、第二章 专题讲解2.1专题一:MDK安装及下载请在网页搜索“红龙开发板 第一讲”注意几个不同点:1.红龙用的是104脚的 stm32f103ze,金龙用的是stm32f107vc因此选芯片有以下几方面不同a.选芯片,选stm32f107vcb.宏定义(关于库的,如果不用库,可以忽略),主要是*_CL,和*_HD的区别c.flashFlash选256k的2.2专题二:JFLASH的使用提示:如果你使用此方式下载,请断电上电后再测试,涉及到中断的程序必须重 新上电。

奋斗版STM32开发板V2.0硬件说明书

奋斗版STM32开发板V2.0硬件说明书

奋斗版STM32开发板V2.0的硬件说明1. 供电电路:AMS1117-3.3输入+5V,提供3.3V的固定电压输出,为了降低电磁干扰,C1-C5为CPU 提供BANK电源(VCC:P50、P75、P100、P28、P11 GND:P49、P74、P99、P27、P10)滤波。

CPU的模拟输入电源供电脚VDDA(P22)通过L1 22uH的电感与+3.3V VDD电压连接,CPU的模拟地VSSA(P19)及VREF-(P20)通过R1 0欧电阻与GND连接。

VREF+(P21)采用VDDA(P22)电源基准。

AMS1117-2.5输入+5V,提供2.5V的固定电压输出,为MP3电路VS1003提供所需的电压。

为RTC的备份电源采用V1 3.3V锂离子片状电池。

2. 启动方式设置:Boot1—Boot0(P37,P94): x0: 内部程序存储区启动01:系统存储区启动(为异步通信ISP编程方式)在此将BOOT1始终设置为0, BOOT0为可变的状态,在正常模式下将其置为0,在ISP 编程时将其置为1。

用JP1跳线块设置,开路为ISP模式,短路为正常运行模式。

3. 时钟源电路:外部晶体/陶瓷谐振器(HSE)(P12、P13):B1:8MHz晶体谐振器,C8,C9谐振电容选择10P。

系统的时钟经过PLL模块将时钟提高到72MHz。

低速外部时钟源(LSE)(P8、P9):B2: 32.768KHz晶体谐振器。

C10,C11谐振电容选择10P。

注意:根据ST公司的推荐, B2要采用电容负载为6P的晶振,否则有可能会出现停振的现象。

4. SPI存储电路:D2 AT45DB161(2M Bytes)CPU采用SPI1端口PA7-SPI1-MOSI(P32)、PA6-SPI1-MISO (P31)、PA5-SPI1-SCK(P30)、PC4-SPI1-CS2(P33)控制读写访问, SPI1地址:0x4000 3800 - 0x4000 3BFF5. 显示及触摸接口模块:显示器采用2.4” TFT320X240LCD(控制器ILI9325), 采用CPU的FSMC功能,LCD片选CS采用FSMC_NE1(P88),FSMC_A16(P58)作为LCD的RS选择,FSMC_nWE(P86)作为LCD的/WR, FSMC_nOE(P85)作为LCD的/RD, LCD的RESET脚用CPU的PE1(P98)(LCD-RST),FSMC_D0---FSMC_D15和LCD的D1-D8 D10-D17相互连接,触摸屏接口采用SPI1接口,片选为PB7-SPI1-CS3,由于LCD背光采用恒流源芯片PT4101控制,采用了PWM控制信号控制背光的明暗, PWM信号由PD13-LIGHT-PWM来控制。

智嵌STM32F107网络互联开发板V3.0实验例程操作手册

智嵌STM32F107网络互联开发板V3.0实验例程操作手册

北京智嵌物联网电子技术ISTM32F107网络互联开发板3.0实验例程操作手册版本号:A拟制人:赵工时间:2013年7月1日目录1本文档编写目的 (1)2实验例程操作说明 (1)2.1LED闪烁实验 (1)2.2KEY_LED实验 (1)2.3RS232通讯实验 (1)2.4RS485通讯实验 (2)2.5CAN1通讯实验 (2)2.6CAN1与CAN2通讯实验 (3)2.7I2C实验—读写24c04 (4)2.8SPI通讯实验--读写SST2508B (5)2.9TCP服务器收发数据实验 (5)2.10动态IP实验 (7)2.11HTTP网页服务器实验 (7)2.12USB数据存储实验1(读写STM32F107片内flash) (9)2.13USB数据存储实验2(读写板载SST25F08B) (9)2.14U盘读写实验 (9)2.15USB鼠标实验 (11)2.16USB_JoyStickMouse实验 (11)2.17 2.4G无线模块NRF24l01通信实验 (12)2.18基于NRF24L01的无线RS232通讯实验 (12)2.19DS18B20温度试验 (13)2.20UDP客户端发送数据实验 (14)2.21UDP服务器收发数据实验 (15)2.22TCP客户端收发数据实验 (18)2.2316通道ADC采集实验 (21)2.24UDP与RS232RS485双向数据透明传输例程---开发板做服务器 (23)2.25TCP与RS232RS485双向数据透明传输实验 (23)2.26TCP与CAN双向数据透明传输实验 (23)1本文档编写目的本手册是针对STM32F107网络互联开发板V2.2的例程而编写的,包括每个实验例程的实验原理、实验步骤、注意事项等。

2实验例程操作说明2.1LED闪烁实验实验原理:通过控制PE2/PE3/PE4/PE5的电平变化实现LED灯的亮灭。

实验步骤:(1)用Keil uVision4打开LED灯闪烁实验工程,并编译。

智嵌TCP与CAN双向数据透明传输例程使用说明

智嵌TCP与CAN双向数据透明传输例程使用说明

TCP与CAN双向数据透明传输例程使用说明版本号:A拟制人:赵志峰时间:2013年5月30日目录1本文档编写目的 (3)2硬件拓扑结构 (3)3传输原理 (3)3.1CAN的组包和发送 (3)3.2以太网帧到CAN (3)3.3TCP端口分配 (4)4实验步骤 (4)4.1硬件连接 (4)4.2软件配置 (4)4.3TCP与CAN1双向传输数据 (5)4.4TCP与CAN2双向传输数据 (7)1本文档编写目的本使用手册是针对STM32F107网络互联开发板V2.2的“TCP与CAN双向数据透明传输例程”而编写的,包括硬件拓扑结构、传输原理、实验步骤等内容。

2硬件拓扑结构本实验例程的硬件拓扑结构如图1所示:图1硬件拓扑结构由图1可以看出,开发板的两路CAN均可以接任意CAN设备。

一方面,CAN设备通过STM32F107开发板将数据发往任意以太网设备(任意IP和端口)。

另一方面,任意以太网设备(任意IP和端口)也可以通过STM32F107开发板将数据发往CAN设备。

本实验是采用PC机软件模拟与CAN的数据透传。

主要使用的PC机软件有:CAN_qm999cn(也可以用别的CAN软件,主要根据USB转CAN设备来选择)和TCP_tester。

3传输原理开发板工作在TCP服务器模式,IP为192.168.1.252,TCP服务器端口:CAN1为1032;CAN2为1033。

3.1CAN的组包和发送由于CAN的传输速度相对于以太网来说慢很多,如果CAN接收到一帧的数据就向以太网上发送,势必会造成网络利用率低或者出现丢帧现象。

解决的办法是,将接收到的CAN 数据帧组包,一包CAN数据帧接收完成后再向以太网上发送。

CAN数据帧组包方式有很多种,本例程中是通过CAN帧的个数来组包,即当接收到预定的CAN数据帧个数(20个)后,开始将接收到的这些CAN数据帧组成一包,发送到以太网上。

该包数据发送方式见表1所示。

3.2以太网帧到CAN当以太网接收到一帧数据时,如果是CAN1端口(1032)接收的,则将该帧数据组装后通过CAN1发送出去;如果是CAN2端口(1033)接收的,则将该帧数据组装后通过CAN2发送出去。

STM32核心板使用说明书(Ver0.1)

STM32核心板使用说明书(Ver0.1)
40 PC9
51 PC10
52 PC11
53 PC12
LCD_RS LCD_RW LCD_E KEY1 KEY2
LCD 接口 LCD 接口 LCD 接口
按键
按键
8
Pins Pin Name 2 PC13-ANTI_TAMP 3 PC14-OSC32_IN 4 PC15-OSC32_OUT
5 OSC_IN/PD0
Comment 3V
104
20p 15p 22uF/6.3V 10uF/10V 100uF/10V 100uF/6.3V 绿 LED 1N4148 红 LED 2.6A 启动模式跳线 Header 13X2 D Connector 9 1602 液晶 JTAG 直流 5V 输入 0 20K 10Kx4 10K 1K 1M 100K 100 SW-SPST MAX3232CSE STM32F101RBT6 LM1117MPX-3.3 8M 32768
LCD_DB2
30 PB11/I2C2_SDA /USART3_RX
LCD_DB3
33 PB12/SPI2_NSS/I2C2_SMBAl/USART3_ LCD_DB4
CK/ TIM1_BKIN
34 PB13/SPI2_SCK/USART3_CTS/TIM1_C LCD_DB5
H1N
35 PB14/SPI2_MISO/USART3_RTS/TIM1_ LCD_DB6
第 2 章 功能说明 ............................................................. 7 2.1 电路原理图 ............................................................. 7 2.2 CPU PIN 分配(适应 STM32F103RBT6 或 STM32F103R8T6) ......................... 7 2.3 PCB 板图................................................................ 9 2.4 跳线设置 .............................................................. 10 2.5 输出口 P1,P2 PIN 定义 ................................................... 11

STM32开发板操作手册说明书

STM32开发板操作手册说明书
Resistance 100 Ω Platinum @0°C
Heavy Duty Surface Mount TC 26881
Strapon® RTD Sensors 22391, 22392 & 22393
–200°C to +760°C (–320°F to +1400°F) Leads to 480°C (900°F)
To illustrate these points Figure I shows a typical surface sensor installation. The sensor in this case is mounted on a pipe which is carrying a fluid. The point closest to the fluid where a sensor can be mounted practically is the outer wall of the pipe. If the fluid flow is adequate and the temperature fluctuations are not severe, the outer wall temperature will be very close to that of the fluid.
–200°C to +232°C (–320°F to +450°F) –200°C to260°C (–320°F to +500°F)
Thermocouple Types K, E, T or J* Grounded or Ungrounded
Resistance 100 Ω or 1000 Ω Platinum @0°C

STM32F107VCT6 微控制器用户手册说明书

STM32F107VCT6 微控制器用户手册说明书

Open107V用户手册目录1. 硬件介绍 (2)1.1.资源简介 (2)2. 例程分析 (4)2.1. 8Ios (4)2.2. ADC+DMA (4)2.3. ADC+DMA+KEYPAD (5)2.4. CAN- Normal (5)2.5. DAC (6)2.6. ETH_LwIP (6)2.7. GPIO LED JOYSTICK (7)2.8. I2C (7)2.9. LCD (8)2.10. OneWire (9)2.11. PS2 (9)2.12. RTC (9)2.13. FATFS V0.08A-SD Card (10)2.14. SL811 USB (10)2.15. AT45DB-SPI (11)2.16. TouchPanel (11)2.17. uCOSII2.91+UCGUI3.90A (12)2.18. USART (13)2.19. USB_Host_HID_KBrd_Mouse (13)2.20. USB_ Host_MSC(efsl) (13)2.21. USB_Host_MSC(FATFS) (14)2.22. USB-JoyStickMouse (15)2.23. USB-Mass_Storage-MCU Flash (15)2.24. VS1003B (16)3. 版本修订 (16)1.硬件介绍1.1. 资源简介[ 芯片简介 ]1.STM32F107VCT6STM32功能强大,下面仅列出STM32F107VCT6的核心资源参数:内核:Cortex-M3 32-bit RISC;工作频率:72MHz,1.25 DMIPS/MHz;工作电压:2-3.6V;封装:LQFP100;I/O口:80;存储资源:256kB Flash,64kB RAM;接口资源:3 x SPI,3 x USART,2 x UART,2 x I2S,2 x I2C;1 x Ethernet MAC,1 x USB OTG,2 x CAN;模数转换:2 x AD(12位,1us,分时16通道),[ 其它器件简介 ]3."5V DC"或"USB"供电选择开关切换到上面,选择5V DC供电;切换到下面,选择USB供电。

STM32主机使用说明书V2.2

STM32主机使用说明书V2.2

STM32主机使用说明书一、介绍纳英特STM32智能机器人平台采用ST公司的STM32103FVET6作为主控制器,内核采用了ARM公司Cortex M3存储容量大、运行速度快、外围接口丰富、稳定可靠,支持图形化及C语言编程,同时兼容原配件,是您进行竞赛、教学的理想选择。

二、布局三.操作3.1搭建根据需要搭建机器人整机,连接传感器与马达,连接马达等,具体搭建方法请参考相应的项目手册,如灭火、足球项目的不同方案。

3.2编程根据项目需要对机器人进行编程。

可使用图形化的积木式编程模式,也可以使用C语言模式,软件的使用方法请参阅《纳英特积木式编程系统使用说明书》。

3.3下载软件上编程完成,编译通过,要下载时先把数据线连接好,再开启电源,这时主机会自动进入下载模式,被电脑识别为一个U盘,然后在软件上点击下载即可。

注:下载过程其实是将软件编译好的可执行文件***.bin文件拷贝到主机的这个U盘中,可执行的文件名是8.3格式的短文件名,不支持中文。

当软件新建的项目名为中文名时,下载时软件会跳出一个另存为的对话框,以英文或数字命名存储到U 盘即可;当项目名为英文或数字时,生成的***.bin文件的文件名即为项目名。

3.4运行程序下载完后,会保存在主机的U盘中,可同时存多个程序。

运行时,选择所需要的运行的程序名称即可。

主机开机后,屏幕上显示4个菜单选项,可通过上下键选择。

第一项为“运行”,后面显示的是当前的程序文件名,如果要运行的程序就是当前显示的程序,直接按确认键即可;如果要运行的程序不是当前显示的程序,则进入“选择程序”一项,屏幕会显示U盘中所存在的每一个程序名,通过上下键选择要运行的程序按确认键返回到原来的界面,再选择“运行”,按确认键。

3.5调试观察机器人运行结果是否符合预期的要求,如不符合,可重复以上4个步骤反复调试,直到符合预期的要求。

三、测试和设置主机固件中包含一个硬件的测试和设置的程序,在开机后的界面中选择“测试设置”,按确认键进入,屏幕显示“测试程序”,“参数修改”,“蓝牙设置”,“系统信息”。

智嵌STM32F107网络互联开发板V3.0USB下载使用手册

智嵌STM32F107网络互联开发板V3.0USB下载使用手册

STM32F107网络互联开发板V3.0USB下载使用手册版本号:A拟制人:赵工时间:2013年7月1日目录1本文档编写目的 (3)2下载准备 (3)2.1硬件连接 (3)2.2软件配置 (3)3DFU文件的生成 (6)1本文档编写目的本使用手册是针对STM32F107网络互联开发板V2.2的USB下载程序而编写的。

2下载准备2.1硬件连接(1)用USB线将开发板和电脑连接。

(2)用跳线帽将J4(串口下载跳线)短接。

(3)用5V适配器(或用usb线)给开发板上电(参考TM32F107网络互联开发板V2.2硬件使用手册),如果上电正常,则可以看到电源指示灯D6亮。

2.2软件配置安装固件升级工具“um0412_DfuSe_Demo_V3.0”(第一次使用需要安装)。

安装好后,用mini USB线将开发板(J10)和电脑连接,并给开发板上电。

此时PC机右下角会提示“发现新硬件”:并弹出如下对话框:选择自动安装,如果自动安装失败,则可以选择“从列表或指定位置安装”,并选择软件的安装文件夹:C:\Program Files\STMicroelectronics\Software\DfuSe\Driver:然后点击“下一步”。

可能还会弹出如下对话框,选择前面安装软件的文件夹位置,如果是32位机,选中“Driver\x86\STTub30.sys”文件。

一般位于“C:\Program Files\STMicroelectronics\Software\DfuSe\Driver\x86”。

安装完成后,点击“完成”即可。

安装好后打开软件Flash loader demonstrator:打开后如下,选择“USB(DFU)”,点击“Next”:连接成功后,会出现如下界面:此时,点击“Choose”,选择所要下载的dfu文件后,再点击“Upgrade”即可下载。

下载成功后如下所示:3DFU文件的生成DFU文件可以由HEX文件直接生成,所以首先需要有目标文件HEX,关于HEX如何生成可以看keil使用相关文档,这里假定已经有了HEX文件。

DK-STM32F开发板用户手册

DK-STM32F开发板用户手册

DK-STM32F开发板⽤户⼿册UM0426User manualSTM3210B-EVALevaluation boardIntroductionThe STM3210B-EVAL is an evaluation board for STMicroelectronic’s ARM TM Cortex-M3 core-based STM32F10x 128K microcontrollers. It is designed as a complete development environment for the STM32F10x microcontrollers with full speed USB2.0, CAN2.0A/B compliant interface, two I2C channels, two SPI channels, three USART channels with smartcard support, internal 20KB SRAM and 128KB Flash, JTAG and SWD debugging. With a complete range of hardware evaluations features, the STM3210B-EVAL board is designed to help developers evaluate all device peripherals (such as USB, motor control, CAN, MicroSD card, smartcard, USART) and develop their own applications. Extension connectors make it possible to easily connect a daughter board or wrapping board for a specific application.This user manual provides information on using the STM3210B-EVAL board and its hardware features.Figure 1.STM32F10X 128K evaluation board (STM3210B-EVAL)October 2007 Rev 41/46/doc/986145873.htmlUM04262/46Features●Three 5V power supply options: power jack, USB connector or daughter board●Boot from user Flash, test Flash or SRAM●Audio play and record●64Mbyte MicroSD card●Type A and Type B smartcard support●8Mbyte serial Flash●I2C/SMBus compatible serial interface temperature sensor●Two RS232 communication channels with support for RTS/CTS handshake on one channel●IrDA transceiver●USB 2.0 full speed connection●CAN 2.0A/B compliant connection●Induction motor control connector●JTAG, SWD and trace tool support●240x320 TFT color LCD●Joystick with 4-direction control and selector●Reset, wakeup, tamper and user push buttons● 4 LEDs●RTC with backup battery●Extension connector for daughter board or wrapping boardOrder codeTo order the STM32F10x 128K evaluation board, use the order code STM3210B-EVAL. UM0426ContentsContents1Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.1LCD configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.2Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.3Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.4Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.5Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111.6Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111.7Serial flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111.8CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111.9RS232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121.10Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121.11Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.12MicroSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.13Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.14Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.15IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141.16USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141.17Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141.18Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162.1USB type B connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162.2CAN D-type 9-pin male connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . 162.3Analog input connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172.4Power supply connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172.5RS232 connector CN5 with RTS/CTS handshake support . . . . . . . . . . . 182.6RS232 connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182.7JTAG debugging connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.8Audio jack CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.9SWD debugging connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.10Trace debugging connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203/46Contents UM04264/462.11Daughter board extension connectors CN12 and CN13 . . . . . . . . . . . . . 21 2.12Motor control connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.13MicroSD connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.14Smartcard connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Appendix A STM3210B-EVAL IO assignments . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45UM0426Hardware layout and configuration 1 Hardware layout and configurationThe STM3210B-EVAL board is designed around a STM32F103VBT6 microcontroller in a100-pin LQFP package.The hardware block diagram Figure2 shows the connections between the STM32F10xmicrocontroller and peripherals (LCD, SPI Flash, USART, IrDA, USB, Audio, CAN bus, RTC,smartcard, MicroSD card and motor control).Figure3will help you locate these features on the evaluation board.5/46Hardware layout and configuration UM04266/46Figure 3.STM3210B-EVAL board layoutCN12Extension connectorCN5USART2U1STM32F103VBT6CN6USART1U11IrDACN1USBCN45V powerB1RESET B2WAKEUP CN16Smartcard B4T amper U18JoystickB3General purpose keyCN14Motor controlCN2CAN connectorCN9SWDCN10T raceCN7JT AGU17Color LCDCN8Audio jackRV1PotentiometerCN13Extension connectorCN15MicroSD cardUM0426Hardware layout and configuration7/46The following sections provide jumper settings for configuring your STM3210B-EVAL board and peripherals.Two types of jumpers are used on the STM3210B-EVAL board:●3-pin jumpers with two possible positions, for which the possible settings are presented in schematics in the following sections●2-pin jumpers with two possible settings: Fitted – the circuit is closed, and Not fitted – the circuit is open (see Figure 4.) Figure 4.Settings for two-pin jumpersconfigurationThe STM3210B-EVAL can be delivered with either one of two LCDs mounted on the MB542board, depending on the board version. These two LCDs look alike and operate in the same way, however they have different control circuits, and therefore require different software drivers. Y ou must ensure that the demonstration software pre-loaded in the flash memory of the microcontroller on the evaluation board supports the LCD that you have.If your STM3210B-EVAL product includes the MB542 board version B-01 or later , it is mounted with the LCD referenceAM240320L8TNQW-00H (from Ampire). The controller reference is ILI9320 (from ILITEK,/doc/986145873.html). The products that include this LCD have a label on the daughter board (to the left of the display) as shown in Figure5.Figure 5.LCD label on MB542 board version B-01 or laterNot fittedFittedHardware layout and configurationUM04268/46The demonstration software delivered with the evaluation boards that carry this label is STM3210B-EVAL_DEMO version 1.1 or later. It automatically detects which version of the LCD is mounted on the daughter board, and it supports both.If your STM3210B-EVAL product includes the MB542 board version B-00 or earlier , it is mounted with the LCD reference AM-240320LTNQW01H. The controller reference is HX8312-A (from Himax, /doc/986145873.html ). The products that include this LCD do not have a label on the component side of the daughter board as shown in Figure 6. The label is on the solder side, therefore not visible when the MB452 board is screwed onto the MB525 board.Figure 6.No LCD label on component side of MB542 board version B-00The demonstration software delivered with the evaluation boards that do not carry a visible label is STM3210B-EVAL_DEMO version 1.0 or earlier. This software only supports the LCD reference AM-240320LTNQW01H.Note:Y ou can download the latest version of the software demonstration from theSTmicroelectronics support site, /doc/986145873.html/mcu. The STM3210B-EVAL_DEMO software is included in the STM3210B-EVAL demonstration software user manual (UM0435)download file. STM3210B-EVAL_DEMO version 1.1 and later support both types of LCD.Table 1.LCD label on MB542 board version B-01 or laterLabel markingMeaningMB542B-0120743001LCD version B-01B PCB version B 01Version 0120743001Board IDUM0426Hardware layout and configuration9/461.2 Power supplyThe STM3210B-EVAL board is designed to be powered by 5V DC power supply and to beprotected by PolyZen U6 in case of incorrect power supply configuration. It is possible to configure the evaluation board to use any of the following sources for the power supply.●5V DC power adapter connected to CN4, the power supply jack labeled “PSU” (for Power Supply Unit) on the silkscreen ●5V DC power with 500mA limitation from CN1, the type-B USB connector on the evaluation board labeled “USB” on the silkscreen●5V DC power from both CN12 and CN13, the daughter board extension connectors labeled “DTB” (for Daughter Board) on the silkscreenThe power supply is configured by setting the related jumpers JP4, JP9 and JP11 as described in T able 2.The LED LD5 is lit when the STM3210B-EVAL board is powered correctly.Hardware layout and configuration UM042610/461.3 Boot optionThe STM3210B-EVAL board is able to boot from:●Embedded user Flash●System memory with boot loader for ISP ●Embedded SRAM for debuggingThe boot option is configured by setting the switches SW1 and SW2 as shown in Table 3.The two possible positions of these micro switches are shown in Figure 7.Figure 7.Switch positions1.4 Clock sourceTwo clock sources are available on the STM3210B-EVAL board for the STM32F10Xmicrocontroller and RTC.●X1, 32KHz crystal for embedded RTC●X2, 8MHz crystal with socket for the STM32F10X microcontroller. It can be removed from the socket when the internal RC clock is used.Table 3.Boot switchesSwitchBoot fromSwitch configurationSTM3210B-EVAL boots from user Flash when SW2 is set as shown to the right (default setting).In this configuration, the position of SW1 doesn’t affect the boot process.Boot 0 = 0, Boot 1 = XSTM3210B-EVAL boots from embedded SRAM when SW1 and SW2 are set as shown to the right. Boot 0 = 1, Boot 1 = 1 STM3210B-EVAL boots from system memory when SW1 and SW2 are set as shown to the right.Boot 0 = 1, Boot 1 = 01 <> 0Switch in position “1”Switch in position “0”1 <> 0S W 1B o o t 1S W 2B o o t 01 <> 0S W 1B o o t 1S W 2B o o t 01 <> 0S W 1B o o t 1S W 2B o o t 0UM0426Hardware layout and configuration11/461.5 Reset sourceThe reset signal of the STM3210B-EVAL board is active low and the reset sources include:●Reset button B1●Debugging tools from connector CN7, CN9 and CN10●Daughter board from CN131.6 AudioThe STM3210B-EVAL board supports both audio recording and playback. This can bedisabled or enabled by setting the jumpers JP6 and JP7. The audio volume can be adjusted using the potentiometer RV2, and the microphone amplifier gain can be adjusted using the potentiometer RV3.1.7 Serial flashA 64Mbit serial flash connected to SPI1 of the STM32F10X microcontroller shares the sameSPI port with the MicroSD card using a different chip select signal. Serial Flash Chip select is managed by the standard IO port PA4.1.8 CANThe STM3210B-EVAL board supports CAN 2.0A/B compliant CAN bus communication based on 3.3V CAN transceiver. The high-speed mode, standby mode and slope control mode are available and selected by setting JP2.Table 4.Reset jumperDescriptionJP10Enables reset of the STM32F10X microcontroller embedded JT AG T AP controllereach time a system reset occurs. JP10 connects the TRST signal from the JT AG connection with the system reset signal RESET#.Default setting: Not fittedTable 5.Audio jumpersJumper DescriptionJP6Audio power amplifier TS4871 is forced into standby mode when JP6 is not fitted. Default setting: FittedJP7Microphone pre-amplifier MAX4061 is forced into shutdown mode when JP7 is fitted. Default setting: Not fittedHardware layout and configurationUM042612/461.9 RS232Two Type D 9-pin connectors, CN6 (USART1) and CN5 (USART2) are available on the STM3210B-EVAL board. The USART1 connector is connected to the RS232 transceiver U10, and the USART2 connector with RTS/CTS handshake signal support is connected to the RS232 transceiver U9.1.10 Motor controlThe STM3210B-EVAL board supports induction motor control via a 34-pin connector, CN14,which provides all required control and feedback signals to and from a motor power-drive board. Available signals on this connector include emergency stop, motor speed, 3-phase motor current, bus voltage, heatsink temperature coming from the motor drive board and 6 channels of PWM control signals going to the motor drive circuit.Special motor current sampling operation is enabled by setting jumper JP8.Table 7.Motor control jumpersJumperDescriptionJP8Enables special motor current sampling operation when JP8 is fitted (PD2 connected to PB0). The IO pins PD2 and PB0 are disconnected and can be used by the daughter board when JP8 is not fitted.Default setting: FittedJP12JP12 must be open when the digital encoder signal comes from pin31 of CN14. It must be closed when an analog signal comes from pin31 of CN14.Default setting: Not fitted (open)UM0426Hardware layout and configuration13/461.11 SmartcardThe STMicroelectronics smartcard interface device ST8024 is used on the STM3210B-EVAL board for asynchronous 3V and 5V smartcards. It performs all supply protection and control functions based on the connections with the STM32F10X microcontroller, which are listed in Table 8.An example of smartcard is provided with the board called GSM file system sample . With this board, you can play basic commands, select a file and do simple read/write operations to become familiar with this interface and the ISO/IEC 7816-3 protocol.1.12 MicroSD cardThe 64Mbyte or 128Mbyte MicroSD card, which is connected to SPI1 of the STM32F10xmicrocontroller (shared with serial Flash), is available on the board. The MicroSD card chip selection is managed by the standard IO port PC12.1.13 Temperature sensorOne I 2C interface temperature sensor STLM75 (–55°C to +125°C), which is connected toI 2C1 of the STM32F10x microcontroller, is available on the board. Two discrete N-channel enhancement MOS-FETs are used to demonstrate how different voltage level devices can be connected to the same I 2C bus.1.14 Analog inputOne BNC connector, CN3, is connected to PC1, the ADC channel 11 of the STM32F10xmicrocontroller as an external analog input.Table 8.Connection between ST8024 and STM32F10XST8024 signals DescriptionConnect to STM32F10X5V/3V Smartcard power supply selection pin PD11I/OUC MCU data I/O linePB10XT AL1Crystal or external clock inputPB12OFF Detect presence of a card, Interrupt to MCU PE14RSTIN Card reset input from MCUPB11CMDVCCStart activation sequence input (active low)PE7Hardware layout and configuration UM042614/461.15 IrDAIrDA communication is supported by the IrDA transceiver U11, which is connected to USART3 of the STM32F10x microcontroller. It can be enabled or disabled by setting the jumper JP5.1.16 USBThe STM3210B-EVAL board supports USB2.0 compliant full-speed communication via a USB type B connector (CN1). The evaluation board can be powered by this USB connection at 5V DC with a 500mA current limitation. USB disconnect simulation can be implemented by disconnecting a 1.5K pull-up register from the USB+ line. The USB disconnect simulation feature is enabled by setting JP1.1.17 Development and debug supportThe following debug connectors are available on the STM3210B-EVAL board:●CN7, an industry standard 20-pin JTAG interface connector for connection of debugging/programming tools for ARM7 and ARM9 core-based devices.●CN9, a 10-pin SWD debug connector that supports the new Serial Wire Debug feature of ARM Cortex-M3 devices.●CN10, a 20-pin connector for legacy and future JTAG tools that are compliant with ARM CoreSight.Table 9.IrDA jumpersJumper DescriptionJP5Enables/disables the IrDA transceiver. IrDA is enabled when JP5 is fitted, and disabled when JP5 is not fitted.Default setting: FittedUM0426Hardware layout and configuration15/461.18 Display and input devicesThe 240x320 TFT color LCD (U17) and 4 general purpose LEDs (LD1, 2, 3, 4) are available as display devices. A 4-direction joystick with selection key, general purpose pushbutton (B3), wakeup button (B2) and tamper detection button (B4) are available as input devices.The STM3210B-EVAL board also supports a second optional 122x32 graphic LCD that can be mounted on the U19 connector. The graphic LCD is not provided.Table 11.LCD modulesGraphic LCD U17 (default)Character LCD U19 (optional)Pin on U17Description Pin connectionPin on U19DescriptionPin connection1CS PB21Vss GND 2SCL PB132Vcc +3.3V 3SDI PB153VO -4RS PD74CLK PB135WR PD155SID PB156RD GND 6CS PB27SDO PB147A +5V 8RESET#RESET#8KGND9VDD +3V310VCI +3V311GND GND 12GND GND 13BL_VDD +3V314BL_Control PA815BL_GND GND 16BL_GNDGNDConnectors UM0426 2 Connectors2.1 USB type B connector CN1Figure /doc/986145873.htmlB type B connector CN1 (front view)Table 12. USB type B connector (CN1)Pin number Description Pin number Description1VBUS(power)4GND2DM5, 6Shield3DP2.2 CAN D-type 9-pin male connector CN2Figure 9.CAN D-type 9-pin male connector CN2 (front view)Table 13.CAN D-type 9-pin male connector (CN2)Pin number Description Pin number Description1, 4, 8, 9NC7CANH2CANL3,5,6GND16/46UM0426Connectors17/462.3 Analog input connector CN3Figure 10.Analog input connector CN3 (top view)2.4 Power supply connector CN4The STM3210B-EVAL board can be powered from a DC 5V power supply via the external power supply jack (CN4) shown in Figure 11. The central pin of CN4 must be positive.Figure 11.Power supply connector CN4 (front view)Table 14.Analog input connector CN3Pin numberDescription Pin numberDescription1GND 4GND2GND 5Analog input/PC13GND1453 2DC +5VGNDConnectors UM0426 2.5 RS232 connector CN5 with RTS/CTS handshake support Figure 12.RS232 connector CN5 with RTS/CTS handshake support (front view)Table 15.RS232 connector CN5 with full modem control supportPin number Description Pin number Description1NC6Connect to Pin 42USART2_RXD7USART2_RTS3USART2_TXD8USART2_CTS4Connect to Pin 6 9NC5GND2.6 RS232 connector CN6Figure 13.RS232 connector CN6 (front view)Table 16.RS232 connector CN6Pin number Description Pin number Description1NC6Connect to Pin 42USART1_RXD7Connect to Pin 83USART1_TXD8Connect to Pin 74Connect to Pin 69NC5GND18/46UM0426Connectors 2.7 JTAG debugging connector CN7Table 17.JTAG debugging connectorPin number Description Pin number Description1 3.3V power2 3.3V power3TRST4GND5TDI6GND7TMS8GND9TCK10GND11RTCK12GND13TDO14GND15RESET#16GND17DBGRQ18GND19DBGACK20GND2.8 Audio jack CN8A 3.5mm mono audio jack CN8 is available on the STM3210B-EVAL board. The speaker U12 is bypassed when earphones are plugged into CN8.2.9 SWD debugging connector CN919/46。

STM32F107实现网络通讯报告

STM32F107实现网络通讯报告

STM32F107实现网络通讯报告目录第1章:STM32F107硬件 (2)1.1 硬件概述 (2)1.2 以太网功能描述: SMI, MII and RMII (4)1.2.1 Station management interface站管理接口: SMI (5)1.2.2 SMI帧格式 (6)1.2.3 SMI写操作 (6)1.2.4 SMI读操作 (7)1.2.5 SMI时钟选择 (7)1.3 介质无关接口(MII) (8)1.4 精简MII: RMII (8)1.4.1 RMII时钟资源 (9)1.5 MII/RMII 选择 (9)1.6 MII/RMII外部时钟方案 (9)1.6 以太网功能描述: MAC 802.3 (10)1.7 MAC 802.3 帧格式 (11)1.8 MAC帧传递 (11)第2章:LwIP部分 (13)2.1 LwIP与操作系统 (13)2.1 LwIP与应用程序 (13)2.3 LwIP与底层网络 (16)2.3.1 LwlP的初始化 (16)2.3.2.抽象层网络设备的初始化 (17)2.3.3 以太网控制器的初始化 (18)2.4用LwIP实现简单WEB服务器应用实例 (19)2.4.1使用LwIP API函数实现 (19)2.4.2使用协议栈直接接口 (22)第1章:STM32F107硬件1.1 硬件概述STM32F107所具备的硬件设备如下图所示:图1.1:stm32F107外围设备清单硬件连接框图如下图所示,标识部分为与以太网连接相关硬件部分,主要包括以太网MAC (Medium Access Control介质访问控制),DMA Ethernet以及CRC计算单元。

图1.2:STM32F107内部结构图与以太网相关的最重要的硬件是MAC及其专用DMA。

STM32F107xx提供支持I EEE-802.3-2002的介质访问控制器用于以太局域网通信,通过一个工业标准的介质无关接口(MII)或者是精简的介质无关接口(RMII)。

STM32F107中国版用户手册

STM32F107中国版用户手册

μC/Eval-STM32F107开发板中国版用户指南μC/Eval-STM32F107评估板(中国版)是一个完整的开发平台,采用了基于ARM Cortex-M3核的ST微处理器。

包含全速USB OTG,以太网MAC,两个CAN2.0A/B兼容接口,两个I2S接口,两个I2C接口,五个USART接口并支持智能卡,三个SPI接口,内部带有64KB SRAM和256KB flash,支持JTAG调试。

板上的硬件可以帮助你评估所有的外设(USB OTG,FS,以太网,CAN总线,SD/MMC卡,USART,温度传感器等)和开发自己的应用程序。

扩展排针和原型区可以帮助用户轻松的在板上添加自己的硬件接口,实现特定应用。

图1-1显示了μC/Eval-STM32F107的图片。

图1-1 μC/Eval-STM32F107 评估板1-1 特性μC/Eval-STM32F107提供以下特性:■72 MHz的STM32F107,基于Cortex-M3的微控制器:■256字节的闪存。

■64 KB的SRAM。

■10/100以太网接口。

■全速USB-OTG连接器。

■RS-232C接口。

■CAN接口连接排针。

■SD/MMC卡插槽。

■STLM75温度传感器。

■3个LED(红,黄,绿)。

■复位按钮。

■IO端口连接器(排针)。

■原型区。

■JTAG调试接口。

■USB接口供电。

■WiFi模块EMW3280接口。

■符合RoHS。

1-2 硬件的布局和配置μC/Eval-STM32F107评估板基于STM32F107VCT芯片的100引脚TQFP封装设计。

图1-2将帮助您在评估板找到对应的功能模块。

图1-2 μCEval-STM32F107开发板布局1-3 电源在μC-EVAL-STM32F107评估板由一个5V直流电源供电。

板子可以使用两种电源:■5V直流电源适配器连接到CN10,主板上的电源螺丝端子。

■500毫安的5V VBUS通过CN5,B型mini USB接口获取。

STM32F107网络互联开发板V3.0硬件使用手册

STM32F107网络互联开发板V3.0硬件使用手册

北京智嵌物联网电子技术有限公司技术支持QQ:498034132ISTM32F107网络互联开发板V3.0硬件使用手册版本号:A拟制人:赵工时间:2013年7月1日目录1本文档编写目的 (1)2硬件接口说明 (1)3核心硬件电路说明 (2)3.1电源电路 (2)3.2按键与LED电路 (3)3.3JTAG下载电路 (4)3.4外扩存储电路 (5)3.5RS232通讯电路 (5)3.6RS485通讯电路 (6)3.7CAN通讯电路 (6)3.8USB电路 (6)3.9DS18B20电路 (7)3.10以太网接口电路 (7)3.112.4G无线接口 (8)4使用注意事项 (9)1本文档编写目的本使用手册是针对STM32F107网络互联开发板V2.2的硬件而编写的,包括硬件接口说明、核心硬件电路说明、使用注意事项等内容。

2硬件接口说明该开发板的硬件结构如图1所示:图1硬件结构框图开发板实物接口如图2所示:图2开发板硬件接口(注意:DS18B20的安装方向!有什么疑问及时与我们技术联系。

)DS18B20安装方式3核心硬件电路说明3.1电源电路开发板供电方式有两种:5V电源适配器供电和USB供电。

(1)5V适配器供电直接将5V适配器插在J6上即可为板子供电,电路如图3所示:图35V适配器供电接口电路(2)USB供电将MINI USB插在J10上,并将J2用跳线短接。

电路参考图11。

(3)5V转3.3V电路不论板子采用哪种供电方式,最终会将该5V电源转为3.3V为系统供电。

5V转3.3V电路如图4所示:图45V转3.3V电路由上图可以看出,D6为5V电源指示灯,R11为限流电阻,为增加灯的亮度可以取2.2K。

5V电源经过10uf电容C138滤波后进入SPX1117-3.3,该芯片是稳压芯片,输出3.3V,再经过10UF电容C3滤波后供后级电路使用。

3.2按键与LED电路开发板扩展了4个按键和4个LED指示灯。

如何使用开发板

如何使用开发板

注意拿到开发板请看开发板的右下角,有型号的标注。

V2.2、V2.2C 和V3.0,这三款板子的下载电路是一样的。

下面的图片拿V3.0的作为示例,操作方式一致。

当我们拿到普中科技开发板的时候,如何使用呢?下面我们将带领大家一步一步的操作:第一步:首先拿出我们的开发板,开发板整机如图1所示:图1开发板整机第二步:我们在给单片机下载程序的时候,需要做一些准备事项。

1、打开开发板的时候,请首先看下板子的相关的配件。

我们需要用到的是USB的数据线,配的其余配件在相关的实验需要用到:如图2所示:图2Mini USB数据线2、把Mini USB连接到单片机开发板上。

如图3所示:图3USB数据线连接单片机开发板3、我们下载的时候,单片机开发板上需要做一些跳线帽的设置。

如图4上标记的红色框框所示。

图4跳线帽功能设置B线链接到开发板上2.电源的跳线帽短接到右边5V处。

若是想用3.3V的,跳线帽可以短接到左边,注意单片机可能不能正常工作。

3.在使用51单片机的时候,跳线帽短接到右边。

若使用ARM模块的时候,则短接到左边(板子上有51和ARM的标注)。

4.单片机工作和下载需要把晶振接上。

5.在用到USB线下载的时候,这两个跳线帽需要短接到左边。

若是使用9针串口的,请短接到右边(9针串口下载,不能使用普中的,只能使用官方STC-ISP)。

6.复位按键。

跳线帽短接到下面,高电平处。

若是使用avr单片机的,需要短接到上面低电平出。

(开发板有标记H和L)。

7.单片机安装上。

注意,单片机安装时候,要注意缺口朝上。

若安装反了,则会短路烧毁板子。

第三步:打开我们板子的开关电源按钮:如图5所示。

图5开发板工作状态注意:若是打开开关按钮无反应,请自行检查跳线帽是否正确,看回上一个步骤。

第四步:这个时候我们板子的配置已完成。

现在我们需要安装开发板ch340的驱动,安装驱动成功才能下载程序。

打开我们光盘。

光盘资料\步骤2安装单片机开发相关软件\开发板USB转串口CH340驱动。

金龙107开发板用户手册(User Manual)

金龙107开发板用户手册(User Manual)

深圳市旺宝电子科技有限公司
11
论坛:
深圳市旺宝电子科技有限公司
论坛:
这里 download from file 选择要下载的文件,并且选择全片擦除,或擦除需要 的块,其他可默认,然后 next 下载 成功后
深圳市旺宝电子科技有限公司 14 论坛:
深圳市旺宝电子科技有限公司
论坛:
0x08003000,因为程序定义的地址是这个,更改地址时需要注意向量表等等的设 置,选择我们编译好的.hex 文件, 点击产生,将生产我们需要的 dfu 文件,可退出软了, .hex 文件生产可用以下方法
开发板没设置正确, 当出现以下界面,则完成
深圳市旺宝电子科技有限公司
10
论坛:
深圳市旺宝电子科技有限公司
论坛:
如果出不来,此时只能用串口 2 下载了,设置跳线 JP3 为 2-3,然后插上 usb 线到 USB-1,然后关闭软件,并重新打开,然后按复 位键(必须的)按软件的 next,将会出现上面的界面,然后点 next 下一步,一 直下一步到如下界面
深圳市旺宝电子科技有限公司
13
论坛:bbs.opΒιβλιοθήκη
深圳市旺宝电子科技有限公司
论坛:
设备管理器出现了 stm device in dfu mode,证明安装成功 (我们是默认进入 DFU 模式的,可查看)
深圳市旺宝电子科技有限公司
论坛:
旺宝-金龙 107 开发板 用户手册
深圳市旺宝电子科技有限公司
1
论坛:
深圳市旺宝电子科技有限公司
论坛:
1.2.开发板板载资源
STM32F107VCT6,ARM Cortex-M3 内核,主频 72MHz,内部含有 256K 字 节的 FLASH 和 64K 字节的 SRAM 1 个 10M/100M 以太网接口,标准 RJ45 接口,支持平行交叉网线自适应 1 个 USB 2.0 OTG 全速接口, 可以作为 USB SLAVE, 也可以作为 USB HOST 1 个标准的 3.2/4.3/5/7 寸 TFT LCD 接口,带触摸功能 1 个 I2S 音频解码芯片 WM8978,支持 MP3 软解,高品质音乐播放 1 个 FM 收音机芯片 TEA5767 2 个耳机接口 1 个 SD 卡接口 1 个 2.4G 无线通信模块接口 1 个红外接收头 1 个摄像头接口,选配 OV7670 模块 1 个温度传感器接口,选配 DS18B20 2 个 CAN 总线接口 1 个 RS485 接口 1 个 RS232 串口,DB9 母头 1 个 USB 转串口芯片 PL2303,笔记本使用更加方便 1 个 SPI FLASH 芯片,W25Q16,存储字库更加方便 1 个 IIC 接口的 EEPROM 芯片,24C02,容量 2K 1 个小喇叭 1 个复位按钮,控制整板硬件复位 4 个功能按钮,其中包括 WAKEUP 唤醒功能和 TEMPER 入侵功能 1 个五向按键 1 个电源指示灯,LD2,红色 4 个用户状态指示灯,LD1,LD3,LD4,LD5 红色 2 个启动模式选择配置端口 1 个 RTC 实时时钟后备电池座
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

志峰物联公司版权所有技术支持QQ:498034132I
STM32F107网络互联开发板V2.2硬件使用手册
版本号:A
拟制人:赵志峰
时间:2013年7月1

目录
1本文档编写目的 (1)
2硬件接口说明 (1)
3核心硬件电路说明 (2)
3.1电源电路 (2)
3.2按键与LED电路 (3)
3.3JTAG下载电路 (4)
3.4外扩存储电路 (5)
3.5RS232通讯电路 (5)
3.6RS485通讯电路 (6)
3.7CAN通讯电路 (6)
3.8USB电路 (6)
3.9DS18B20电路 (7)
3.10以太网接口电路 (8)
3.112.4G无线接口 (8)
4使用注意事项 (8)
1本文档编写目的
本使用手册是针对STM32F107网络互联开发板V2.2的硬件而编写的,包括硬件接口说明、核心硬件电路说明、使用注意事项等内容。

2硬件接口说明
该开发板的硬件结构如图1所示:
STM32F107VCT6
LED
USB OTG
USB HOST
DS18B20
图1硬件结构框图
开发板实物接口如图2所示:
CAN2_L
CAN2_H
CAN1_L
CAN1_H
RS232RS485_B
RS485_A
2.4G
USB USB
OTG USB 5V
DS18B20JTAG
CAN1
图2开发板硬件接口
注意:DS18B20的安装方向:
DS18B20安装方式
3核心硬件电路说明
3.1电源电路
开发板供电方式有两种:5V电源适配器供电和USB供电。

(1)5V适配器供电
直接将5V适配器插在J6上即可为板子供电,电路如图3所示:
图35V适配器供电接口电路
(2)USB供电
将MINI USB插在J10上,并将J2用跳线短接。

电路参考图11。

(3)5V转3.3V电路
不论板子采用哪种供电方式,最终会将该5V电源转为3.3V为系统供电。

5V转3.3V电路如图4所示:
图45V转3.3V电路
由上图可以看出,D6为5V电源指示灯,R11为限流电阻,为增加灯的亮度可以取2.2K。

5V 电源经过10uf电容C138滤波后进入SPX1117-3.3,该芯片是稳压芯片,输出3.3V,再经过10UF电容C3滤波后供后级电路使用。

3.2按键与LED电路
开发板扩展了4个按键和4个LED指示灯。

如图5所示:
图5LED和按键电路
由上图可知,4个LED分别用PE2/PE3/PE4/PE5控制,IO输出低电平时相应LED点亮,输出高电平时,LED熄灭;4个按键是通过PC6/PC7/PC8/PC9来读取,按键松开时读到的电平为高电平,按键按下时读到的电平为低电平。

其中,电容C4/C14/C15/C26的作用为按键消抖滤波。

3.3JTAG下载电路
图6JTAG下载电路
JTAG信号分别都经过了上拉或下拉处理,下载程序稳定可靠。

3.4外扩存储电路
开发板外扩了EEPROM和FLASH,电路如图7所示
图7存储电路
由上图可以看出,EEPROM芯片是AT24C02,STM32F107通过I2C协议与之通讯,注意,由于CAN2也使用了PB6引脚,故AT24C02和CAN2要分时工作。

FLASH芯片为SST25VF080B(实际焊接),共有8Mbit。

单片机通过SPI与之通讯。

3.5RS232通讯电路
板子扩展了2路RS232,如图8所示:
图8RS232电平转换电路
由上图可以看出,DB9使用的是单片机的PD5/PD6,即USART2。

另一路(即单片机的USART5)
是通过扩展端子引出来的,这两个端子定义参考电路原理图。

串口转换芯片采用的是SP3232,3.3V供电。

3.6RS485通讯电路
电路如图9所示:
图9RS485通讯电路
由上图可以看出,RS485是通过单片机的USART1控制的,其中,方向控制用的是PD4,转换芯片实际焊接的是MAX485ESA(进口芯片,非国产几毛钱的那种)。

RS485_A通过10K的电阻上拉,RS485_B通过10K的电阻下拉,这样在上电或不传输数据时能保证RS485总线处于确定状态。

R68为RS485终端电阻,J8为终端电阻选择跳线。

关于终端电阻是否要接入总线,请参考相关文档。

3.7CAN通讯电路
CAN1通讯电路如图10所示:
图10CAN1电路
由上图可以看出,CAN的斜率电阻为22K,总线上串入了10欧的电阻以限流保护CAN芯片,R73为终端电阻,J9为终端电阻选择跳线。

CAN2的电路和CAN1类似。

3.8USB电路
电路如图11所示:
图11USB电路
由上图可以看出,PC4通过控制三极管S8050和MOS管SI2302(实际焊接),来控制VBUS。

OTG 接口再配合J2可以为开发板供电。

J3为USB host接口,扩展出这个接口主要是为了便于接U盘等设备(不再需要通过USB线转接了)。

3.9DS18B20电路
电路如图12所示:
图12DS18B20电路
DS18B20的数据口通过单片机的PD14控制,R37为总线上拉电阻。

3.10以太网接口电路
如图13所示:
图13以太网接口
由上图可以看出,单片机和DP83848的接口方式RMII。

RJ45采用的是HR911105A,其内置网络变压器和指示灯。

3.11 2.4G无线接口
开发板扩展了2.4G无线模块nRF24L01接口,单片机通过SPI3与之通讯,电路原理图如图14所示。

图14nRF24L01接口电路
安装方式如图15所示:
图15nRF24L01的安装方式
4使用注意事项
1、开发板的供电
STM32F107网络互联开发板V2.2硬件使用手册A
志峰物联公司版权所有技术支持QQ:498034132第9页共9页虽然SPX1117-3.3支持输入电压在4.8~12V ,但是给板子供电电压不要超过5.5V ,因为RS485/CAN 收发芯片的电源电压要求是4.75~5.5V 。

2、网络接口
开发板和电脑相连使用交叉网线,和交换机或路由器相连用直通网线,切记不要接错,以免损坏设备。

3、DS18B20接口
不要把DS18B20安装错了,否则会损坏器件。

4、不要用手或其他导体碰触电路板上的芯片,不要带电接线。

----------以下无正文。

相关文档
最新文档