STM32V100评估板用户手册

合集下载

河里基地STM32评估板用户手册说明书

河里基地STM32评估板用户手册说明书

User ManualRIVERDI STM32 Evaluation BoardRev. 1.4 2021-06-02R i v e r d i E v a l u a t i o n B o a r d U s e r M a n u a lREVISION RECORDREVNO. REVDATE CONTENTS REMARKS1.0 2020-08-17 Initial Release1.1 2020-11-06 CPU information updated1.2 2021-03-09 Pictures updated1.3 2021-03-31 Document adjusted into standard template1.4 2021-06-02 Corrections on description related to jumper P7,P8,P9CONTENTSREVISION RECORD (2)Target readers (4)Overview (4)Introduction (5)Board functionality test (5)Interfacing with EVE Displays (6)Using the SPI on the STM32 (10)Hardware features (11)7.2.1 Internal (11)7.2.2 External (12)Additional literature (14)Warranty limitation (14)Legal information (14)Appendix (15)Target readersThe aim of this document is to enable engineers using Riverdi STM32 Evaluation Board to get the tested Riverdi display running fast and easily. Further tests and development can be carried out shortly after Riverdi STM32 Evaluation Board is switched on for the first time.OverviewThe Riverdi evaluation board is designed as a complete demonstration and development platform for Riverdi’s EVE and IPS displays lines driver technology.The Riverdi evaluation board features an STM32F469II Cortex-M4 microcontroller with: LCD parallel interface including 8080/6800 modes, an LCD-TFT controller, Chrom-ART Accelerator™ for enhanced graphic content creation (DMA2D), secure digital input/output interface (SDIO), LTDC signals available on header P11 with additional MCU pins broken out on P12, external SDRAM, MicroSD slot for data/media storage, RiBUS FFC conn P3 featuring SPI, UART and LCD supply pins (SPI can be controlled by either STM32 or UBS serial bridge via jumper on P7/8/9) and configurable display backlight supply (EXT/INT).IntroductionRiverdi STM32 Evaluation Board is a tool designed to help get you started on working with Riverdi products. It not only supports EVE modules but also RGB displays (in combination with touch panels) by Riverdi.You have two primary options to drive external displays:1.Jumper between P7 & P8: FTDI serial/SPI bridge connected to RiBUS SPI:Use the FT232 serial to SPI bridge by connecting a micro USB cable to the connector labeled “Direct USB” and using the EVE Screen Editor to quickly generate graphical user interfaces with minimum effort .2.Jumper between P9 & P8: STM32 connected to RiBUS SPI:Use the onboard STM32F4 to develop and test firmware for driving a connected display or display controller, like the FT80x, FT81x and BT81x series.Board functionality testThere are firmware examples with which you can test your Riverdi STM32 Evaluation Board. You can also use those as a starting point for your own firmware development.Interfacing with EVE DisplaysUsing the FTDI SPI Bridge & EVE Screen EditorPrerequisites:•Riverdi STM32 Evaluation Board•EVE-enabled display•RiBUS flexible flat cable (FFC)EVE Screen Editor InstallationDownload and install the EVE screen Editor from the FTDI homepage:https:///Support/Utilities.htm#EVEScreenEditorSetup & ConfigurationTo connect the FTDI SPI bridge to the EVE display, the configuration jumpers need to be placed between P7 and P8, as in the picture below.Set the backlight jumper (placed over the backlight power configuration pins) to 5V BL on P4 (also refer to the picture below). Please see description on how to connect power for backlight in section “Hardware features”, subsection “Backlight power supply”.Start EVE Screen Editor and you will be greeted with the screen similar to the one below:On the lower right hand side of the window, click on the ”Devices” tab.On the lower left hand side, you will find 3 buttons:This button refreshes the devices list above it;This button opens a menu to select one from the preconfigured displays list;This button opens a menu to define your own display to be driven.Use a USB cable to connect the “USB Direct” port to your computer, when running the EVE Screen E ditor application. Click the “Refresh” button afterwards and your dev board should show up like in the picture below:Select "Single RS232-HS ()” entry by clicking on it and use the ‘Connect’ button to let EVE Screen Editor try and boot up your display.If everything works properly, your display should show a blue screen with some text.Hello WorldAfter connecting to Eval Board, to generate its first text message (e. g. 'Hello World'), we are going to use the EVE Screen Editor’s built-in drag & drop editor.(The drag operation is shown in green, the generated coprocessor commands are shown in the yellow box and the button to send the data to the EVE display is seen inside the red box.)What you see now is the preview of what will be drawn on the physical screen in a moment. Note that in the lower part of the window the coprocessor tab shows which EVE pre-processor commands were generated and will be sent to the EVE display shortly after.To send the commands also drawn in the preview pan to the physical display, press the button labeled “Upload RAM_G and RAM_DL”.Using the SPI on the STM32Prerequisites•Riverdi STM32 Evaluation Board•EVE enabled display•RiBUS flexible flat cable (FFC)•Your favorite tool to flash the onboard STM32 (assuming that you use STM32CubeProgrammer together with an STLink v2 compatible ISP Programmer)InstallationUse the provided source code or the pre-compiled binary file.ConfigurationIn order to connect the STM32 to the EVE display, the configuration jumpers need to be placed between P9 and P8. Check the jumper and the USB cable position (in ‘STM32 USB’ socket) in the picture below.Hardware featuresModule power supplyPossible to deliver from one of 2 USB ports on Eval Board (“Direct USB” or “STM32 USB”), in accordance with USB standard (5.0 VDC max.)Backlight power supply7.2.1InternalFor display sizes from 3.5” to 5.0”, the USB port gives enough power to get adequate backlight level. Such backlight power supply configuration (jumper is in higher position, connects BL to 5V on P4) is shown in the picture below.For 7.0” displays, USB minimal power capability needs to be 700mA @ 5V (this is a combined power of Eval Board, BT817Q board and backlight). Please make sure your USB source has enough current efficiency. If not, use external 5V power source in the way described in point 6.2.2.7.2.2ExternalAll the 10.1” (and rarely certain 7.0” displays) require external power supply for backlight, as the backlight voltage exceeds 5V and power consumption is over the USB standard. To provide adequate backlight power, set the jumper in P4 to lower position (it connects BL to EXT) – it must be placed in lower position and connect the external DC voltage source to neighboring connector (“BL PWR”). Refer to the picture and below.Caution! There is no reverse polarity protection on EXT_BL_PWR, incorrect connection will damage the backlight permanently. Proceed carefully.EVE4 BT817Q TFT series backlight power requirement summary:Display size Internal (from USB) External3.5”OK 3.3V-6.0V (optional)4.3”OK 3.3V-6.0V (optional)5.0”OK 3.3V-6.0V (optional)7.0”Ok, if USB has 700mA min. efficiency 3.3V-6.0V (optional)You can find exact currents for specific TFT in datasheet:https:///product-category/intelligent-displays/bt817q/MicrocontrollerSTM32F469II, Arm Cortex-M4 MCU @ up to 180MHzExternal SDRAMIS42S16400J, 64Mbit/WW/pdf/42-45S16400J.pdfFTDI serial to SPI bridgehttps:///Support/Documents/DataSheets/ICs/DS_FT232H.pdfMicroSD slotWhen functional microSD card is placed in this slot, after being formatted in FAT32 format, microSD card’s memory space can be used by microcontroller as the regular filesystem.RiBUS FFC-connectorSupport for FT80x, FT81x, BT81x (max SPI speed = 30MHz),https:///download/5318/FTDI app note AN312 contains c headers and example code for FT800User LEDs: 2 pcsThey can be configured by the user, from program level.Power LED indicating power to FTDI "Direct USB”FTDI input powers both rails.Power LED indicating power to STM32 "STM32 USB"STM32 powers its own rail only.User Buttons: 2 pcsThese may be used in future, they are not used now.Serial RGB bus headerPlease refer to Application Note: ST AN4861 (LCD-TFT display controller (LTDC) on STM32 MCUs).Additional literatureAll the below sources contain the data of four BT815/816 (EVE3) and BT817/BT818 (EVE4) ICsBT81x, General:https:///bt81x/BT81x, Datasheets:https:///wp-content/uploads/Support/Documentation/Datasheets/ICs/EVE/DS_BT81X.pdfBT81x, Programming guides:https:///wp-content/uploads/Support/Documentation/Programming_Guides/ICs/EVE/BRT_AN_033_BT81X_Serie s_Programming_Guide.pdfWarranty limitationEnd user is instructed how to connect external power sources to the unit, which brings the potential threats to the Eval Board and display. Riverdi cannot be held responsible for actions beyond its control and consequently the warranty DOES NOT cover the effects of reversed power supply polarity on backlight terminals. Refer to clause in red color in section 6.2.2 of this documentLegal informationThis document has been issued with professional care. Riverdi did their best to avoid any errors, but we do not grant full warrant it is 100% errors free. Please contact Riverdi if you find any mistakes or when you think some important information is missing in this Manual.It can be updated or altered without any written notice. Riverdi cannot be held responsible for not announcing any changes or issuing next revisions or versions of this document.AppendixHardware Pinouts# Pin Description MCU Peripheral25 PF7 User Led 1 (left) GPIO Output26 PF8 User Led 2 (right) GPIO Output53 PA7 User Button 1 GPIO Input (enable pull-up)50 PA4 User Button 2 GPIO Input (enable pull-up) 130 PH15 uSD Detect (hi: uSD present) GPIO Input (enable pull-up)40 PA0 STL_TX (UART) UART4 TX41 PA1 STL_RX (UART) UART4 RX95 PB15 R_MOSI (SPI2) SPI2 MOSI94 PB14 R_MISO SPI2 MISO93 PB13 R_CLK SPI2 SCK92 PB12 R_CS SPI2 NSS86 PH9 R_INT GPIO Input84 PH10 R_RST GPIO Output5 MOSI / IO.0 PI MISO Signal / QSPI data line 06 CS SPI Chip Select Signal7 INT Interrupt Signal (Out to MCU)8 RST / PD Reset / Power Down Signal9 - 14 NC NC15 RX UART RX / I2C16 TX UART TX / I2C17 BLVDD Backlight Power Supply, 5V18 BLVDD Backlight Power Supply, 5V19 BLGND Backlight Ground (GND on display)20 BLGND Backlight Ground (GND on display)GND 1 2 3.3V VCCMOSI 3 4 SCKnCS 5 6 MISOnRST 7 8 nINTNC 9 10 NCNC 11 12 NCNC 13 14 NCTX 15 16 RX5V Backlight 17 18 5V BacklightGND 19 20 GND。

STM32马达控制套件评估板技术手册(第二版)

STM32马达控制套件评估板技术手册(第二版)

STM32马达控制套件评估板技术手册(第二版)STM32 是基于ARM Cortex-M3内核的32位微控制器,其强大的内核及其丰富的外设使其在无刷马达控制应用领域得到了广泛的使用。

为了使用户能快速地基于STM32 开发出无刷马达控制器,我们公司推出了基于三相感应马达及PMSM马达的应用套件,该套件包含了ST马达控制软件库V2.0及相应的评估板。

基于国产第一版推出后受到网友的热捧,产品一度脱销,因此我们在参考了国外几家半导体公司的马达驱动板的设计理念后,结合网友使用第一版后提出的合理建议,我们推出了第二版,下面我们介绍第二版的基本特点:一、硬件特点:基于客户使用第一版反馈的建议,我们仍然保持控制板较大的驱动功率,但是MCU及功率板做在了一起,这是由于第二版的开发目标针对的是高精密的运动伺服控制器,所以要求驱动和采样信号尽量高速可靠的传输,减少中间容易出错及受到干扰的可能性。

