4 芯片相关手册资料stm32f031xx_第1页
4 芯片相关手册资料stm32f031xx_第2页
4 芯片相关手册资料stm32f031xx_第3页
4 芯片相关手册资料stm32f031xx_第4页
4 芯片相关手册资料stm32f031xx_第5页
已阅读5页,还剩94页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、STM32F031xxARM-based 32-bit MCU with up to 32 Kbytes Flash, timers, ADC and communication interfaces, 2.0-3.6 VDatasheet - target specificationFeaturesCore: ARM 32-bit Cortex-M0 CPU, frequency up to 48 MHzMemories 16 to 32 Kbytes of Flash memory 4 Kbytes of SRAM with HW parity checking CRC calculati

2、on unitReset and supply management1 x 16-bit timer, with IC/OC and OCN, deadtime generation, emergency stop and modulator gate for IR control1 x 16-bit timer with 1 IC/OCIndependent and system watchdog timers SysTick timer: 24-bit downcounterVoltage range: 2.0 to 3.6 VPower-on/Power-down reset (POR/

3、PDR)Programmable voltage detector (PVD) Low power modes: Sleep, Stop and StandbyVBAT supply for RTC and backup registersCalendar RTC with alarm and periodic wakeup from Stop/StandbyCommunication interfaces1 x I2C interface; supporting Fast Mode Plus (1 Mbit/s) with 20 mA current sink, SMBus/PMBus, a

4、nd wakeup from STOP1 x USART supporting master synchronous SPI and modem control; one with ISO7816 interface, LIN, IrDA capability auto baud rate detection and wakeup feature1 x SPI (18 Mbit/s) with 4 to 16 programmable bit frames, with I2S interface multiplexedClock management4 to 32 MHz crystal os

5、cillator32 kHz oscillator for RTC with calibration Internal 8 MHz RC with x6 PLL option Internal 40 kHz RC oscillatorUp to 39 fast I/Os All mappable on external interrupt vectors Up to 25 I/Os with 5 V tolerant capability5-channel DMA controller1 12-bit, 1.0 s ADC (up to 10 channels) Conversion rang

6、e: 0 to 3.6V Separate analog supply from 2.4 up to3.6 VUp to 9 timersSerial wire debug (SWD) 96-bit unique IDExtended temperature range: -40 to +105C All packages ECOPACK2Table 1. Device summary1 x 16-bit 7-channel advanced-control timer for 6 channels PWM output, with deadtime generation and emerge

7、ncy stop1 x 32-bit and 1 x 16-bit timer, with up to 4 IC/OC, usable for IR control decoding1 x 16-bit timer, with 2 IC/OC, 1 OCN, deadtime generation and emergency stopJanuary 2014DocID025743 Rev 11/99This is preliminary information on a new product foreseen to be developed. Details are subject to c

8、hange without ReferencePart numberSTM32F031xxSTM32F031C4, STM32F031F4, STM32F031G4, STM32F031K4 STM32F031C6, STM32F031F6, STM32F031G6, STM32F031K6LQFP48 7x7UFQFPN32 5x5TSSOP20 UFQFPN28 4x4ContentsSTM32F031xxContents1Introduction82Description93Functional overview3.43.5ARM

9、CortexTM-M0 core with embedded Flash and SRAM12Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Cyclic redundancy check calculation unit (C

10、RC) . . . . . . . . . . . . . . . . . . .Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121213..4Power supply schemes13Power supply supervisors13Voltage regulator13Low-power modes3.9Clocks and startup . . . . . . . . .

11、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . .Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . .Interrupts and events . . . . . . . . . . . . . . . . . .

12、. . . . . . . . . . . . . . . . . . . . . .151616.2Nested vectored interrupt controller (NVIC)16Extended interrupt/event controller (EXTI)163.10Analog to digital converter (ADC)Temperature sensor17Internal voltage reference (VREFINT)17VBAT battery voltage monitoring183.

13、11Timers and watchdogs1.5Advanced-control timer (TIM1)19General-purpose timers (TIM2.3, TIM14.17)19Independent watchdog (IWDG)20System window watchdog (WWDG)20SysTick timer4Real-time clock (RTC) and backup registers . . . . . . . . . . . . . . . . . . . . .

