STM32F103 MCU开发方案
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OLIMEX STM32F103 MCU开发方案
关键词:ARM,MCU,USB,CAN,工业控制,医疗设备,PWM,
摘要:OLIMEX公司的STM-H103开发板是专门用来开发ST公司的32位MCU
STM32F103xx的。
STM32F103xx是采用高性能ARM Cortex-M3 32位 RISC内核的MCU,工作在72 MHz的频率,所有系列工作在2.0到3.6V电源,提供两个12位ADC,闪存高达128KB,SRAM高达20KB以及有大量的增强性能的IO与外设,工作温度有两种范围:−40 到+85 °C和−40 到+105 °C,广泛应用在各种工业应用如马达驱动和应用控制,医疗设备,PC外设和GPS平台以及告警系统等。
本文介绍了ST公司的32位MCU
STM32F103xx的主要性能,方框图以及OLIMEX公司的STM-H103开发板的主要性能,方框图和开发板的主要电路图。
OLIMEX公司的STM-H103开发板是专门用来开发ST公司的32位MCU STM32F103xx的。
STM32F103xx是采用高性能ARM Cortex-M3 32位 RISC内核的MCU,工作在72 MHz的频率,所有系列工作在2.0到3.6V电源,提供两个12位ADC,闪存高达128KB,SRAM高达20KB以及有大量的增强性能的IO与外设,工作温度有两种范围:−40 到+85 °C和−40 到+105 °C,广泛应用在各种工业应用如马达驱动和应用控制,医疗设备,PC外设和GPS 平台以及告警系统等。
本文介绍了ST公司的32位MCU STM32F103xx的主要性能,方框图以及OLIMEX公司的STM-H103开发板的主要性能,方框图和开发板的主要电路图。
一.STM32F103x6 STM32F103x8 STM32F103xB主要性能
The STM32F103xx performance line family incorporates the high-performance ARM Cortex-M3 32-bit RISC core operating at a 72 MHz frequency, high-speed embedded memories (Flash memory up to 128Kbytes and SRAM up to 20 Kbytes), and an extensive range of enhanced I/Os and peripherals connected to two APB buses. All devices offer two 12-bit ADCs, three general purpose 16-bit timers plus one PWM timer, as well as standard and advanced communication interfaces: up to two I2Cs and SPIs, three USARTs, an USB and a CAN.
The STM32F103xx performance line family operates from a 2.0 to 3.6 V power supply. It is available in both the −40 to +85 °C temperature range and the −40 to +105 °C extended temperature range. A comprehensive set of power-saving mode allows to design low-power applications.
The complete STM32F103xx performance line family includes devices in 5 different package types: from 36 pins to 100 pins. Depending on the device chosen, different sets of peripherals are included, the description below gives an overview of the complete range of peripherals proposed in this family.
These features make the STM32F103xx performance line microcontroller family suitable for a wide range of applications:
● Motor drive and application control
● Medical and handheld equipment
● PC peripherals gaming and GPS platforms
● Industrial applications: PLC, inverters, printers, and scanners
● Alarm systems, Video intercom, and HVAC
STM32F103xx主要特性:
■ Core: ARM 32-bit Cortex™-M3 CPU
– 72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1) performance at 0 wait state memory access
– Single-cycle multiplication and hardware division
■ Memories
– 32 to 128 Kbytes of Flash memory
– 6 to 20 Kbytes of SRAM
■ Clock, reset and supply management
– 2.0 to 3.6 V application supply and I/Os
– POR, PDR, and programmable voltage detector (PVD)
– 4-to-16 MHz crystal oscillator
– Internal 8 MHz factory-trimmed RC
– Internal 40 kHz RC
– PLL for CPU clock
– 32 kHz oscillator for RTC with calibration
■ Low power
– Sleep, Stop and Standby modes
– VBAT supply for RTC and backup registers
■ 2 x 12-bit, 1 μs A/D converters (up to 16 channels)
– Conversion range: 0 to 3.6 V
– Dual-sample and hold capability
– Temperature sensor
■ DMA
– 7-channel DMA controller
– Peripherals supported: timers, ADC, SPIs, I2Cs and USARTs
■ Up to 80 fast I/O ports
– 26/37/51/80 I/Os, all mappable on 16 external interrupt vectors, all 5 V-tolerant except for analog inputs
■ Debug mode
– Serial wire debug (SWD) & JTAG interfaces
■ Up to 7 timers
– Up to three 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter
– 16-bit, 6-channel advanced control timer:
up to 6 channels for PWM output, deadtime generation and emergency stop
– 2 watchdog timers (Independent and Window)
– SysTick timer: a 24-bit downcounter
■ Up to 9 communication interfaces
– Up to 2 x I2C interfaces (SMBus/PMBus)
– Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
– Up to 2 SPIs (18 Mbit/s)
– CAN interface (2.0B Active)
– USB 2.0 full speed interface
■ Packages are ECOPACK® (RoHS compliant)
图1.STM32F103xx 方框图
二.STM-H103 开发板主要性能
STM32-H103board is entry level development board for the new ARM Cortex M3 family of devices produced by ST Microelectronics Inc.
With STM32-H103 you can explore the features of STM32 family on budged, the board have everything necessary to build simple applications:
USB port where power is taken and power supply circuit, reset and oscillator circuits, JTAG port for programming and debugging, two status LEDs and user button. Although very simple this board will allow you to easily build USB application like PC mouse, USB mass storage device, USB Audio class device, USB to Virtual RS232 port. There are plenty of GPIOs on extension headers where you can connect your additional circuits.
- CPU: STM32F103RBT6 ARM 32 bit CORTEX M3™
- JTAG connector with ARM 2x10 pin layout for programming/debugging with ARM-JTAG, ARM-USB-OCD, ARM-USB-TINY
- USB connector
- user button
- RESET button
- status LED
- power supply LED
- on board voltage regulator 3.3V with up to 800mA current
- single power supply: takes power from USB port or extension connector pin - 8 Mhz crystal oscillator
- 32768 Hz crystal and RTC backup battery connector
- extension headers for all uC ports
- PCB: FR-4, 1.5 mm (0,062"), soldermask, silkscreen component print
- Dimensions: 61x 34mm (2.4 x 1.3")
- Distance between the extension connectors: 25.4 mm (1")
图2. STM32-H103开发板外形图
图3. STM32-H103方框图
图4. STM32-H103开发板电路图。