根据客户的建议,MCU选择使用100脚的STM32F103VXT6芯片作为其主控芯片,功率版提供2种MOSFET选择,ST生产的75V/75A先进MOSFET,可以支持直流50V,电流到30A的低压应用,驱动功率达到600W,另一种为飞利浦生产的BUK7510,可以支持直流72V,电流到35A的低压应用,驱动功率达到800W同时高压功率驱动板正在开发中,届时将会使用600V/30A智能IPM模块或者IGBT,驱动功能将达到3KW左右。

下面是板子的硬件说明:控制电源部分:控制电源采用单独输入,目的是在使用高压驱动电源时,可以单独为控制部分供电,从而使得动力电压范围更广。

一般驱动电源在+50V以下的应用,控制和驱动可以使用同一路电源,但是高于+50V以后,建议使用单独供电,当然为了提供更大的适应不同场合的能力,我们使用特殊的高压DC BUCK芯片即使电压高达直流125V,也可以继续使用同一路电源供电,但是考虑安全因素,我们不建议您这样使用。

MINI_STM32用户手册

MINI_STM32用户手册

MINI-STM32 超牛组合学习套装用户手册MINI-STM32 超牛组合学习套装用户手册CopyRight@2009MINI-STM32 超牛组合学习套装用户手册第一章、产品简介1.1、MINI-STM32超牛组合学习套装简介MINI-STM32超牛组合学习套装是 为初学者学习STM32 Cortex M3 系列ARM 而设计的学习套件。

MINI-STM32超牛组合学习套装采用STM32F103RBT6作为核心MCU ,并外接了2.8寸彩色TFT 屏模块、UART 、USB 、ADC 电压调节、按键等硬件接口,结合目前最流行的JLINK V7仿真器和RealView MDK(Keil uVision3 )集成开发环境,构成初学者学习入门、硬件设计参考、软件编程调试的学习平台,配合本手册可以迅速帮你掌握嵌入式系统的开发流程。

1.2、MINI-STM32 开发板外观MINI_STM32开发板硬件图1.3、MINI-STM32 特性CPU :标配STM32F103RBT6,ARM Cortex-M3内核,128kB Flash, 20KB RAM (默认配置)高配STM32F103RCT6 ARM Cortex-M3内核,256kB Flash, 48KB RAM (用户可选) 最高工作时钟72MHz,64脚,同时可更换更高配置的CPUUSB 接口,可以做USB 实验RS232(ISP 下载)包括串口电平转换芯片MAX3232,可做RS232通信实验 标准ARM JTAG 20仿真下载接口MINI-STM32 超牛组合学习套装用户手册所有 IO 口均引出,方便做实验 RTC 后备电池座ADC 电压调节电位器,可以做ADC 采样实验电源指示灯、USB 状态指示灯,两个用户可编程指示灯 两个用户按键启动模式选择跳线,JTAG 方式和SWD 方式选择跳线 板载5V 、3.3V LDO 1117,最大提供 800mA 电流 USB 供电或jLink Command 输入power on 命令供电 8MHz CPU 晶振,32.768kHz RTC 晶振 超小体积 PCB 尺寸: 82mm ×55mm1.4、2.8寸彩色TFT屏模块外观和特性2.8寸彩色TFT 模块外型图MINI-STM32 超牛组合学习套装用户手册屏幕分辨率:240*320 屏幕大小:2.8寸带触摸屏,带手写输入功能 屏幕颜色:26万色 单3.3V 供电16位并行数据接口模块底板带背光PWM 亮度驱动控制模块底板带ADS7843或TSC2046触摸屏控制器屏幕尺寸:50mm*70mm,有效显示面积:45mm*59mm ,模块厚度7mm(不包括连接插针) 模块外型尺寸:82mm*55mm2.8寸彩色TFT 屏模块接脚定义脚位 功能描述 脚位 功能描述 01脚 3V3 电源正 17脚 DB14 数据线 02脚 GND 电源负 18脚 DB15 数据线03脚 DB00 数据线 19脚 CS 屏片选,低有效 04脚 DB01 数据线 20脚 RS 寄存器选择05脚 DB02 数据线 21脚 WR 写使能,低有效 06脚 DB03 数据线 22脚 RD 读使能,低有效 07脚 DB04 数据线 23脚 RESET复位,低有效 08脚 DB05 数据线 24脚 BACK_LIGHT 背光控制,高有效09脚 DB06 数据线 25脚 MISO SPI 主入从出 10脚 DB07 数据线 26脚 INT 触摸中断输出 11脚 DB08 数据线 27脚 MOSI SPI 主出从入 12脚 DB09 数据线 28脚 BUSY 触摸芯片忙检测 13脚 DB10 数据线 29脚 SCLK SPI 时钟 14脚 DB11 数据线 30脚 SDA I2C 数据线 15脚 DB12 数据线 31脚 T_CS 触摸芯片片选 16脚DB13数据线 32脚SCLI2C 时钟线1.5、jlink v7仿真器外观和特性相关特性:USB 2.0接口;支持任何ARM7/ARM9/ARM11核,支持Cortex M3 , 包括ithumb 模式;对于Cortex-M3的Serial Wire Viewer(SWV)速度是V6的12倍下载速度达到600k byte/s;DCC速度到达800k byte/s;与IAR Workbench RealView MDK可无缝集成;通过USB供电,无需外接电源;JTAG最大时钟达到12M;自动内核识别;自动速度识别;支持自适应时钟;所有JTAG信号能被监控,目标板电压能被侦测;支持JTAG链上多个设备的调试;完全即插即用;20Pin标准JTAG连接器;宽目标板电压范围:1.2V-5.0V;多核调试;包括软件:J-Mem,可查询可修改内存;J-Link Server:(可通过TCP/IP连接到J-Link);J-Flash,支持独立的Flash编程,可以作为量产解决方案;RDI插件使J-Link适合任何RDI兼容的调试器如IAR、ADS、Relview和Keil等;RDI Flash BP,可以实现在RDI下,在Flash中设置无限断点;RDI Flash DLL,可以实现在RDI下的对Flash的独立编程;GDB server,可以实现在GDB环境下的调试。

STM32开发板使用说明

STM32开发板使用说明

STM32开发板使用说明1、开发板使用到的软件及安装说明在开始学习开发板之前需要安装的软件有:1、KEIL3.80A,2、PL-2303HX驱动,3、串口调试助手,4、下载器MCUISP。

这些软件在课件文件下面的软件文件里。

具体安装步骤如下:1.KEIL3.80A的安装,打开路径:课件\软件\KEIL3.80A\MDK3.80A安装手册,根据上面的步骤安装软件。

2.PL-2303HX驱动的安装,打开路径:课件\软件\PL-2303HX新版驱动,可根据使用电脑的操作系统来选择安装的软件,如选择安装XP驱动,可打开XP驱动,根据里面的安装说明来安装软件。

一般只要运行PL-2303 Driver Installer。

exe就可以了。

3.串口调试助手的安装,打开路径:课件\软件\串口调试助手,点击sscom33。

exe即可,也可以创建快捷方式在桌面。

4.下载器MCUISP的安装,打开路径:课件\软件\下载器MCUISP,点击mcuisp。

exe 即可,也可以创建快捷方式在桌面。

2、开发环境介绍及使用说明首先是我们之前安装的keil3.80a。

再点击Project->New uVision Project如下图所示:弹出create new project 对话框,新建一个文件夹TEST,然后把工程名字设为test。

点击保存。

弹出选择器件的对话框,因为我们的开发板使用的是STM32F103RBT6 ,所以在这里我们选择STMicroelectronics 下面的STM32F103RB( 如果使用的是其他系列的芯片,选择相应的型号就可以了)。

如下图所示:点击OK,MDK会弹出一个对话框,问你是否加载启动代码到当前工程下面,这里我们选择是。

启动代码是一段和硬件相关的汇编代码。

是必不可少的!在上面点击了是以后,MDK 就把启动代码STM32F10x。

s 加入到了我们的工程下面。

如下图所示:到这里,我们就可以开始编写自己的代码了。

2.8Cortex——M3开发平台——STM32V100评估板介绍[共3页]

2.8Cortex——M3开发平台——STM32V100评估板介绍[共3页]

2.8Cortex——M3开发平台——STM32V100评估板介绍[共3页]第2章 Cortex-M3处理器体系结构43║ADD R0,#MPU_REG_CTRLSTR R1,[R0,#0] ;STR R4,[R0,#4] ;STRH R2,[R0,#8] ;STRH R3,[R0,#10] ;值得注意的是,如果中断在这期间可以抢占,那么它会受MPU区域的影响。

即必须禁能、写然后再使能该区域。

这对于上下⽂转换器通常没太⼤⽤处,但是如果需要在其他地⽅进⾏更新,这就很有必要了。

MPU可以包含关键的数据。

这是因为在更新时得花费1个以上的总线处理。

通常是2个字。

结果就不是“线程安全”了。

即中断可以将两个字分离,使得区域包含不连续的信息。

此时要注意以下两个问题。

更新MPU通常会产⽣中断。

这不仅是“读-修改-写”的问题,它还会对“保证中断程序不会修改相同区域”的情形造成影响。

这是因为编程取决于正写⼊寄存器的区号,所以它知道要更新哪个区。

因⽽这种情形下每个更新程序周围都必须禁能中断。

使⽤域操作更新MPU会产⽣中断,该中断将使正在更新的区域受到影响,因为只有基址或“⼤⼩域”被更新。

如果新的⼤⼩域发⽣了改变,但是基址没有变,那么基址 +new_size 可能会在⼀个被另外区域正常处理的区域内重叠。

但是对于标准的OS上下⽂转换代码,将会改变⽤户区域,因为这些区域会被预设成⽤户特权和⽤户区地址,所以没有风险。

也就是说即使是中断也不会引起副作⽤。

因此不需要禁能/使能代码,也不需要禁⽌中断。

最普通的⽅法是只从两个位置对MPU进⾏编程:引导代码和上下⽂转换器。

如果以唯⼀的两个位置进⾏编程,且上下⽂转换器仅更新⽤户区,那么因为上下⽂转换器已经是⼀个关键区域且引导代码在禁能中断时运⾏,所以不需要禁能。

2.8 Cortex-M3开发平台—STM32V100评估板介绍STM103V100是英蓓特公司新推出的⼀款基于ST公司STM32系列处理器(Cortex-M3内核)的全功能评估板。

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

百为STM32开发板用户手册

百为STM32开发板用户手册

兼容STM3210E-EV AL开发板采用STM32F103ZET6微控制器,带USB2.0,CAN2.0A/B,I2S,I2C,USART,SPI,DAC,FSMC,SDIO,64KB SRAM,512KB Flash,JTAG和SWD仿真下载接口。

软件代码和硬件电路兼容官方STM3210E-EV AL开发板,支持UCOS,uCLinux操作系统。

一、百为STM32开发板概述:1、硬件特性:l 两种供电方式,外部5V供电和USB供电方式l 三种启动模式,下载模式、用户程序模式、内部SRAM启动模式l AK4642 I2S音频DAC,立体声耳机l MicroSD卡接口l 8Mbit SPI FLASH,1MB SRAM,128Mbit NOR Flash,64MB NAND Flashl I2C接口温度传感器芯片LM75Al 两个串口,其中一个带RTS/CTS控制l USB2.0 device接口l CAN2.0A/B兼容接口l JTAG仿真调试下载接口l 240x320 TFT彩屏l 五向游戏杆控制l 复位按键l 4个LED指示灯l RTC电池备份l 全部IO通过双排插针引出l BNC接口2、软件特性:l 简单不带库例程l 官方带库例程l 支持ST官方DEMO程序l 支持UCOS2.86+UCGUI3.90+ILI9320+TSC2046触摸l 支持FATFS+SDIO+helix软解码MP3l uCLinux操作系统l ST GUI库二、开发板硬件框图:硬件模块图:实物功能对照图:CONNETORSTM32F103ZET6SPI FLASHBOOT SELECTAK4642TF CARDAUDIO JACKADC INPUT开发板提供外部5V供电及USB供电两种方式,可通过JP13跳帽选择任意一种。