14、.Inter-integrated circuit interfaces (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . .Universal synchronous/asynchronous receiver transmitters (USART) . .2021222/99DocID025743 Rev 1STM32F031xxContentsSerial peripheral interface (SPI)/Inter-integrated sound interfaces (I2S) . 23Serial wire

15、debug port (SW-DP)233.153.164Pinouts and pin description245Memory mapping346Electrical characteristics376.1Parameter conditions3...66.1.7Minimum and maximum values37Typical values37Typical curves37Loading capacitor37Pin input voltage37Power supply scheme38Current consumpti

16、on measurement396.26.3Absolute maximum ratings39Operating conditions4.........186.3.19General operating conditions41Operating conditions at power-up / power-down42Embedded reset and power control block character

17、istics42Embedded reference voltage43Supply current characteristics44Wakeup time from low-power mode54External clock source characteristics55Internal clock source characteristics61PLL characteristics63Memory characteristics64EMC characteristics64Electrical sensitivity characteristics66I/O current inj

18、ection characteristics66I/O port characteristics67NRST pin characteristics7212-bit ADC characteristics73Temperature sensor characteristics77VBAT monitoring characteristics77Timer characteristics77DocID025743 Rev 13/99ContentsSTM32F031xx6.3.20Communication interfaces787Package characteristics867.17.2

19、Package mechanical data86Thermal characteristics9.2Reference document95Selecting the product temperature range958Part numbering979Revision history. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984/99DocID025743 Rev 1STM32F031xxList of tablesList of tab

20、lesTable 1.Table 2.Table 3.Table 4.Table 5.Table 6.Table 7.Table 8.Table 9.Table 10.Table 11.Table 12.Table 13.Table 14.Table 15.Table 16.Table 17.Table 18.Table 19.Table 20.Table 21.Table 22.Table 23.Table 24.Table 25.Table 26.Table 27.Device summary1STM32F031xx family device features and periphera

21、l counts10Temperature sensor calibration values17Internal voltage reference calibration values17Timer feature comparison18Comparison of I2C analog and digital filters21STM32F031xx I2C implementation22STM32F031xx USART implementation22STM32F031xx SPI/I2S implementation23Legend/abbreviations used in t

22、he pinout table26Pin definitions27Alternate functions selected through GPIOA_AFR registers for port A32Alternate functions selected through GPIOB_AFR registers for port B33STM32F031xx peripheral register boundary addresses35Voltage characteristics39Current characteristics40Thermal characteristics40G

23、eneral operating conditions41Operating conditions at power-up / power-down42Embedded reset and power control block characteristics42Programmable voltage detector characteristics42Embedded internal reference voltage43Typical and maximum current consumption from the VDD supply at VDD = 3.645Typical an

24、d maximum current consumption from the VDDA supply46Typical and maximum current consumption in Stop and Standby modes47Typical and maximum current consumption from the VBAT supply48Typical current consumption in Run mode, code with data processingrunning from Flash49Typical current consumption in Sl

25、eep mode, code running from Flash or RAM50Switching output I/O current consumption52Peripheral current consumption53Low-power mode wakeup timings54High-speed external user clock characteristics.55Low-speed external user clock characteristics56HSE oscillator characteristics57LSE oscillator characteri

26、stics (fLSE = 32.768 kHz)59HSI oscillator characteristics61HSI14 oscillator characteristics62LSI oscillator characteristics63PLL characteristics63Flash memory characteristics64Flash memory endurance and data retention64EMS characteristics65EMI characteristics65ESD absolute maximum ratings66Electrica

27、l sensitivities66I/O current injection susceptibility67I/O static characteristics67Table 28.Table 29.Table 30.Table 31.Table 32.Table 33.Table 34.Table 35.Table 36.Table 37.Table 38.Table 39.Table 40.Table 41.Table 42.Table 43.Table 44.Table 45.Table 46.Table 47.DocID025743 Rev 15/99List of tablesST

28、M32F031xxTable 48.Table 49.Table 50.Table 51.Table 52.Table 53.Table 54.Table 55.Table 56.Table 57.Table 58.Table 59.Table 60.Table 61.Table 62.Table 63.Table 64.Output voltage characteristics70I/O AC characteristics71NRST pin characteristics72ADC characteristics73RAIN max for fADC = 14 MHz74ADC acc

29、uracy75TS characteristics77VBAT monitoring characteristics77TIMx characteristics77IWDG min/max timeout period at 40 kHz (LSI)78WWDG min/max timeout value at 48 MHz (PCLK)78I2C characteristics79I2C analog filter characteristics80SPI characteristics81I2S characteristics83LQFP48 7 x 7 mm, 48-pin low-pr

30、ofile quad flat package mechanical data87UFQFPN32 5 x 5 mm, 32-lead ultra thin fine pitch quad flat no-lead packagemechanical data89UFQFPN28 4 x 4 mm, 28-lead ultra thin fine pitch quad flat no-lead packagemechanical data91TSSOP20 20-pin thin shrink small outline package mechanical data93Package the

31、rmal characteristics95Ordering information scheme97Document revision history.98Table 65.Table 66.Table 67.Table 68.Table 69.6/99DocID025743 Rev 1STM32F031xxList of figuresList of figuresFigure 1.Figure 2.Figure 3.Figure 4.Figure 5.Figure 6.Figure 7.Figure 8.Figure 9.Figure 10.Figure 11.Figure 12.Fig

32、ure 13.Figure 14.Figure 15.Figure 16.Figure 17.Figure 18.Figure 19.Figure 20.Figure 21.Figure 22.Figure 23.Figure 24.Figure 25.Figure 26.Figure 27.Figure 28.Figure 29.Figure 30.Figure 31.Figure 32.Figure 33.Figure 34.Figure 35.Figure 36.Figure 37.Block diagram11Clock tree15LQFP48 48-pin package pino

33、ut24UFQFPN32 32-pin package pinout24UFQFPN28 28-pin package pinout25TSSOP20 20-pin package pinout25memory map34Pin loading conditions37Pin input voltage37Power supply scheme38Current consumption measurement scheme39High-speed external clock source AC timing diagram55Low-speed external clock source A

34、C timing diagram56Typical application with an 8 MHz crystal58Typical application with a 32.768 kHz crystal60HSI oscillator accuracy characterization results61HSI14 oscillator accuracy characterization results62TC and TTa I/O input characteristics69Five volt tolerant (FT and FTf) I/O input characteri

35、stics69I/O AC characteristics definition72Recommended NRST pin protection73ADC accuracy characteristics76Typical connection diagram using the ADC76I2C bus AC waveforms and measurement circuit80SPI timing diagram - slave mode and CPHA = 082SPI timing diagram - slave mode and CPHA = 182SPI timing diag

36、ram - master mode83I2S slave timing diagram (Philips protocol)84I2S master timing diagram (Philips protocol)85LQFP48 - 7 x 7 mm, 48-pin low-profile quad flat package outline87LQFP48 recommended footprint.88UFQFPN32 - 5 x 5 mm, 32-lead ultra thin fine pitch quad flat no-lead package outline89UFQFPN32

37、 recommended footprint90UFQFPN28 - 4 x 4 mm, 28-lead ultra thin fine pitch quad flat no-lead package outline91UFQFPN28 recommended footprint92TSSOP20 - 20-pin thin shrink small outline93TSSOP20 recommended footprint94DocID025743 Rev 17/99IntroductionSTM32F031xx1IntroductionThis datasheet provides th

38、e ordering information and mechanical device characteristics of the STM32F031xx microcontrollers.This document should be read in conjunction with the STM32F0xxxx reference manual (RM0091). The reference manual is available from the STMicroelectronics website .For information on the ARM Cor

39、tex-M0 core, please refer to the Cortex-M0 Technical Reference Manual, available from the website at the following address: /help/index.jsp?topic=/com.arm.doc.ddi0432c/index.html.8/99DocID025743 Rev 1STM32F031xxDescription2DescriptionThe STM32F031xx microcontrolle

40、rs incorporate the high-performance ARM Cortex-M0 32-bit RISC core operating at a 48 MHz maximum frequency, high-speed embedded memories (up to 32 Kbytes of Flash memory and up to 4 Kbytes of SRAM), and an extensive range of enhanced peripherals and I/Os. All devices offer standard communication int

41、erfaces (one I2C, one SPI, one I2S, and one USART), one 12-bit ADC, up to five general-purpose 16-bit timers, a 32-bit timer and an advanced-control PWMtimer.The STM32F031xx microcontrollers operate in the -40 to +85 C and -40 to +105 C temperature ranges, from a 2.0 to 3.6 V power supply. A compreh

42、ensive set of power- saving modes allows the design of low-power applications.The STM32F031xx microcontrollers include devices in four different packages ranging from 20 pins to 48 pins. Depending on the device chosen, different sets of peripherals are included. The description below provides an ove

43、rview of the complete range of STM32F031xx peripherals proposed.These features make the STM32F031xx microcontrollers suitable for a wide range of applications such as application control and user interfaces, handheld equipment, A/V receivers and digital TV, PC peripherals, gaming and GPS platforms,

44、industrial applications, PLCs, inverters, printers, scanners, alarm systems, video intercoms, and HVACs.DocID025743 Rev 19/99DescriptionSTM32F031xxTable 2. STM32F031xx family device features and peripheral counts1.The SPI interface can be used either in SPI mode or in I2S audio mode.10/99DocID025743

45、 Rev 1PeripheralSTM32F031FxSTM32F031GxSTM32F031KxSTM32F031CxFlash (Kbytes)1632163216321632SRAM (Kbytes)4444TimersAdvanced control1 (16-bit)General purpose4 (16-bit)1 (32-bit)Comm. interfacesSPI (I2S)(1)1I2C1USART112-bit ADC(number of channels)1(9 ext. + 3 int.)1(10 ext. + 3 int.)GPIOs15232739Max. CP

46、U frequency48 MHzOperating voltage2.0 to 3.6 VOperating temperatureAmbient operating temperature: -40 C to 85 C / -40 C to 105 C Junction temperature: -40C to 105C / -40 C to 125 CPackagesTSSOP20UFQFPN28UFQFPN32LQFP48STM32F031xxDescriptionFigure 1. Block diagramDocID025743 Rev 111/99US-ATRIX!( DECOD

47、ER32!-CONTROLLERFLASH OBL)N TERFACE37#,+3ERIAL 7IRE6$0/7%26 TO 637$!4$EBUG6/,4 2%$AS !&,!3(6 4/ 6633+6$#/24%8 - #05BITSF(#,+-(Z0/23500,92ESET350%26)3)/.234.6)#32!-6)NT0/2 0$26$!+$!6$.6)#2# (3-(Z06$2# (3 -(Z6$!62# ,3$84!, /3#/3#). 0&-(Z/3#/54 0&)7$!(0#,+0OWER!00#,+#ONTROLLER6!46 TO 62%3%4!$#,+#,/#+#%

48、#,+637#/.42/,53!24#,+/3# ?).0!;=(#,+/3# ?/54=4!-0%2 24#!,!2- /540#; =CHANN ELS0&;= CO MPL CHANNELS2+ %42 INPUT AS !& CH %42 AS !&CH %42 AS !&CHANNEL AS !& CHAN NELCOMPL 2+ AS !& CHANNELCOMPL 2+ AS !&!&)2?/54 AS !&-/3) 3$-)3/ -#+ 3#+ #+.33 73 AS !&28 48 #43 243$-#5#+ AS !&3#, 3$! 3-AL M! FOR &-) #AS

49、!&!$#?).6$!633!-3 60,4EMP SENSORBIT !$#)&6$!393#& )&53!2430) ) 377$%84 )47+504)-%24)-%2!(!04)-%24)-%24)-%24)-%20)/ PORT &0)/ PORT #2#0)/ PORT 0)/ PORT !84!, K(Z24#ACKUP REG24# INT ERFACE0 $-! CHANNELSFunctional overviewSTM32F031xx3Functional overviewARM CortexTM-M0 core with embedded Flash and SRAMT

50、he ARM Cortex-M0 processor is the latest generation of ARM processors for embedded systems. It has been developed to provide a low-cost platform that meets the needs of MCU implementation, with a reduced pin count and low-power consumption, while delivering outstanding computational performance and

51、an advanced system response to interrupts.The ARM Cortex-M0 32-bit RISC processor features exceptional code-efficiency, delivering the high-performance expected from an ARM core in the memory size usually associated with 8- and 16-bit devices.The STM32F0xx family has an embedded ARM core and is ther

52、efore compatible with all ARM tools and software.Figure 1 shows the general block diagram of the device family.3.13.2MemoriesThe device has the following features:4 Kbytes of embedded SRAM accessed (read/write) at CPU clock speed with 0 wait states and featuring embedded parity checking with excepti

53、on generation for fail-critical applications.The non-volatile memory is divided into two arrays:16 to 32 Kbytes of embedded Flash memory for programs and dataOption bytesThe option bytes are used to write-protect the memory (with 4 KB granularity) and/or readout-protect the whole memory with the following options:Level 0: no readout protectionLevel 1: memory readout protection, the Flash memory cannot be read from or written to if either debug features are connected or boot in RAM is sel

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论