l 外部5V供电方式,JP13跳帽接PSUl USB供电方式,JP13跳帽接USB,默认USB供电方式l JP1连接1、2,VBAT接到备份电池l JP1连接2、3,VBAT接到3.3V2、启动方式l 从用户FLASH启动l 从系统存储器启动l 从内部SRAM启动开发板上有两种时钟源l X2,32KHz晶振作为RTC时钟源l X1,8MHz晶振作为MCU的时钟源,当使用内部RC震荡器作为时钟源时,可以将8MHz 晶振去掉4、复位方式STM32复位为低电平有效,开发板上有三种复位方式:l 上电复位l 通过开发板上的RESET按键复位l JTAG调试器输入复位信号5、音频AK4642音频芯片连接到STM32F103ZET6的I2S2接口,支持立体声耳机接口输出。

06-第六章 STM32V100 STM32V100 评估板

06-第六章 STM32V100 STM32V100 评估板

STM103V100 评估板主板主要性能(2)

2 个 RS232 串行口,其中一个支持 RTS/CTS 功能; 一个 USB Slave B 型接口; 一个可以具有控制四个方向和确定功能的摇杆手柄; 四个按键是Reset、Wakeup、Temper 和 User 按键; 四个 Led 灯; 一路立体声音频输出接口,一路麦克风接口; 一个 CAN 总线接口,通过 DB9 接口引出。
启动方式选择


STM32V100 评估板有以下三种启动方式:
从用户闪存存储器启动; 从系统存储器启动; 从内嵌 SRAM 启动。



设置拨动开关 SW1 和 SW2 可选择启动方式:
时钟源

STM32V100 评估板上有两种时钟源: 32KHz 晶振作为 RTC 的时钟源


8MHz 晶振作为 MCU 的时钟源,当使用内部 RC 时钟作为时钟源的时候,可以将8MHz 晶 振去掉。

调试接口

评估板有三种调试接口:

ቤተ መጻሕፍቲ ባይዱ
CN7:标准的 20 脚 JTAG 仿真调试接口;
CN9:10 针SWD 调试接口,支持新的 ARM Cortex-M3 串行调试功能; CN4:USB B 型口(CN1),可连接板上的 Ulink Me 调试。

SWD 调试接口CN9 接口
SWD 接口引脚定义
复位方式

STM32V100 评估板有三种复位方式: 通过子板上的复位按键 B1 复位; 如果短接JP10,可通过 JTAG 调试口输入复 位信号; 通过外接排针CN17(CN13)和 CN18 (CN12),从外板输入复位信号。

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。

STM32使用说明

STM32使用说明

STM32F103核心模块开发板使用说明V1.0一、核心模块特点介绍1、MCU:STM32F103VB,Cortex-M3内核,128kB Flash, 20KB RAM,最高工作时钟72MHz,100脚2、USB接口,可以做USB实验3、包括CAN-BUS芯片TJA1050,可做CAN通信实验4、ARM JTAG 2x10 座5、所有 IO 口均引出6、专用复位芯片电路7、电源指示灯、状态指示灯8、两个用户按键9、启动模式选择10、板载5V、3.3V LDO 1117,最大提供 800mA 电流11、USB供电或单电源供电: +9VDC ,电容滤波12、8MHz 晶振,32.768kHz 晶振13、PCB尺寸: 90mm×64mm二、跳线说明1、启动方式选择跳线说明开发板上的启动方式选择跳线R16100KV33231SW2BOOT0R15100KV33231SW1PB2启动方式选择跳线对应的原理图SW1和SW2为STM32启动方式选择跳线,当SW2左边两个插针短接(即中间插针BOOT0与GND 短接),SW1不接任何跳线帽时,为从FLASH 启动模式,正常使用开发板时,此跳线需短接,如上图所示。

当SW1左边两个插针短接(即中间插针PB2与GND 短接,1和2短接),SW2不接任何跳线帽时,为System Memory 模式。

2、其他跳线说明 (1) JP4和JP5开发板上的JP4和JP5跳线JP4和JP5跳线对应的原理图如上图所示,JP4短接后可以通过USB接口给开发板供电,JP5用来选择是否给PA12(D+)提供1.5k电阻的上拉,做USB相关实验时,需短接。

(2) JP8跳线开发板上的JP8跳线V33VDDAJP8跳线对应的原理图JP8跳线用来给STM32芯片的模拟电源选择供电电源,通常情况下,JP8跳线需短接,用+3.3V提供电源。

(3) JP9双排针(4) JP10双排针(5) JP11双排针(6) JP12双排针三、IAR下用Jlink调试STM32核心模块开发板确认SW2,JP8,JP4,JP5跳线正确短接后,开始安装IAR软件,安装EWARM-EV-WEB-511后,在安装后的目录里\Program Files\IAR Systems\Embedded Workbench 5.0 Evaluation\ARM\examples\ST\STM32F10x\IAR-STM32-SK ,打开IAR-STM32-SK.eww文件,它里面包含多个工程,除了LCD_Demo外,其它工程均无需改动,可以直接使用JLINK下载调试。

STM3210E-EVAL评估板用户手册

STM3210E-EVAL评估板用户手册

UM0488User manualSTM3210E-EVALevaluation boardIntroductionThe STM3210E-EVAL evaluation board is designed as a complete development platform forSTMicroelectronic's ARM Cortex-M3 core-based STM32F103Z microcontroller with fullspeed USB2.0, CAN2.0A/B compliant interface, two I2S channels, two I2C channels, fiveUSART channels with smartcard support, three SPI channels, two DAC channels, FSMCinterface, SDIO, internal 64KB SRAM and 512KB Flash, JTAG and SWD debug support.The full range of hardware features on the board helps you to evaluate all peripherals (USB,motor control, CAN, MicroSD card, smartcard, USART, NOR Flash, NAND flash, SRAM)and develop your own applications. Extension headers make it possible to easily connect adaughter board or wrapping board for your specific application.Figure 1.STM3210E-EVAL evaluation boardOrder codeTo order the STM32F103Z evaluation board, use the order code STM3210E-EVAL.November 2008 Rev 31/48Contents UM0488Contents1Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.1Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.1Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.3Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.4Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.5Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.6Serial Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.7CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.8RS232 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92.9Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92.10Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102.11MicroSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102.12Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.13Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.14IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.15USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.16Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122.17Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122.18SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132.19NAND Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132.20NOR Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.1Motor control connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.2Analog input connectors CN2, CN3 and CN5 . . . . . . . . . . . . . . . . . . . . . 163.3CAN D-type 9-pin male connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . 163.4QST connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2/48UM0488Contents3.5Trace debugging connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.6RS232 connector CN8 with RTS/CTS handshake support . . . . . . . . . . . 183.7JTAG debugging connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.8Daughter board extension connectors CN10 and CN11 . . . . . . . . . . . . . 193.9RS232 connector CN12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253.10MicroSD connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253.11USB type B connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263.12Audio jack CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263.13TFT LCD connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263.14Power connector CN17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263.15Smartcard connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4Schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Appendix A STM3210E-EVAL IO assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463/48Overview UM04884/481 Overview1.1 Features●Three 5 V power supply options: power jack, USB connector or daughter board ●Boot from user Flash, system memory or SRAM ●I2S Audio DAC, stereo audio jack ●128 Mbyte MicroSD card●Both A and B type smartcard support●64 or 128 Mbit serial Flash, 512 Kx16 SRAM, 512 Mbit or 1 Gbit NAND Flash and 128 Mbit NOR Flash●I2C/SMBus compatible serial interface temperature sensor●Two RS-232 channels with RTS/CTS handshake support on one channel ●IrDA transceiver●USB2.0 full speed connection ●CAN2.0A/B compliant connection ●Inductor motor control connector ●JTAG and trace debug support ●240x320 TFT color LCD●Joystick with 4-direction control and selector ●Reset, wakeup, tamper and user buttons ● 4 color LEDs●RTC with backup battery1.2 Demonstration softwareTo use the STM3210E-EVAL evaluation board, you must have the demonstration softwareversion 1.1 or later. If the version installed on your evaluation board is earlier than version 1.1, you must download the latest version from .2 Hardware layout and configurationThe STM3210E-EVAL evaluation board is designed around the STM32F103Zmicrocontroller in a 144-pin TQFP package. The hardware block diagram Figure2 illustratesthe connection between the STM32F103Z and peripherals (LCD, SPI Flash, USART, IrDA,USB, audio, CAN bus, smartcard, MicroSD card, NOR Flash, NAND Flash, SRAM,temperature sensor, audio DAC and motor control) and Figure3will help you locate thesefeatures on the actual evaluation board.Figure 2.Hardware block diagram5/486/482.1 PowersupplyThe STM3210E-EVAL evaluation board is designed to be powered by 5V DC power supplyand to be protected by PolyZen U15 in the event of wrong power plug-in. It is possible toconfigure the evaluation board to use any of following three sources for the power supply:●5V DC power adapter connected to CN17, the power jack on the board (PSU on silkscreen for power supply unit).●5V DC power with 500mA limitation from CN14, the type-B USB connector (USB onsilkscreen).●5V DC power from both CN10 and CN11, the extension connector for daughter board(DTB for daughter board on silkscreen).The power supply is configured by setting the related jumpers JP13, JP12 and JP1 asdescribed in T able1. The LED LD5 is lit when the STM3210E-EVAL evaluation board ispowered correctly.7/488/482.2 Boot optionThe STM3210E-EVAL evaluation board can boot from:●Embedded user Flash●System memory with boot loader for ISP ●Embedded SRAM for debuggingThe boot option is configured by setting the switches BOOT0 and BOOT1.2.3 Clock sourceTwo clock sources are available on the STM3210E-EVAL evaluation board for STM32F103and RTC.●X2, 32KHz crystal for embedded RTC.●X1, 8MHz crystal with socket for STM32F103Z microcontroller, it can be removed from socket when internal RC clock is used.2.4 Reset sourceThe reset signal of the STM3210E-EVAL evaluation board is low active and the resetsources include:●Reset button B1●Debugging tools from JT AG connector CN7 and trace connector CN9●Daughter board from CN11Table 2.Boot related switchesSwitchBoot fromSwitch configurationBOOT0BOOT1STM3210E-EVAL boots from User Flash when BOOT0 is set asshown to the right. BOOT1 is not required in this configuration.(Default setting)STM3210E-EVAL boot from Embedded SRAM when BOOT0 and BOOT1 are set as shown to the right.STM3210E-EVAL boot from System Memory when BOOT0 and BOOT1 are set as shown to the right.0 <> 1Boot 00 <> 1Boot 0Boot 10 <> 1Boot 0Boot 1Table 3.Reset related jumperJumper DescriptionJP19Enables reset of the STM32F103Z embedded JT AG TAP controller each time asystem reset occurs. JP19 connects the TRST signal from the JT AG connection with the system reset signal RESET#. Default setting: not fitted2.5 AudioThe STM3210E-EVAL evaluation board supports stereo audio play because it provides anaudio DAC AK4343 connected to both I2S port and two channels of DAC of microcontrollerSTM32F103Z. Either external slave mode or PLL slave mode (reference clock BICK orLRCK) of audio DAC can be used by setting the jumper JP18.The I2S_MCK is multiplexed with smartcard and motor control, and can be enabled bysetting the jumper JP15. Refer to Section2.9: Motor control for details. Audio DAC AK4343is in power-down mode when PDN pin is pulled-down by PG11.Flash2.6 SerialA 64 or 128Mbit serial Flash connected to SPI1of STM32F103Z, serial Flash chip select ismanaged by IO pin PB2. The SPI1_MISO is multiplexed with motor control, it can beenabled by setting the jumper JP3. Refer to Section2.9: Motor control for details.2.7 CANSTM3210E-EVAL evaluation board supports CAN2.0A/B compliant CAN buscommunication based on 3.3V CAN transceiver. The high-speed mode, standby mode andslope control mode are available and can be selected by setting JP8.9/48connectors2.8 RS232Two D-type 9-pin connectors CN12 (USART1) and CN8 (USART2) are available on theSTM3210E-EVAL evaluation board.●USART1 connector is connected to RS232 transceiver U7●USART2 connector with RTS/CTS handshake signal support is connected to RS-232transceiver U5. The USART2_CTS is multiplexed with motor control, it can be enabledby setting the jumper JP4. Refer to Section2.9: Motor control for details.control2.9 MotorThe STM3210E-EVAL evaluation board supports three-phase brushless motor control via a34-pin connector CN1, which provides all required control and feedback signals to and fromthe motor power driving board. Available signals on this connector include emergency stop,motor speed, three-phase motor current, bus voltage, heatsink temperature coming from themotor driving board and 6 channels of PWM control signals going to the motor drivingcircuit.JP 20 allows to choose between two synchronization methods for power factor correction(PFC).The I/O pins used on the motor control connector CN1 are multiplexed with someperipherals on the board; either the motor control connector or multiplexed peripherals canbe enabled by setting the jumpers JP3, JP4, JP11, JP15 and JP16 as described in Table6.10/4811/482.10 SmartcardSTMicroelectronics smartcard interface chip ST8024 is used on the STM3210E-EVAL board for asynchronous 3V and 5V smartcards. It performs all supply protection and control functions based on the connections with STM32F103Z listed in T able 7.The Smartcard_CMDVCC and Smartcard_OFF are multiplexed with motor control.They can be enabled by setting the jumpers JP15 and JP16. Refer to Section 2.9: Motor control on page 10 for details.2.11 MicroSD cardThe 128 Mbyte MicroSD card connected to SDIO of STM32F103Z is available on the board.MicroSD card detection is managed by standard IO port PF11.The MicroSD card_D3 is multiplexed with IrDA. It can be enabled by setting the jumper JP22, as explained in Section 2.14: IrDA on page 12.The MicroSD card_D0 and MicroSD card CMD are multiplexed with the motor control connector. They can be enabled by setting the jumpers JP17 and JP20.Table 7.Connection between ST8024 and STM32F103ZSignals of ST8024DescriptionConnect to STM32F10X5V/3V Smartcard power supply selection pin PB0I/OUC MCU data I/O linePB10XT AL1Crystal or external clock inputPB12OFF Detect presence of a card, interrupt to MCU, share same pin with motor controller PC7RSTIN Card reset input from MCUPB11CMDVCCStart activation sequence input (active low), share same pin with I 2S DAC and motor controlPC6Table 8.Smartcard related jumpersJumper DescriptionJP15The CMDVCC is connected to PC6 when JP15 is closed. It should be kept on open, or the SD card needs to be removed from the MicroSD card connector when PC6 is used by I 2S or motor control connector. Default setting: not fitted JP16The OFF is connected to PC7 when JP16 is closed. It has to be kept on open when PC7 is used by the motor control connector. Default setting: not fittedTable 9.MicroSD card related jumpersJumper DescriptionJP17JP17 is used to enable MicroSD card data line D0. MicroSD card D0 is enabled when JP17 is fitted. The JP17 should be kept on open when motor control connector CN1 is used. Default setting: fittedJP20JP20 is used by the motor control connector, refer to T able 6 for details. JP20 should be kept on open for MicroSD card operation. JT AG debugging is disabled when JP20 is fitted.12/482.12 Temperature sensorOne I 2C interface temperature sensor STLM75 (–55°C to +125°C) connected to I 2C ofSTM32F103Z is available on the board.2.13 Analog inputThree BNC connectors CN2,CN3 and CN5 are connected to PC3, PC2 and PC1 of theSTM32F103Z as external analog input. The 50 ohm terminal resistor can be enabled by closing the solder bridge JP23, JP24 and JP25 for each BNC connector. A low pass filter can be implemented for each BNC connector CN5, CN3 and CN2 by replacing R5 and C22, R4 and C13, R3 and C9 with the right resistor and capacitor values, depending on the requirements of your application.2.14 IrDAIrDA communication is supported by the IrDA transceiver U13 connected to USART3 of STM32F103Z. The IrDA transceiver can be enabled or disabled by setting JP21.2.15 USBSTM3210E-EVAL evaluation board support USB2.0 compliant full speed communication via a USB type B connector (CN14). The evaluation board can be powered by this USBconnection at 5V DC with 500mA current limitation. USB disconnection simulation can be implemented by disconnecting 1.5K pull-up register from USB+ line. The USB disconnection simulation feature is enabled by setting JP14.Table 10.IrDA related jumpersJumper DescriptionJP21JP21 is used to shutdown the IrDA transceiver.IrDA is enabled when JP21 is fitted while IrDA is disabled when JP21 is not fitted. Default setting: fittedJP22IrDA_RX is enabled when JP22 is closed. The IO pin PC11 is used as the data line 3 of the MicroSD card when JP22 is open. Default setting: not fitted2.16 Development and debug supportThe two debug connectors available on STM3210E-EVAL evaluation board are:●CN9, standard 20-pin JTAG interface connector, compliant with ARM7/9 debug tools.●CN7, SAMTEC 20-pin connector FTSH-110-01-L-DV for both SWD and Trace,compliant with ARM CoreSight debug tools.2.17 Display and input devicesThe 240x320 TFT color LCD connected to bank1 NOR/PSRAM4 of FSMC interface ofSTM32F103Z and four general purpose color LEDs (LD 1,2,3,4) are available as displaydevices. A 4-direction joystick with selection key, general purpose button (B4), wakeupbutton (B2) and tamper detection button (B3) are available as input devices. The jumper JP4should be kept on open to enable the wakeup button B2 which shares the same IO withUSART2 and motor control connector.The STM3210E-EVAL evaluation board also supports a second optional 122x32 graphicLCD that can be mounted on the U18 connector. By default, the graphic LCD is not present.Table 12.LCD modulesTFT LCD CN16 (default)Graphic LCD U18 (optional)Pin on CN16Description Pin connectionPin onU18Description Pin connection1CS CS of Bank3 ofFSMC1Vss GND2RS FSMC_A02Vcc 3.3V3WR/SCL FSMC_NWE3VO-4RD FSMC_NOE4CLK P A55RESET RESET#5SID P A76PD1FSMC_D06CS PF107PD2FSMC_D17A+5V8PD3FSMC_D28K GND9PD4FSMC_D310PD5FSMC_D411PD6FSMC_D512PD7FSMC_D613PD8FSMC_D714PD10FSMC_D815PD11FSMC_D916PD12FSMC_D1017PD13FSMC_D1118PD14FSMC_D1213/4814/482.18 SRAM512Kx16 SRAM is connected to bank1 NOR/PSRAM3 of the FSMC interface and both 8-bit and 16-bit access are allowed by BLN0 and BLN1 connected to BLE and BHE of SRAM respectively.2.19 NAND FlashThe 512Mbit x8 or 1Gbit x8 NAND Flash is connected to NAND bank2 of the FSMCinterface. The ready/busy signal can be connected to either WAIT signal or FSMC_INT2 signal of STM32F103Z depending on the setting of JP7.19PD15FSMC_D1320PD16FSMC_D1421PD17FSMC_D1522BL_GND GND 23BL_control 3.3V 24VDD 3.3V 25VCI 3.3V 26GND GND 27GND GND 28BL_VDD 3.3V 29SDO P A6 via JP2630SDIP A7 via JP27Table 12.LCD modules (continued)TFT LCD CN16 (default)Graphic LCD U18 (optional)Pin on CN16Description Pin connection Pin on U18DescriptionPin connection15/482.20 NOR Flash128Mbit NOR Flash is connected to bank1 NOR/PSRAM2 of the FSMC interface. The 16-bit operation mode is selected by a pull-up resistor connected to the BYTE pin of the NORFlash. Write protection can be enabled or disabled by jumper JP5.Three different NOR 128-Mbit references can be present on the evaluation board depending on component availability.These three references are not identical in terms of ID code, speed, timing or blockprotection. The demonstration firmware and the software library delivered with the board support these three NOR Flash references. However, during the development of your application software, you must verify which NOR reference is implemented on your board (component referenced as U2 on silkscreen and schematic), and take its characteristics into account.Table 14.NOR Flash related jumpersJumperDescriptionJP5Write protection is enabled when JP5 is fitted while write protection is disabled when JP5 is not fitted.Default setting: not fittedTable 15.NOR Flash referenceReference Manufacturer M29W128GL70ZA6E NUMONYX M29W128GH70ZA6E NUMONYX S29GL128P90FFIR20SP ANSIONConnectors UM048816/483 Connectors3.1Motor control connector CN1Table 16.Motor control connector CN1Description STM32F103Zpin CN1 pin #CN1 pin #STM32F103ZpinDescriptionEmergency stop P A612GND PWM-UH PC634GND PWM-UL P A756GND PWM-VH PC778GND PWM-VL PB0910GND PWM-WH PC81112GND PWM-WL PB11314PC0Bus voltage Phase A current PC11516GND Phase B current PC21718GND Phase C current PC31920GND NTC bypass relayPB122122GND Dissipative brake PWM P A3 through0ohm resisterunfitted 2324GND+5V power +5V2526PC5Heatsink temperature PFC SYNC PB4 and PD22728 3.3V power PFC PWM PB52930GND Encoder A P A03132GNDEncoder BP A13334PA2Encoder indexUM0488Connectors17/483.2 Analog input connectors CN2, CN3 and CN5Figure 5.Analog input connector CN2, CN3 and CN5 bottom view3.3 CAN D-type 9-pin male connector CN4Figure 6.CAN D-type 9-pin male connector CN4 (front view)3.4 QST connector CN6The QST connector is designed to connect the STM3210E-EVAL to the QST evaluation board to demonstrate the QST function.Table 17.Analog input connector CN2, CN3 and CN5Pin numberDescriptionPin numberDescription1GND 4GND2GND 5Analog input PC3, PC2 and PC1 for CN2,CN3 and CN5 respectively3GND12435Table 18.CAN D-type 9-pins male connector CN4Pin number DescriptionPin number Description1,4,8,9NC 7CANH 2CANL3,5,6GNDConnectors UM0488Table 19.QST connector CN6Pin number Description Pin number Description1+5V2+5V3PB64P A55PB76P A77PB18P A69PF1110PB511P A812-13GND14GND3.5 Trace debugging connector CN7Table 20.Trace debugging connector CN7Pin number Description Pin number Description1 3.3V power2TMS/P A133GND4TCK/P A145GND6TDO/PB37KEY8TDI/P A159GND10RESET#11GND12TraceCLK/PE213GND14TraceD0/PE3 or SWO/PB315GND16TraceD1/PE4 or nTRST/PB417GND18TraceD2/PE519GND20TraceD3/PE618/48UM0488Connectors 3.6 RS232 connector CN8 with RTS/CTS handshake supportFigure 9.RS232 connector CN8 with RTS/CTS handshake support (front view)Table 21.RS232 connector CN8 with RTS/CTS handshake supportPin number Description Pin number Description1NC6Connect to Pin 42USART2_P A37USART2_P A13USART2_P A28USART2_P A04Connect to Pin 6 9NC5GND3.7 JTAG debugging connector CN9Table 22.JTAG debugging connector CN9Pin number Description Pin number Description1 3.3V power2 3.3V power3PB44GND5P A156GND7P A138GND9P A1410GND11RTCK12GND13PB314GND15RESET#16GND17DBGRQ18GND19DBGACK20GND19/48Connectors UM048820/483.8 Daughter board extension connectors CN10 and CN11Two 70-pin male headers CN10 and CN11 can be used to connect a daughter board or standard wrapping board to the STM3210E-EVAL evaluation board. All total 112 GPI/Os are available on it. The space between these two connectors and the position of power, GND and RESET pins (marked in gray in Table 23 and Table 24) are defined as a standard which allows to develop common daughter boards for several evaluations boards. The standard width between CN10 pin1 and CN11 pin1 is 2700mils (68.58mm). This standard is implemented on the majority of evaluation boards.Each pin on CN10 and CN11 can be used by a daughter board after disconnecting it from the corresponding function block on the STM3210E-EVAL evaluation board, as described in Table 23 and Table 24.Table 23.Daughter board extension connector CN10Pin #Description Alternative functionHow to disconnect from function block onSTM3210E-EVAL board1GND --3PC7MC/Smartcard Disconnect STM3210E-EVAL evaluation board from motor power drive board.Keep JP16 on open.5PC9MicroSD card Remove SD card from MicroSD card connector.7P A9UASRT1_TX-9P A0MC/Wakeup/USART2_CTS Keep JP4 on open.11---13P A12USB_DP Remove R82.15P A14Debug_TCK-17PC10IrDA_TX/MicroSDcard_D2Remove SD card from MicroSD card connector.19GND --21PD0FSMC_D2-23PE2T race_CLK/FSMC_A23-25PD2MicroSDcard_CMD/MC Disconnect STM3210E-EVAL evaluation board from motor power drive board.Remove SD card from MicroSD card connector.27PD4FSMC_OEN -29PD6FSMC_WAITN -31PD7FSMC_EBAR0Remove R22.33PG10FSMC_EBAR2Remove R15.35PG12FSMC_EBAR3Remove R77.37PG14Joystick_Left Remove R102.39GND--UM0488Connectors21/4841PB4Debug_TRST/MCDisconnect STM3210E-EVAL evaluation board from motor power drive board.Keep JP19 on open.43PB6I2C_SCL/QST Disconnect STM3210E-EVAL evaluation board from QST board.45PB8CAN_RX Remove R32.47PE0FSMC_BLN0-49D5V --51PE4T race_D1/FSMC_A20-53PE6T race_D3/FSMC_A22-55PC14 OSC32_IN Remove R135, Keep JP9 (solder bridge) on close.57PF0FSMC_A0-59GND --61PF2FSMC_A2-63PF4FSMC_A4-65PF6LD2Remove R96.67PF8LD4Remove R98.69+3V3--2PC6Smartcard/MC/I2S_MCKDisconnect STM3210E-EVAL evaluation board from motor power drive board.Keep JP15 on open.4PC8MicroSDcard_D0/MCDisconnect STM3210E-EVAL evaluation board from motor power drive board.Remove SD card from MicroSD card connector.6P A8MCO/LCD_backlight/QST Disconnect STM3210E-EVAL evaluation board from QST board.8P A10USART1_RX Remove R36.10GND --12P A11USB_DM Remove R81.14P A13Debug TMS -16P A15Debug TDI-18PC11IrDA_RX/MicroSDcard_D2Remove SD card from MicroSD card connector.Remove R89.20PC12MciroSDcard_CLK Remove SD card from MciroSD card connector.22PD1FSMC_D3-24PE1FSMC_BLN1-26PD3Joystick_DownRemove R100.Table 23.Daughter board extension connector CN10 (continued)Pin #DescriptionAlternative functionHow to disconnect from function block onSTM3210E-EVAL boardConnectors UM048822/4828PD5FSMC_WEN -30GND --32PG9FSMC_EBAR1Remove R21.34PG11--36PG13Joystick_Right Remove R103.38PG15Joystick_Up Remove R104.40PB3Debug_TDO-42PB5MC/QST/Temperature sensorDisconnect STM3210E-EVAL evaluation board from motor power drive board and QST board.Remove R46.44PB7I2C_SDA/QST Disconnect STM3210E-EVAL evaluation board from QST board.46PB9CAN_TX -483V3--50GND --52PE3T race_D0/FSMC_A19-54PE5T race_D2/FSMC_A21-56PC13Anti-tamper button Remove R111.58PC15OSC32_OUT Remove R39, Keep JP10 (solder bridge) on close.60PF1FSMC_A1-62PF3FSMC_A3-64PF5FSMC_A5-66PF7LD3Remove R97.68PF9LD5Remove R99.70GND--Table 23.Daughter board extension connector CN10 (continued)Pin #Description Alternative function How to disconnect from function block onSTM3210E-EVAL boardUM0488Connectors23/48Table 24.Daughter board extension connector CN11Pin #Description Alternative functionHow to disconnect from function block onSTM3210E-EVAL board1GND --3PG7Joystick_Select Remove R101.5PG5FSMC_A15-7PG3FSMC_A13-9PC13 Button B3--11RESET#--13PD12FSMC_A17-15PD10FSMC_D15-17PD8FSMC_D13-19D5V --21PB13I2S_CLK -23PB11Smartcard_Reset -25PE15FSMC_D12-27PE13FSMC_D10-29PE11FSMC_D8-31PD15FSMC_D1-33PE9FSMC_D6-35PE7FSMC_D4-37PG1FSMC_A11-39GND --41PF14FSMC_A8-43PF12FSMC_A6-45PB2BOOT1/SPI_NSS -47PB1MC/QST Disconnect STM3210E-EVAL evaluation board from motor power drive board and QST board.49---51PB0Smartcard_3/5V/MC Disconnect STM3210E-EVAL evaluation board from motor power drive board.53PC4Potentiometer Remove R126.55P A6MC/SPI_MISO/QST Disconnect STM3210E-EVAL evaluation board from motor power drive board and QST board.Remove R37.57P A4Audio_RIN Remove R67.59GND--Connectors UM048824/4861P A1MC/USART2_RTSDisconnect STM3210E-EVAL evaluation board from motor power drive board.63PC3MC/BNC3Disconnect STM3210E-EVAL evaluation board from motor power drive board.Disconnect analog signal from BNC3.65PC1MC/BNC1Disconnect STM3210E-EVAL evaluation board from motor power drive board.Disconnect analog signal from BNC1.67PF10LCD_CS -69+3V3--2PG8User button B4Remove R106.4PG6FSMC_INT2Keep JP7 on open.6PG4FSMC_A14-8PG2FSMC_A12-10GND --12PD13FSMC_A18-14PD11FSMC_A16-16PD9FSMC_A14-18PB15I2S_DIN -20PB14USB disconnectConnect pin1 of JP14 to pin2.22PB12Smartcard_CK/MC/I2S_CMD Disconnect STM3210E-EVAL evaluation board from motor power drive board.24PB10Smartcard_IO Remove R94.26PE14FSMC_D11-28PE12FSMC_D9-30GND --32PD14FSMC_D0-34PE10FSMC_D7-36PE8FSMC_D5-38---40PG0FSMC_A10-42PF15FSMC_A9-44PF13FSMC_A7-46PF11QST / MicroSD card detection Disconnect STM3210E-EVAL evaluation board from QST board. Remove SD card from card socket CN13.48---Table 24.Daughter board extension connector CN11 (continued)Pin #Description Alternative function How to disconnect from function block onSTM3210E-EVAL board。

STM32-参考手册-中文.pdf

STM32-参考手册-中文.pdf

STM32-参考⼿册-中⽂.pdf23 串⾏外设接⼝(SPI)⼩容量产品是指闪存存储器容量在16K ⾄32K 字节之间的STM32F101xx、STM32F102xx和STM32F103xx微控制器。

中容量产品是指闪存存储器容量在64K⾄128K字节之间的STM32F101xx、STM32F102xx和STM32F103xx微控制器。

⼤容量产品是指闪存存储器容量在256K⾄512K字节之间的STM32F101xx和STM32F103xx微控制器。

互联型产品是指STM32F105xx和STM32F107xx微控制器。

除⾮特别说明,本章描述的模块适⽤于整个STM32F10xxx微控制器系列。

23.1 SPI简介在⼤容量产品和互联型产品上,SPI接⼝可以配置为⽀持SPI协议或者⽀持I2S⾳频协议。

SPI接⼝默认⼯作在SPI⽅式,可以通过软件把功能从SPI模式切换到I2S模式。

在⼩容量和中容量产品上,不⽀持I2S⾳频协议。

串⾏外设接⼝(SPI)允许芯⽚与外部设备以半/全双⼯、同步、串⾏⽅式通信。

此接⼝可以被配置成主模式,并为外部从设备提供通信时钟(SCK)。

接⼝还能以多主配置⽅式⼯作。

它可⽤于多种⽤途,包括使⽤⼀条双向数据线的双线单⼯同步传输,还可使⽤CRC校验的可靠通信。

I2S也是⼀种3引脚的同步串⾏接⼝通讯协议。

它⽀持四种⾳频标准,包括飞利浦I2S标准,MSB 和LSB对齐标准,以及PCM标准。

它在半双⼯通讯中,可以⼯作在主和从2种模式下。

当它作为主设备时,通过接⼝向外部的从设备提供时钟信号。

警告:由于 SPI3/I2S3 的部分引脚与 JTAG 引脚共享 (SPI3_NSS/I2S3_WS 与 JTDI ,SPI3_SCK/I2S3_CK与JTDO),因此这些引脚不受IO控制器控制,他们(在每次复位后)被默认保留为JTAG⽤途。

如果⽤户想把引脚配置给SPI3/I2S3,必须(在调试时)关闭JTAG并切换⾄SWD接⼝,或者(在标准应⽤时)同时关闭JTAG和SWD接⼝。

STM32 ARM MikroMedia+开发板产品说明书

STM32 ARM MikroMedia+开发板产品说明书

Amazingly compact, all-on-single-pcb development board carring 4.3’’ TFT Touch Screen and lots of multimedia peripherals, all driven by powerful STM32F407ZG microcontroller from ARM ® Cortex ™-M4 familyfor STM32 ARM ®mikromedia+Nebojsa MaticGeneral ManagerThe STM32, ARM® and Windows® logos and product names are trademarks of STMicroelectronics®, ARM® Holdings and Microsoft® in the U.S.A. and other countries.Introduction to mikromedia+ for STM32 ARM® 4 System Specification 4 Package Contains 51. Power supply 62. STM32F407ZG microcontroller 8 Key microcontroller features83. Programming the microcontroller 9 Programming with mikroBootloader 10 step 1 – Connecting mikromedia 10 step 2 – Browsing for .HEX file 11 step 3 – Selecting .HEX file 11 step 4 – Uploading .HEX file 12 step 5 – Finish upload 13 Programming with mikroProg™ programmer 14 mikroProg™ suite™ for ARM® software 16 Software installation wizard 174. RTC Battery and Reset Button 185. Crystal oscillator and 2.048V reference 206. MicroSD Card Slot 227. Touch Screen 248. Audio Module 269. USB DEVICE connection 2810. USB HOST connection 3011. Accelerometer 3212. Flash Memory 3413. RF transceiver 3614. Ethernet transceiver 3815. Buzzer 4016. Other modules 4217. Pads 4418. mikromedia+ accessories 4619. What’s next 48Table of ContentsThe mikromedia+ for STM32 ARM® is a compact development system with lots of on-board peripherals which allow development of devices with multimedia contents. The central part of the system is a 32-bit ARM® Cortex™-M4 STM32F407ZG 144-pin microcontroller. The mikromedia+ for STM32 ARM®features integrated modules such as stereo MP3 codec, 4.3’’TFT 480x272touch screen display, accelerometer, microSD card slot, buzzer, IR receiver, RGB LED diode, PIN photodiode, temperature sensor, 2.4GHz RF transceiver, Ethernet transceiver, 8 Mbit flash memory, RTC battery, Li-Polimer battery charger etc. The board also contains MINI-B USB connector, power screw terminals, 2x5 JTAG connector, two 1x26 connection pads, ON/OFF switch and other. It comes pre-programmed with USB HID bootloader, but can also be programmed with external programmers,such as mikroProg™ for STM32 or ST-LINK programmer. Mikromedia is compact and slim, and perfectly fits in the palm of your hand, which makes it a convenient platform for mobile and other multimedia devices. We have also prepared a mikromedia+ SHIELD for STM32 ARM® extension board which enables you to easily expand the functionality of your board. System Specificationpower supplyVia USB cable (5V DC) or via screwterminals (2.5-12V DC)power consumption38 mA with erased MCU(when on-board modules are inactive)board dimensions119.54 x 78 mm (4.71 x 3.07 inch)weight~112 g (0.247 lbs)010405Damage resistant protective boxmikromedia+ for STM32 ARM ®user’s guide mikromedia+ for STM32ARM ® schematicFigure 1-2:Battery power supply Figure 1-3:Screw terminals power supplyFigure 1-1:USB power supplyThe mikromedia+ for STM32 ARM® board can be powered in three different ways: via USB connector using MINI-B USB cable provided with the board (CN4), via battery connector using Li-Polymer battery (CN5) or via screw terminals using laboratory power supply (CN3). After you plug in the appropriate power supply turn the power switch ON (SW1). The USB connection can provide up to 500mA of current which is more than enough for the operation of all on-board modules and the microcontroller as well. If you decide to use external power supply via screw terminals, voltage values must be within 2.5-12V DC range. Power LED ON (GREEN) indicates the presence of power supply. On-board battery charger circuit MCP73832 enables you to charge the battery over USB connection or via screw terminals. LED diode (RED) indicates when battery is charging. Charging current is ~250mA and charging voltage is 4.2V DC.01 02Using USB mikroBootloaderUsing external mikroProg™ for STM32or ST-LINK programmerFigure 3-1:STM32F407ZGARM® Cortex™-M4Microcontroller The microcontroller can be programmed in two ways:3. Programming the microcontrollerYou can program the microcontroller with bootloader which is pre programmed into the device by default. To transfer .HEX file from a PC to MCU you need bootloader software (mikroBootloader USB HID ) which can be downloaded from:After software is downloaded unzip it to desired location and start mikroBootloader USB HID software.0102Figure 3-2: USB HID mikroBootloader windowstep 1 – Connecting mikromedia01To start connect the USB cable or (if already connected)press the Reset button on your mikromedia+ board. Click the Connect button within 5s to enter the bootloader mode, otherwise existing microcontroller program will execute.010102step 3 – Selecting .HEX filestep 2 – Browsing for .HEX file Figure 3-3: Browse for HEXFigure 3-4: Selecting HEX010102Click the Browse for HEX button and from apop-up window (Figure 3.4) choose the .HEX file that will be uploaded to MCU memory.Select .HEX file using open dialog window.Click the Open button.0101step 4 – Uploading .HEX fileFigure 3-5: Begin uploadingFigure 3-6: Progress bar0101To start .HEX file uploading click theBegin uploading button.You can monitor .HEX file uploading via progress bar01step 5 – Finish uploadFigure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job01Click the OK button after uploading is finished.Board will automatically reset and after 5 seconds your new program will execute.01Programming with mikroProg™ programmerFigure 3-9:mikroProg™JTAG connectorThe microcontroller can be programmed with external mikroProg™ for STM32 programmer and mikroProg Suite™ for ARM® software. The external programmer is connected to the development system via JTAG connector, Figure 3-9.mikroProg™is a fast USB 2.0 programmer with hardware Debugger support. It supports ARM® Cortex™-M3 and Cortex™-M4 microcontrollers from STM32. Outstanding performance, easy operation and elegant design are it’s key features.Figure 3-10: mikroProg™ JTAG connector connection schematicmikroProg Suite ™ for ARM ® softwareQuick GuideClick the Detect MCU button in order to recognize the device ID.Click the Read button to read the entire microcontroller memory. You can click the Save button to save it to target HEX file.If you want to write the HEX file to the microcontroller, first make sure to load the target HEX file using the Load button. Then click the Write button to begin programming.Click the Erase button to wipe out the microcontroller memory.0102030401 0402050306Start InstallationChoose destination folderAccept EULA and continueInstallation in progressInstall for all usersFinish installationSoftware installation wizard4. RTC Battery and Reset Buttonmikromedia+ for STM32 ARM®features an RTC battery holderfor microcontroller RTC module.Battery is used as alternate sourceof power, so the RTC module cancontinue to keep time while theprimacy source of power is off orcurrently unavailable. Three typesof coin battery are supported:CR1216, CR1220 and CR1225. The board is equipped with reset button, which is located on the front side of the board. If you want to reset the circuit, press the reset button. It will generate low voltage level on the microcontroller reset pin (input).A reset can also be externally provided through thepin 27 on the sideheaders.RTC BatteryReset ButtonT1Figure 4-1: Reset circuit and RTC battery schematicThe board is equipped with 01 25MHz crystal oscillator (X5) circuit that provides external clock waveform to the microcontroller OSCO and OSCIpins. This base frequency is suitable for further clock multipliers and ideal for generation of necessary USB clock, which ensures proper operation of bootloader and your custom USB-based applications. The board also contains 02 32.768kHz crystal oscillator (X4) which provides external clock for internal RTCC module. Microcontroller ADC requires an accurate source of reference voltage signal. That is why we provide the external 03 voltage reference to the microcontroller VREF pin which is 2.048V .01020102Figure 5-1: Crystal oscillator and 2.048V reference0303Figure 5-2: Crystal oscillator and voltage reference schematicBoard contains 01 microSD card slot for using 02 microSD cards in your projects. It enables you to store large amounts of data externally, thus saving microcontroller memory. microSD cards use Serial Peripheral Interface (SPI ) for communication with the microcontroller. Ferrite and capcitor are provided to compensate the voltage and current glitch that can occur when pushing-in and pushing-out microSD card into the socket. Proper insertion of the microSD card is shown in Figure 6-1.6. microSD Card Slot01Figure 6-1: microSD card slot02C A RD S L O TFigure 6-2: microSD Card Slot module connection schematic7The development system features a 4.3‘‘TFT 480x272 display covered with aresistive touch panel. Together theyform a functional unit called a touchscreen, Figure 7-1. It enables data to beentered and displayed at the same time.The TFT display is capable of showinggraphics in 256K diffe r ent colors.Figure 7-1: Touch ScreenFigure 7-2: Touch Screen connection schematicmikromedia+ for STM32 ARM ® features stereo audio codec 01VS1053. This module enables audio reproduction and sound recording by using 02 stereo headphones with microphone connected to the system via a 03 3.5mm connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI ). IN and OUT channels are also provided on side headers.Figure 8-1:On-board VS1053MP3 codec8. Audio Module010203Figure 8-2: Audio module connection schematicARM ® Cortex ™-M4 STM32F407ZG microcontroller has integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is establish over 01 MINI-B USB connector. For proper insertion of the 02 MINI-B USB cable refer to Figure 9-1.9. USB DEVICE connectionFigure 9-1: Connecting USB cable to MINI-B USBconnector010210. USB HOST connection02Figure 10-1: ConnectingUSB cable to MINI-B USBconnector via USB adapter 01mikromedia+ for STM32 ARM® can also be used as USB HOST which enables microcontrollerto establish a connection with the target device (eg. USB keyboard, USB mouse, etc). The boardprovides necessary power supply to the target via TPS2041B IC. In order to enable the 01 USBHOST cable to be connected to the board, it is necessary to use the appropriate 02 MINI-B USBto USB type A adapter. For proper insertion refer to Figure 10-1.Figure 10-2: USB HOST module connection schematicOn board ADXL345 accelerometer is used to measureacceleration in three axis: x, y and z. The accelerometerfunction is defined by the user in the program loadedinto the microcontroller. Communication betweenthe accelerometer and the microcontrolleris performed via the I 2C interface.There is an option to select thealternate accel address withjumper J3.Figure 11-1: Accelerometermodule11. AccelerometerSince multimedia applications are getting increasinglydemanding, it is necessary to provide additionalmemory space to be used for storing more data.The flash memory module enables themicrocontroller to use additional 8Mbitflash memory. It is connectedto the microcontroller viathe Serial PeripheralInterface (SPI).12. Flash MemoryFigure 12-1: Flash memorymoduleFigure 12-2: Flash memory module connection schematic13. RF TransceiverFigure 13-1:RF transceiver antenna mikromedia+ for STM32 ARM ®board features RF transceiver chip with 2.4GHz chip antenna . It is suitable for wireless operation in the world wide ISM frequency band at 2.400 - 2.4835 GHz with air data rate up to 2Mbps. RF transceiver module is connected to the microcontroller via the Serial Peripheral Interface (SPI ). This RF transceiver module is widely used for wireless PC peripherals, remote controllers, VoIP headsets, game controllers, sensors, home and commercial automation, active RFID, toys and many more.Figure 13-2:RF transceiver moduleFigure 13-3: RF transceiver module schematicThe development system features a Ethernet transceiver module ideal for local area networking (LAN). Communication over Ethernet is based on data packets called frames. Each frame contains source and destination addresses and error-cheching data so that damaged data can be detected and re-transmitted. If you want to establish a connection with computer, router or other devices you need to use standard RJ-45 connector which is provided on mikromedia+ SHIELD for STM32 ARM®. Communication lines are also provided over side headers.LINKACTIVEFigure 14-2: Ethernet transceiver module schematicFigure 15-1: Buzzer moduleThe board is also equipped with piezo buzzer. It is an electric component which can be used to create sound waves when provided with electrical signal. Microcontroller can create sound by generating a PWM signal. Frequency of the signal determines the pitch of the sound and duty cycle of the signal can be used to increase or decrease the volume.The board also contains additional peripherals that can be very useful, such as 01 PIN photodiode, 02 IR receiver, 03 RGB led diode and 04 analog temperature sensor. PIN photodiode is a type of photo detector capable of converting light into the voltage with high sensitivity and speed of response. It is connected to the microcontroller analog pin. IR receiver is used for infrared remote control systems. The demodulated output signal obtained from IR module can be directly decoded by a microcontroller. Many of existing standard data formats are supported. RGB (Red, Green , Blue) diode is suitable for light indication in your design. Each of colour is driven separately by transistor. The analog temperature sensor converts temperature to analog voltage and it is directly connected to the microcontroller analog pin. Temperature measurement range of mikromedia+ for STM32 ARM ® board is from -20°C to 70°C.01040203Figure 16-1: Other modules schematicMany microcontroller pins are available for further connectivity via two 1x26 rows of connection pads on bothsides of the board. They are designed to match with mikromedia+ SHIELD for STM32 ARM ®.17RST 3.3VPD12RPD13PD14R PD15PE5L L PE6PE0PE1VDCPE2PE3PF1PF0PC7PC6PA3PD5PB6PB7GND 27.28.33.30.34.35.32.36.37.29.31.38.39.40.52.41.42.43.44.45.46.47.48.49.50.51.Reset pin 3.3V pwr.Audio out Audio inPWM linesInterrupt lines I2C2 lines UART2 lines UART1 lines I2C1 lines Ground5-12V input5VGNDPC2PB0PC3PE4PC0PC13PB12PA4PB1PB13PB14PB15GNDPD0PD1PA15PA5PA6PB5N P N P 3.3V 1.2.7.4.8.9.6.10.11.3.5.12.13.14.26.15.16.17.18.19.20.21.22.23.24.25.5V pwr.Ground Analog linesGPIO SPI2 lines CAN lines SPI1 lines LAN-TX 3.3V pwr.GroundPWM Interrupt I2C UART Analog lines SPI CANLAN-RXWe have prepared an extension board pin-compatible with your mikromedia+ board, which enables you to easily expand your basic board functionality. It is called mikromedia+ SHIELD for STM32 ARM ®. The shield contains01 FTDI USB-UART chip with 02USB MINI-B connector, 03 CAN transceiver with 04 CAN screw terminals, four 05 mikroBUS sockets, 06 screw terminals for external power supply, 07 side connection pads, additional 08 GNDs and 09 Ethernet connector. mikromedia+ SHIELD for STM32 ARM ® is additional board and it is not provided in the package.Figure 18-1: mikromedia+ shield0102030704050505050608080709Figure 18-2: mikromedia+ shield schematicYou still don’t have an appropriate compiler? Locate ARM ® compiler that suits you best on the Product DVD provided with the package:Choose between mikroC ™, mikroBasic ™ and mikroPascal ™ and download fully functional demo version, so you can begin building your first applications.Once you have chosen your compiler, and since you already got the board, you are ready to start writing your first projects. Visual TFT software for rapid development of graphical user interfaces enables you to quickly create your GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual TFT is rich with examples, which are an excellent starting point for your future projects. Just load the example, read well commented code, and see how it works on hardware. Visual TFT is also available on the Product DVD.You have now completed the journey through each and every feature of mikromedia+ for STM32 ARM ® board. You got to know it’s modules and organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join the users of mikromedia ™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome!CompilerProjects。

STM32_参考手册-中文.pdf

STM32_参考手册-中文.pdf

口册23 串行外设接口(SPI)小容量产品是指闪存存储器容量在16K 至32K 字节之间的STM32F101xx、STM32F102xx和STM32F103xx微控制器。

中容量产品是指闪存存储器容量在64K至128K字节之间的STM32F101xx、STM32F102xx 和STM32F103xx微控制器。

大容量产品是指闪存存储器容量在256K至512K字节之间的STM32F101xx和STM32F103xx微控制器。

互联型产品是指STM32F105xx和STM32F107xx微控制器。

除非特别说明,本章描述的模块适用于整个STM32F10xxx微控制器系列。

23.1 SPI简介在大容量产品和互联型产品上,SPI接口可以配置为支持SPI协议或者支持I2S音频协议。

SPI接口默认工作在SPI方式,可以通过软件把功能从SPI模式切换到I2S模式。

在小容量和中容量产品上,不支持I2S音频协议。

串行外设接口(SPI)允许芯片与外部设备以半/全双工、同步、串行方式通信。

此接口可以被配置成主模式,并为外部从设备提供通信时钟(SCK)。

接口还能以多主配置方式工作。

它可用于多种用途,包括使用一条双向数据线的双线单工同步传输,还可使用CRC校验的可靠通信。

I2S也是一种3引脚的同步串行接口通讯协议。

它支持四种音频标准,包括飞利浦I2S标准,MSB 和LSB对齐标准,以及PCM标准。

它在半双工通讯中,可以工作在主和从2种模式下。

当它作为主设备时,通过接口向外部的从设备提供时钟信号。

警告:由于SPI3/I2S3 的部分引脚与JTAG 引脚共享(SPI3_NSS/I2S3_WS 与JTDI ,SPI3_SCK/I2S3_CK与JTDO),因此这些引脚不受IO控制器控制,他们(在每次复位后) 被默认保留为JTAG用途。

如果用户想把引脚配置给SPI3/I2S3,必须(在调试时)关闭JTAG并切换至SWD接口,或者(在标准应用时)同时关闭JTAG和SWD接口。

V100用户使用手册

V100用户使用手册

V100高清PTZ摄像机用户使用手册(中文版)深圳市迎风传讯科技有限公司Infor-Trans Technology Inc.前言:感谢您使用HD高清彩色摄像机。

本手册详细介绍了通讯型高清摄像机的功能、安装和使用操作的一般原则及方法。

用户在安装使用前,敬请详细阅读。

警告!●为防止本产品或与其相连接的其他的任何产品受到损坏,本产品只能在规定的范围内使用;●不要使本机受到淋雨或受潮;●为防止触电危险,不要打开机壳;只能由合格的技术人员去执行安装和维修;●不要在超出限定温度、湿度或电源规格的状态下使用;●只能使用本公司推荐的备用零件;●清洗摄像机镜头时,请使用干的软布擦拭,如污垢严重时,请使用中性清洁剂轻轻擦拭。

不要用强烈的或带有腐蚀性的清洁剂,以免镜头划伤,影响图像效果;●要特别小心,轻拿轻放,勿用力挤压摄像机各结构部件,以免造成摄像机故障。

注意!特定频率下的电磁场可能会影响本机的图像【目录】1、注意事项 (3)2、随机附件 (3)3、快速使用摄像机 (4)4、产品亮点 (7)5、摄像机接口说明 (8)6、遥控器说明 (9)7、红外遥控器控制 (10)8、VISCA RS-232接口针分配 (14)9、串口控制 (15)10. 菜单设置 (20)11. 维护及故障处理 (25)注意事项●电气安全本产品安装使用必须严格遵守当地各项电气安全标准。

●小心运输运输、保管及安装过程中要防止重压、剧烈振动、浸泡对产品造成的损坏。

●电源极性本产品采用直流+12V电源,最大电流2A,电源插头极性如下图所示。

●小心安装不要抓住摄像机头部来移动摄像机。

不要用手来旋转摄像机的头部,否则可能会引起机械故障。

本产品应放在平稳的桌面或其它水平面上,不可将本产品倾斜安装;如果将摄像机安装在TV和个人电脑上,可以在底座上用四个双面胶垫固定。

本产品外壳为有机材料,严禁与有可能造成外壳腐蚀的各种液体、气体或固体物质接触;安装时应确保云台转动范围内无任何障碍在完成全部安装前请勿通电。

(整理)ARM开发板手册.

(整理)ARM开发板手册.

火牛STM32开发板用户手册1.产品规格火牛STM32开发板采用意法半导体(ST)公司推出基于ARM CortexM3内核的STM32F103增强型系列芯片STM32F103VC组成。

板上资源丰富,具有以太网(Ethernet)、MP3、USB主机(Host)、USB从机(Device)、nand flash、TFT LCD、串口(UASRT)、I2C、SPI、AD、DA、PWM、蜂鸣器等接口。

颇具特色的设计理念加上丰富的例程(均提供源代码)使得火牛STM32开发板非常适合初学者学习入门和项目评估使用。

板上资源:●CPU:意法半导体公司(ST)基于ARM Cortex-M3的32位处理器芯片STM32F103VC LQFP100脚,片内具有256KB FLASH,48KB RAM (片上集成12Bit A/D、D/A、PWM、CAN、USB、SDIO、FSMC等资源)。

■32位RISC性能处理器■32位ARM Cortex-M3结构优化■72 MHz 运行频率,1.25 DMIPS/MHz■硬件除法和单周期乘法■快速可嵌套中断,6~12个时钟周期■具有MPU保护设定访问规则●支持一个TFT彩色液晶屏(需要另外搭配),搭配 2.8寸TFT真彩触摸屏模块或 3.2寸TFT真彩触摸屏模块(由用户选择)大屏幕320*240,26万色TFT-LCD,支持8/16位总线接口,镜面屏,超高高度,模拟IO控制,彩屏模块上配置ADS7843触摸控制器,支持一个SD卡(SPI方式)可用于存储图片、数据等,支持一个AT45DBxxx的DATA FLASH(可用于存储汉字库和图片或数据等)。

●板载128M或256M NAND FLASH模拟IO控制,可以自行更换更大容量的NAND FLASH 如:512M。

满足大容量数据采集、数据表格存储,文件管理等应用,MP3歌曲存放等要求。

●板载VS1003B 高性能MP3解码芯片,支持解码音乐格式包括MP3、WMA、WA V、MIDI、P-MIIDI,录音编码格式IMA ADPCM(单声道)。

STM32_RM_CH_V10_1中文参考手册

STM32_RM_CH_V10_1中文参考手册

STM32F10xxx参考手册
STM32系列产品命名规则
示例: STM32 F 103 C 8 T 6 A xxx
产品系列 STM32 = 基于ARM®的32位微控制器
产品类型 F = 通用类型
产品子系列 101 = 基本型 102 = USB基本型,USB 2.0全速设备 103 = 增强型 105或107 = 互联型
STM32微控制器产品中大多数功能模块都是在多个产品(或所有产品)中共有的并且是相同的,因此只有一 份STM32微控制器产品的技术参考手册对应所有这些产品。技术参考手册对每种功能模块都有专门的一 个章节对应,每章的开始申明了这个功能模块的适用范围;例如第5章”备份寄存器”适用于整个STM32微 控制器系列,第27章”以太网”只适用于STM32F107xx互联型产品。
引脚数目 T = 36脚 C = 48脚 R = 64脚 V = 100脚 Z = 144脚
闪存存储器容量 4 = 16K字节的闪存存储器 6 = 32K字节的闪存存储器 8 = 64K字节的闪存存储器 B = 128K字节的闪存存储器 C = 256K字节的闪存存储器 D = 384K字节的闪存存储器 E = 512K字节的闪存存储器

第28章:器件电子签名
第29章:调试支持(DBG)
● 表示对应的章节是必读的
◎◎◎◎◎◎◎◎◎◎◎◎◎◎◎◎◎
◎ 表示对应的章节是选读的
注:请区分第7章的内容只适合于互联型产品,第6章的内容适合于除互联型产品以外的产品。
参照2009年12月 RM0008 Reference Manual 英文第10版 本译文仅供参考,如有翻译错误,请以英文原稿为准。请读者随时注意在ST网站下载更新版本
由于我们的水平有限以及文档篇幅的庞大,翻译的过程中难免会有错误和遗漏的地方,希望广大读者们 能够及时向我们反馈您在阅读期间所发现的错误和问题,我们会尽快在下一个版本中更正。您可以发邮 件到mcu.china@向我们提出您的意见和建议,谢谢。

STM32f10固件库使用手册中文版

STM32f10固件库使用手册中文版

STM32f10固件库使用手册中文版UM0427 用户手册32 位基于ARM 微控制器STM32F101xx 与STM32F103xx固件函数库介绍本手册介绍了32 位基于ARM 微控制器STM32F101xx 与STM32F103xx 的固件函数库。

该函数库是一个固件函数包,它由程序、数据结构和宏组成,包括了微控制器所有外设的性能特征。

该函数库还包括每一个外设的驱动描述和应用实例。

通过使用本固件函数库,无需深入掌握细节,用户也可以轻松应用每一个外设。

因此,使用本固态函数库可以大大减少用户的程序编写时间,进而降低开发成本。

每个外设驱动都由一组函数组成,这组函数覆盖了该外设所有功能。

每个器件的开发都由一个通用API (application programming interface 应用编程界面)驱动,API 对该驱动程序的结构,函数和参数名称都进行了标准化。

所有的驱动源代码都符合“Strict ANSI-C”标准(项目于范例文件符合扩充ANSI-C 标准)。

我们已经把驱动源代码文档化,他们同时兼容MISRA-C 2004 标准(根据需要,我们可以提供兼容矩阵)。

由于整个固态函数库按照“Strict ANSI-C”标准编写,它不受不同开发环境的影响。

仅对话启动文件取决于开发环境。

该固态函数库通过校验所有库函数的输入值来实现实时错误检测。

该动态校验提高了软件的鲁棒性。

实时检测适合于用户应用程序的开发和调试。

但这会增加了成本,可以在最终应用程序代码中移去,以优化代码大小和执行速度。

想要了解更多细节,请参阅Section 2.5。

因为该固件库是通用的,并且包括了所有外设的功能,所以应用程序代码的大小和执行速度可能不是最优的。

对大多数应用程序来说,用户可以直接使用之,对于那些在代码大小和执行速度方面有严格要求的应用程序,该固件库驱动程序可以作为如何设置外设的一份参考资料,根据实际需求对其进行调整。

此份固件库用户手册的整体架构如下:定义,文档约定和固态函数库规则。

WY-STM32软件使用手册

WY-STM32软件使用手册

1.基本设置a)H-JTAG设置图1-1 LPT JTAG设置图1-2 LPT Port设置图1-3 TAP设置图1-4 选择芯片组型号图1-5 检测目标b)打开工程文件(后缀为eww)图1-6 工程文件c)编译工程(或快捷键F 7)图1-7 编译工程d)下载e)运行2.LED的使用a)打开工程文件WY-STM32\ 1_Led\EWARMv5\project.eww,编译并下载b)结果效果如下图所示:3.中断a)打开工程文件WY-STM32\ 2_EXTI\EWARMv5\project.eww,编译并下载b)结果程序开始点亮LD2,每次触发按键RIGHTD都会产生中断,中断响应操作就是取反LD24.按键&蜂鸣器a)打开工程文件WY-STM32\ 4_Button&Beep\EWARMv5\project.eww,编译并下载b)结果只要在任何一个时刻存在按键动作,则蜂鸣器响按下LEFT、RIGHT、UP、DOWN按键则相应LD1、LD2、LD3、LD4点亮,如果同时按下几个按键,则几个按键的相应LED点亮5.串口1和串口3a)打开工程文件WY-STM32\ 5_USART\USART1\EWARMv5\project.eww,编译并下载b)串口1显示设置:其中右图中的Port 选项为不定值,需根据具体情况而定 c) 结果程序一开始会显示如下信息:接着从键盘输入0~9任意一个数字N ,终端则输出0~N 之间N+1个数字,效果如下:如果输入一个非0~9的字符,则输出0~9十个数字,如下e)串口3显示设置:6.12864 LCD显示a)打开工程文件WY-STM32\ 6_12864\EWARMv5\project.eww,编译并下载b)结果:LCD屏幕依次显示四行信息如下:7.RTCa)打开工程文件WY-STM32\ 7_RTC\EWARMv5\project.eww,编译并下载b)结果8.I2C-24C02测试a)打开工程文件WY-STM32\ 8_I2C-24Cxx\EWARMv5\project.eww,编译并下载b)9.ADCa)打开工程文件WY-STM32\ 9_ADC\EWARMv5\project.eww,编译并下载b)结果范围为0~3.3VP6开关的PV1拨向下,ADC检测脚悬空,ADC测出的电压为3.3V的一半,即上图中显示的1655mv10.RS485本实验是实现两块STM32板之间的数据通信,实验前提:J8、J9两个插座分别用短号帽短接上面两个排阵,J6用短号帽短接,而数据是通过P5插座的1和2两只引脚的,而且485是有别于串口的交叉通讯,485采用平行通讯,所以两块STM32板上P5的1脚和1脚相连接,2脚和2脚相连接。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

引脚
ST8024 信号 信号描述
对应 STM32 引脚
5V/3V
Smart card 电源选择脚
PD11
I/OUC
MCU 数据输入和输出口
PB10
XTAL1
晶振或外部时钟输入
PB12
OFF
检测 Smart Card 插入,产生中断 PE14
到 MCU
RSTIN
卡复位信号输入
PB11
CMDVCC
PE7
2.12 SD 卡接口
STM32 评估板具有 SD 卡接口,支持 SD 卡的读写。SD 卡和 STM32 接口的连接信号如下:
引脚
S D 卡 接 口 信 信号描述 号
对应 STM32 引脚

CD/DAT3
片选
PE3

CMD
MOSI
PA7

VSS
GND

VDD
+3V3

CLK

VSS

DAT0

DAT1
2.15 模拟输入
BNC 接头
引脚号 1 2 3
功能描述 GND GND GND
引脚号 4 5
功能描述 GND Analog input/PC1
2.16 IrDA
STM32 开发板支持红外接收,STM32 评估板上的 IrDA 接收器连接到的UART3上,可 以通过条线JP5来设置使能或禁止红外接收。
短接
电机电流抽样控制被使能
断开
电机电流抽样控制不被使能
短接 断开
连接Reset和调试口的TRST线 不连接Reset和调试口的TRST线
供电电源选择 USB短接 选择USB供电
JP11 ( 注 意 只 能 短 PSU短接 选择DCJack外接直流电源供电
接其中的一组) DTB短接 通过外接排针从外板供电
第二章:STM103V100X硬件介绍
STM103V100 功能模块图如下图所示:
2.1 接口一览表
SD 卡座
MOTOR Connector
BNC 接头
COM1
COM0
红外发射 接收头 电源跳 线选择 USB ( 供 电+通信) 屏幕亮度 调节电位 外接直流 电源接口
MIC 输入调 节电位器
数字温度传感器
10 12 14
GND GND 母线电压 GND GND GND GND
散热器温度
3.3V 电源 GND GND 编码器
2.11 Smart Card 接口
通过 Smart card 接口芯片 ST8024,STM32 评估板可支持 3V 和 5V 的 smart 卡。ST8024 和
STM32 评估板的接口连接信号如下:
连通了Ulinkme通过JTAG调试外 都短接 面板的四根控制线(此时需要断
开JP9,即断开子板电源)
断开
断开了Ulinkme通过JTAG调试外 面板的四根控制线
短接 CAN终端寄存器被使能
断开 CAN终端寄存器不被使能
短接 断开 短接
irDA被使能 irDA被关闭 Device on
断开
Device off
引脚号 1 3 5 7 9
功能描述 3.3V 电源 GND GND GND GND
引脚号 2 4 6 8 10
2.19 人机界面(LCD)接口
Color TFT LCD 引脚 信号描述
JTAG 调试接口定义如下:
引脚号 1 3 5 7 9 11 13 15 17 19
功能描述 3.3V 电源 TRST TDI TMS TCK RTCK TDO RESET DBGRQ DBGACK
SWD 调试接口 CN9 接口定义
引脚号 2 4 6 8 10 12 14 16 18 20
功能描述 3.3V GND GND GND GND GND GND GND GND GND
CAN DB9 连接器引脚定义:
引脚号
功能描述
1,4,8,9
NC
2
CANL
引脚号 7 3,5,6
功能描述 CANH GND
2.14 温度传感器
I2C接口的温度传感器 STLM75 连接到 STM32 开发板的 I2C1 接口上,两个分立的 N 通 道增强型 MOS-FET 用于转换电平,使得不同电压的器件能接入到同一 I2C 总线上的。
第一章:概述
STM103V100 是英蓓特公司新推出的一款基于 ST 意法半导体 STM32 系列处理器 (Cortex-M3 内核)的全功能评估板。该评估板采用主板与子板组合的工作方式,只需通过换 插不同的 CPU 子板,即可实现 STM32 系列多款处理器的代码调试。STM103V100 评估板有 USB, Motor Control , CAN, SD 卡, Smart 卡,UART 等丰富的外设,有助于用户评估 STM32 的性能。
STM103V100 评估板最大特色是板上集成了 uLinkMe 调试电路,用户只须一跟 USB 线 即可进行调试,另外 STM103V100 评估板还支持 JTAG 和 SWD 串行调试方式,非常方便。
STM103V100 评估板主要性能:
子板主要性能: ◆ 处 理 器 : STM32F103VBT6, 兼 容 STM32F103V8T6(100 pins),STM32F103RBT6, STM32F103R8T6,STM32F103C8T6, STM32F103C6T6. ◆RTC ◆8M byte SPI Flash
跳线
描述
JP5
On
使能 IrDA (默认)
off
禁止 IrDA
2.17 USB
STM32 支持 USB2.0,通过STM32评估板上的 USB B 型口(CN1)可进行 USB 全速通 讯,也可以通过该USB口给 STM32 评估板提供5V DC(500mA 限流)。
2.18 调试接口
STM32 评估板有三种调试接口: ■CN7,标准的20脚 JTAG 仿真调试接口, ■CN9,10 针 SWD 调试接口,支持新的 ARM Cortex-M3 串行调试功能 ■CN4,USB B 型口(CN1),可连接板上的 Ulink Me 调试。
信号定义:
引脚编号 描述

紧急停止

PWM-UH

PWM-UL

PWM-VH
对应的引脚 PE15
引脚编号 2 4 6 8
描述 GND GND GND GND
对应的引脚
9 11 13
PWM-VL PWM-WH PWM-WL A 相电流 B 相电流 C 相电流 NTC 旁路继电 器 能耗制动 PWM (+5V) PFC SYNC PFC PW< 编码器A 编码器B
STM32V100 评估板用户手册 V1.0
深圳市英蓓特信息技术有限公司 Embest info & Tech Co., Ltd.
地址:深圳市罗湖区太宁路 85 号罗湖科技大厦 509 室(518020) Telephone: 86-755-25635626 25638952 25638953 25631365 Fax: 86-755-25616057 E-mail: sales@ support@ Website:
BNC 接头 5V DC
USB type B 仿真调试接头 UART2 DB9 公接头 COM 1
JTAG 接口 耳机插孔 SWD 串行调试接口 子板连接器 2 UART1 DB9 公接头 COM 0 外引排针 1 外引排针 2 电机接口 子板连接器 1 SD 卡接口
2.2 跳线一览表
跳线 编号
描述
短接
连接滤波电容
JP12 MOTOR相关
断开
断开电容连接
2.3 电源
STM32 评估板有三种供电方式,通过 JP11 选择以下其中一种方式供电。 1. 通过主板电源端子J1 输入5VDC。 2. 通过主板上 USB 端口(CN1)供电,供电电流小于5oomA.。 3. 通过外接排针 CN17(CN13)和 CN18(CN12),从外板供电。 主板上DC5V输入端子(CN4)信号为内正外负,如下图所示:
2.8 串行 flash
STM32评估板子板上外扩了 64Mbit 的串行 SPI flash。与 SD 卡共用 SPI 通信端口,使 用不同的片选,此 FLASH 的片选是被 PA4 口控制。
2.9 串口
STM32 开发板引出了两路 UART,UART1(CN11)和 UART2(CN6)。两路串口均连接到公的 DB9 连接头。UART2 支持 RTS/CTS 握手信号。
引脚号 6 7 8 9
功能描述 连接到引脚4 连接到引脚 8 连接到引脚 7 NC
2.10 电机控制接口
STM32开发板上有一个34pin 的感应电机控制接口,该接口提供驱动板所需的控制信 号,并从驱动板接收回馈信号。这些信号包括紧急停止信号,调速信号,六路 PWM 控制信 号,以及从驱动板反馈回来的三相电机电流,母线电压,散热器温度等信号。 电机控制接口 CN14 接口图:
MHz晶振拔掉。
2.6 复位方式
STM32 评估板有三种复位方式: ■ 通过子板上的复位按键 B1 复位 ■ 如果短接 JP10,可通过 JTAG 调试口输入复位信号 ■ 通过外接排针 CN17(CN13)和 CN18(CN12),从外板输入复位信号
2.7 音频
STM32评估板有录音和回放功能。通过条线 JP6 和 JP7 设置禁止和使能,通过可调电阻 RV2 调整声音大小,通过RV3调整麦克风的增益。
◆启动跳线设置
◆将所有的引脚引出,通过排针和 Base Board V100 相连
相关文档
最新文档