Part Number Hot Search : 
8051F040 MTZ12 DG901 8HC90 KRC839U 1N5380 TPQ5551 IRF640R
Product Description
Full Text Search
 

To Download STM32F103ZGT6XXX Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data brief for further information contact your local stmicroelectronics sales office. march 2010 doc id 17144 rev 2 1/45 1 stm32f103xf stm32f103xg xl-density performance line arm-b ased 32-bit mcu with 768 kb to 1 mb flash, usb, can, 17 timers, 3 adcs, 13 communication interfaces features core: arm 32-bit cortex?-m3 cpu with mpu ? 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 ? 768 kbytes to 1 mbyte of flash memory ? 96 kbytes of sram ? flexible static memory controller with 4 chip select. supports compact flash, sram, psram, nor and nand memories ? lcd parallel interface, 8080/6800 modes 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 with calibration ? 32 khz oscillator for rtc with calibration low power ? sleep, stop and standby modes ?v bat supply for rtc and backup registers 3 12-bit, 1 s a/d converters (up to 21 channels) ? conversion range: 0 to 3.6 v ? triple-sample and hold capability ? temperature sensor 2 12-bit d/a converters dma: 12-channel dma controller ? supported peripherals: timers, adcs, dac, sdio, i 2 ss, spis, i 2 cs and usarts debug mode ? serial wire debug (swd) & jtag interfaces ? cortex-m3 embedded trace macrocell? up to 112 fast i/o ports ? 51/80/112 i/os, all mappable on 16 external interrupt vectors and almost all 5 v-tolerant up to 17 timers ? up to ten 16-bit timers, each with up to 4 ic/oc/pwm or pulse counter and quadrature (incremental) encoder input ? 2 16-bit motor control pwm timers with dead-time generation and emergency stop ? 2 watchdog timers (independent and window) ? systick timer: a 24-bit downcounter ? 2 16-bit basic timers to drive the dac up to 13 communication interfaces ? up to 2 i 2 c interfaces (smbus/pmbus) ? up to 5 usarts (iso 7816 interface, lin, irda capability, modem control) ? up to 3 spis (18 mbit/s), 2 with i 2 s interface multiplexed ? can interface (2.0b active) ? usb 2.0 full speed interface ? sdio interface crc calculation unit, 96-bit unique id ecopack ? packages table 1. device summary reference part number stm32f103xf stm32f103rf stm32f103vf stm32f103zf stm32f103xg stm32f103rg stm32f103vg stm32f103zg fbga lqfp64 10 10 mm, lqfp100 14 14 mm, lqfp144 20 20 mm lfbga144 10 10 mm www.st.com
contents stm32f103xf, stm32f103xg 2/45 doc id 17144 rev 2 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 full compatibility throughout the family . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.1 arm ? cortex?-m3 core with embedded flash and sram . . . . . . . . . 12 2.3.2 memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.3 embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.4 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . 12 2.3.5 embedded sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3.6 fsmc (flexible static memory controller) . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3.7 lcd parallel interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3.8 nested vectored interrupt controller (nvic) . . . . . . . . . . . . . . . . . . . . . . 13 2.3.9 external interrupt/event controller (exti) . . . . . . . . . . . . . . . . . . . . . . . 13 2.3.10 clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.11 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.12 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.13 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.14 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.15 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.16 dma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.17 rtc (real-time clock) and backup registers . . . . . . . . . . . . . . . . . . . . . . 16 2.3.18 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.3.19 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.3.20 universal synchronous/asynchronous receiver transmitters (usarts) 18 2.3.21 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.22 inter-integrated sound (i 2 s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.23 sdio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.24 controller area network (can) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.25 universal serial bus (usb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.26 gpios (general-purpose inputs/outputs) . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.27 adc (analog to digital converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.3.28 dac (digital-to-analog converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
stm32f103xf, stm32f103xg contents doc id 17144 rev 2 3/45 2.3.29 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.3.30 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3.31 embedded trace macrocell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3 pinouts and pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.2.2 selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . . . 41 6 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
list of tables stm32f103xf, stm32f103xg 4/45 doc id 17144 rev 2 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32f103xf and stm32f103xg features and peripheral counts . . . . . . . . . . . . . . . . . . 8 table 3. stm32f103xx family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4. stm32f103xf and stm32f103xg timer feature comparison . . . . . . . . . . . . . . . . . . . . . . 16 table 5. stm32f103xf and stm32f103xg pin definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 6. fsmc pin definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 7. lfbga144 ? 144-ball low profile fine pitch ball grid array, 10 x 10 mm, 0.8 mm pitch, package data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 8. lqfp144, 20 x 20 mm, 144-pin low-profile quad flat package mechanical data . . . . . . . . 37 table 9. lqpf100 ? 14 x 14 mm 100-pin low-profile quad flat package mechanical data. . . . . . . . 38 table 10. lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package mechanical data . . . . . . . . . . 39 table 11. package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 12. stm32f103xf and stm32f103xg ordering information scheme . . . . . . . . . . . . . . . . . . . 43
stm32f103xf, stm32f103xg list of figures doc id 17144 rev 2 5/45 list of figures figure 1. stm32f103xf and stm32f103xg performance line block diagram. . . . . . . . . . . . . . . . . . 9 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 3. stm32f103xf and stm32f103xg xl-density performance line bga144 ballout . . . . . . 22 figure 4. stm32f103xf and stm32f103xg xl-density performance line lqfp144 pinout. . . . . . 23 figure 5. stm32f103xf and stm32f103xg xl-density performance line lqfp100 pinout. . . . . . 24 figure 6. stm32f103xf and stm32f103xg xl-density performance line lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 7. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 8. recommended pcb design rules (0.80/0.75 mm pitch bga) . . . . . . . . . . . . . . . . . . . . . . 35 figure 9. lfbga144 ? 144-ball low profile fine pitch ball grid array, 10 x 10 mm, 0.8 mm pitch, package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 10. lqfp144, 20 x 20 mm, 144-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 11. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 12. lqfp100, 14 x 14 mm 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . 38 figure 13. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 14. lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . 39 figure 15. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 figure 16. lqfp100 p d max vs. t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
introduction stm32f103xf, stm32f103xg 6/45 doc id 17144 rev 2 1 introduction this datasheet provides the ordering information and mechanical device characteristics of the stm32f103xf and stm32f103xg xl-density performance line microcontrollers. for more details on the whole stmicroelectronics stm32f103xx family, please refer to section 2.2: full compatib ility throughout the family . the xl-density stm32f103xx datasheet should be read in conjunction with the stm32f10xxx reference manual. for information on programming, erasing and protection of the internal flash memory please refer to the stm32f10xxx flash programming manual. the reference and flash programming manuals are both available from the stmicroelectronics website www.st.com . for information on the cortex?-m3 core please refer to the cortex?-m3 technical reference manual, available from the www.arm.com website at the following address: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/ .
stm32f103xf, stm32f103xg description doc id 17144 rev 2 7/45 2 description the stm32f103xf and stm32f103xg 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 1 mbyte and sram up to 96 kbytes), and an extensive range of enhanced i/os and pe ripherals connected to two apb buses. all devices offer three 12-bit adcs, ten general-purpose 16-bit timers plus two pwm timers, as well as standard and advanced communication interfaces: up to two i 2 cs, three spis, two i2ss, one sdio, five usarts, an usb and a can. the stm32f103xx xl-density performance line family operates in the ?40 to +105 c temperature range, from a 2.0 to 3.6 v power supply. a comprehensive set of power-saving mode allows the design of low-power applications. the stm32f103xx xl-density performance line family offers devices in four different package types: from 64 pins to 144 pins. depe nding 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 high-density 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, power meters and video intercom figure 1 shows the general block diagram of the device family.
description stm32f103xf, stm32f103xg 8/45 doc id 17144 rev 2 2.1 device overview table 2. stm32f103xf and stm32f103xg features and peripheral counts peripherals stm32f103rx stm32f103vx stm32f103zx flash memory 768 kb 1 mb 768 kb 1 mb 768 kb 1 mb sram in kbytes 96 96 96 fsmc no yes (1) 1. for the lqfp100 package, only fsmc bank1 an d bank2 are available. bank1 can only support a multiplexed nor/psram memory using the ne1 chip select. bank2 can only support a 16- or 8-bit nand flash memory using the nce2 chip select. the interr upt line cannot be used since port g is not available in this package. ye s timers general-purpose 10 advanced-control 2 basic 2 comm spi(i 2 s) (2) 2. the spi2 and spi3 interfaces give the flexibility to wo rk in an exclusive way in either the spi mode or the i 2 s audio mode. 3(2) i 2 c2 usart 5 usb 1 can 1 sdio 1 gpios 51 80 112 12-bit adc number of channels 3 16 3 16 3 21 12-bit dac number of channels 2 2 cpu frequency 72 mhz operating voltage 2.0 to 3.6 v operating temperatures ambient temperatures: ?40 to +85 c /?40 to +105 c junction temperature: ?40 to + 125 c package lqfp64 lqfp 100 lqfp144, bga144
stm32f103xf, stm32f103xg description doc id 17144 rev 2 9/45 figure 1. stm32f103xf and stm32f103xg performance line block diagram 1. t a = ?40 c to +85 c (suffix 6, see table 12 ) or ?40 c to +105 c (suffix 7, see table 12 ), junction temperature up to 105 c or 125 c, respectively. 2. af = alternate function on i/o port pin. pa[ 15:0] ext.it wwdg nvic 12 b it adc1 8 adin s common jtdi jtck/ s wclk jtm s / s wda t njtr s t jtdo =2 to 3 .6v 112 af ahb2 mo s i/ s d,mi s o, wkup f m a x : 4 8 /72 mhz v ss s cl, s da, s mba i2c2 gp dma1 xtal o s c 4-16 mhz xtal 3 2 khz a p b 1: f m a x =2 4 / 3 6mhz hclk pclk1 as af fl as h1 512 kb volt. reg. 3 . 3 vto1. 8 v power b a ck u pinterf a ce as af b us m a trix 64 b it rtc rc h s cortex-m 3 cpu i bus d bus o b l s ram 512b u s art1 u s art2 s pi2/i2 s 2 b xcan device 7ch a nnel s b a ck u p reg 4ch a nnel s tim1 4compl. s cl, s da, s mba i2c1 as af rx,tx, ct s ,rt s , u s art 3 temp s en s or 4ch,etr as af fclk rc l s s t a nd b y iwdg @v s w por / pdr s upply @vdda v bat =1. 8 vto 3 .6v ck as af rx,tx, ct s ,rt s , ck as af rx,tx, ct s ,rt s , ck as af a pb 2: f m a x =4 8 / 72 mh z nvic s pi1 mo s i,mi s o, s ck,n ss as af 12 b it adc2 if if interf a ce s upervi s ion pvd re s et int awu por tamper-rtc s y s tem s ck/ck,n ss /w s , uart4 rx,tx as af uart5 rx,tx as af re s et & clock controller pclk2 pll 12 b it dac1 if if if 12 b it dac2 dac1_out as af dac2_out as af to the 3 adc s 8 adin s common to the adc1 & 2 gp dma2 5ch a nnel s (alarm out) mclk as af mo s i/ s d,mi s o, s ck/ck,n ss /w s , mclk as af s wjtag tpiu etm tr a ce/trig traceclk traced[0: 3 ] as af u s bdm/can_rx u s bdp/can_tx s dio f s mc pclk 3 s ram 96 k b yte 64 b it 12 b it adc 3 if 5adin s on adc 3 4 4compl. bkin, etr inp u t as af pb[15:0] pc[ 15: 0] pd[15:0] pe[15:0] pf[15:0] pg[15:0] mpu 2 as af 1 as af 1 as af 4ch,etr as af 4ch,etr as af 4ch,etr as af d[7:0], cmd ck as af fl as h2 512 kb a[25:0] d[15:0] clk noe nwe ne[ 3 :0] nbl[1:0] nwait nl as af ch a nnel s ch a nnel s ch a nnel s ch a nnel s ch a nnel ch a nnel tim 8 tim9 tim10 tim11 v ref+ v ref? tim6 tim7 tim2 tim 3 tim4 tim5 tim12 tim1 3 tim14 o s c_in o s c_out o s c 3 2_in o s c 3 2_out v dd @v dd nr s t v dda v ss a v dd @v dd @v dda @v dda fl as h interf a ce fl as h interf a ce o b l 2 ch a nnel s as af 1 ch a nnel as af 1 ch a nnel as af a i17 3 52 @v dda gpio port a gpio port b gpio port c gpio port d gpio port e gpio port f gpio port g apb 3 apb2 apb1 bkin, etr inp u t as af u s b 2.0 f s device s pi 3 /i2 s3
description stm32f103xf, stm32f103xg 10/45 doc id 17144 rev 2 figure 2. clock tree 1. when the hsi is used as a pll clock input, the maxi mum system clock frequency t hat can be achieved is 64 mhz. 2. for the usb function to be available, both hse and pll must be enabled, with the cpu running at either 48 mhz or 72 mhz. 3. to have an adc conversion time of 1 s, apb2 must be at 14 mhz, 28 mhz or 56 mhz. h s e o s c 4-16 mhz o s c_in o s c_out o s c 3 2_in o s c 3 2_out l s e o s c 3 2.76 8 khz h s i rc 8 mhz l s i rc 40 khz to independent w a tchdog (iwdg) pll x2, x 3 , x4 pllmul h s e = high- s peed extern a l clock s ign a l l s e = l s i = h s i = le g end: mco clock o u tp u t m a in pllxtpre /2 ..., x16 ahb pre s c a ler /1, 2..512 /2 pllclk h s i h s e apb1 pre s c a ler /1, 2, 4, 8 , 16 adc pre s c a ler /2, 4, 6, 8 adcclk pclk1 hclk pllclk to ahb bus , core, memory a nd dma u s bclk to u s b interf a ce u s b pre s c a ler /1, 1.5 to adc1, 2 or 3 l s e l s i h s i /12 8 /2 h s i h s e peripher a l s to apb1 peripher a l clock en ab le en ab le peripher a l clock apb2 pre s c a ler /1, 2, 4, 8 , 16 pclk2 tim1, 8 , 9, 10, 11 to tim1/ 8 a nd tim9/10/11 peripher a l s to apb2 peripher a l clock en ab le en ab le peripher a l clock 4 8 mhz 72 mhz m a x 72 mhz 72 mhz m a x 3 6 mhz m a x to rtc pll s rc s w mco c ss to cortex s y s tem timer / 8 clock en ab le s y s clk m a x rtcclk rtc s el[1:0] timxclk timxclk iwdgclk s y s clk fclk cortex free r u nning clock /2 tim2, 3 ,4,5,12,1 3 ,14,6,7 to tim2/ 3 /4/5/12/1 3 /14 a nd tim6/7 to s dio ahb interf a ce peripher a l clock en ab le hclk/2 to f s mc f s mcclk to s dio peripher a l clock en ab le peripher a l clock en ab le to i2 s3 to i2 s 2 peripher a l clock en ab le peripher a l clock en ab le i2 s3 clk i2 s 2clk s dioclk a i17 3 54 if (apb1 pre s c a ler =1) x1 el s e x2 if (apb2 pre s c a ler =1) x1 el s e x2 high- s peed intern a l clock s ign a l low- s peed intern a l clock s ign a l low- s peed extern a l clock s ign a l
stm32f103xf, stm32f103xg description doc id 17144 rev 2 11/45 2.2 full compatibility throughout the family the stm32f103xx is a complete family whose members are fully pin-to-pin, software and feature compatible. in the reference manual, the stm32f103x4 and stm32f103x6 are identified as low-density devices, the stm32f103x8 and stm32f103xb are referred to as medium-density devices, the stm32f103xf, and stm32f103xg are referred to as high- density devices and the stm32f103xf and stm32f103xg are called xl-density devices. low-density, high-density and xl-density devices are an extension of the stm32f103x8/b medium-density devices, they are specified in the stm32f103x4/6, stm32f103xc/d/e and stm32f103xf/g datasheets, respectively. low-density devices feature lower flash memory and ram capacities, less timers and per ipherals. high-density devices have higher flash memory and ram capacities, and additional peripherals like sdio, fsmc, i 2 s and dac. xl-density devices bring even more flash and ram memory, and extra features, namely an mpu, a greater number of timers and a dual bank flash structure while remaining fully compatible with the other members of the family. the stm32f103x4, stm32f103x6, stm32f103xf, , stm32f103xg, stm32f103xf and stm32f103xg are a drop-in replacement for the stm32f103x8/b devices, allowing the user to try different memory densities and providing a greater degree of freedom during the development cycle. moreover, the stm32f103xx performance line fam ily is fully compatible with all existing stm32f101xx access line and stm32f102xx usb access line devices. table 3. stm32f103xx family pinout low-density devices medium-density devices high-density devices xl-density devices 16 kb flash 32 kb flash (1) 64 kb flash 128 kb flash 256 kb flash 384 kb flash 512 kb flash 768 kb flash 1 mb flash 6 kb ram 10 kb ram 20 kb ram 20 kb ram 48 or 64 kb (2) ram 64 kb ram 64 kb ram 96 kb ram 96 kb ram 144 5 usarts 4 16-bit timers, 2 basic timers 3 spis, 2 i 2 ss, 2 i2cs usb, can, 2 pwm timers 3 adcs, 2 dacs, 1 sdio fsmc (100- and 144-pin packages (3) ) 5 usarts 10 16-bit timers, 2 basic timers 3 spis, 2 i 2 ss, 2 i2cs usb, can, 2 pwm timers 3 adcs, 2 dacs, 1 sdio, cortex-m3 with mpu fsmc (100- and 144-pin packages (4) ), dual bank flash memory 100 3 usarts 3 16-bit timers 2 spis, 2 i 2 cs, usb, can, 1 pwm timer 2 adcs 64 2 usarts 2 16-bit timers 1 spi, 1 i 2 c, usb, can, 1 pwm timer 2 adcs 48 36 1. for orderable part numbers that do not show the a internal code after the temperature range code (6 or 7), the reference datasheet for electrical characteristics is that of the st m32f103x8/b medium-density devices. 2. 64 kb ram for 256 kb flash are available on devices delivered in csp packages only. 3. ports f and g are not available in devices delivered in 100-pin packages. 4. ports f and g are not available in devices delivered in 100-pin packages.
description stm32f103xf, stm32f103xg 12/45 doc id 17144 rev 2 2.3 overview 2.3.1 arm ? cortex?-m3 core with embedded flash and sram the arm cortex?-m3 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 an advanced system response to interrupts. the arm cortex?-m3 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. with its embedded arm core, stm32f103xf and stm32f103xg performance line family is compatible with all arm tools and software. figure 1 shows the general block diagram of the device family. 2.3.2 memory protection unit the memory protection unit (mpu) is used to separate the processing of tasks from the data protection. the mpu can manage up to 8 protection areas that can all be further divided up into 8 subareas. the protection area sizes are between 32 bytes and the whole 4 gigabytes of addressable memory. the memory protection unit is especially helpful for applications where some critical or certified code has to be protected against the misbehavior of other tasks. it is usually managed by an rtos (real-time operating system). if a program accesses a memory location that is prohibited by the mpu, the rtos can detect it and take action. in an rtos environment, the kernel can dynamically upd ate the mpu area setting, based on the process to be executed. the mpu is optional and can be bypassed for applications that do not need it. 2.3.3 embedded flash memory 768 kbytes to 1 mbyte of embedded flash are available for storing programs and data. the flash memory is organized as two banks. t he first bank has a size of 512 kbytes. the second bank is either 256 or 512 kbytes depending on the device. this gives the device the capability of writing to one bank while executing code from the other bank (read-while-write capability). 2.3.4 crc (cyclic redundanc y check) calculation unit the crc (cyclic redundancy check) calculation unit is used to get a crc code from a 32-bit data word and a fixed generator polynomial. among other applications, crc-based techniques are used to verify data transmission or storage integrity. in the scope of the en/iec 60335-1 standard, they offer a means of verifying the flash memory integrity. the crc ca lculation unit helps co mpute a signature of the software during runtime, to be compared with a reference signature generated at link- time and stored at a given memory location.
stm32f103xf, stm32f103xg description doc id 17144 rev 2 13/45 2.3.5 embedded sram 96 kbytes of embedded sram accessed (read/write) at cpu clock speed with 0 wait states. 2.3.6 fsmc (flexible static memory controller) the fsmc is embedded in the stm32f103xf and stm32f103xg performance line family. it has four chip select outputs supporting the following modes: pc card/compact flash, sram, psram, nor and nand. functionality overview: the three fsmc interrupt lines are ored in order to be connected to the nvic write fifo code execution from external memory except for nand flash and pc card the targeted frequency, f clk , is hclk/2, so external access is at 36 mhz when hclk is at 72 mhz and external access is at 24 mhz when hclk is at 48 mhz 2.3.7 lcd parallel interface the fsmc can be configured to interface seamlessly with most graphic lcd controllers. it supports the intel 8080 and motorola 6800 modes, and is flexible enough to adapt to specific lcd interfaces. this lcd parallel interface capability makes it easy to build cost- effective graphic applications using lcd modules with embedded controllers or high- performance solutions using external controllers with dedicated acceleration. 2.3.8 nested vectored interrupt controller (nvic) the stm32f103xf and stm32f103xg performance line embeds a nested vectored interrupt controller able to handle up to 60 maskable interrupt channels (not including the 16 interrupt lines of cortex?-m3) and 16 priority levels. closely coupled nvic gives low latency interrupt processing interrupt entry vector table address passed directly to the core closely coupled nvic core interface allows early processing of interrupts processing of late arriving higher priority interrupts support for tail-chaining processor state automatically saved interrupt entry restored on interrupt exit with no instruction overhead this hardware block provides flexible interrupt management features with minimal interrupt latency. 2.3.9 external interrupt /event controller (exti) the external interrupt/event controller consists of 19 edge detector lines used to generate interrupt/event requests. each line can be independently configured to select the trigger event (rising edge, falling edge, both) and can be masked independently. a pending register maintains the status of the interrupt requests. the exti can detect an external line with a pulse width shorter than the internal apb2 cloc k period. up to 112 gp ios can be connected to the 16 external interrupt lines.
description stm32f103xf, stm32f103xg 14/45 doc id 17144 rev 2 2.3.10 clocks and startup system clock selection is performed on startup, however the internal rc 8 mhz oscillator is selected as default cpu clock on reset. an ex ternal 4-16 mhz clock can be selected, in which case it is monitored for failure. if failure is detected, the system automatically switches back to the internal rc oscillato r. a software interrupt is genera ted if enabled. similarly, full interrupt management of the pll clock entry is available when necessary (for example with failure of an indirectly used external oscillator). several prescalers allow the configuration of the ahb frequency, the high speed apb (apb2) and the low speed apb (apb1) domains. the maximum frequency of the ahb and the high speed apb domains is 72 mhz. the maximum allowed frequency of the low speed apb domain is 36 mhz. see figure 2 for details on the clock tree. 2.3.11 boot modes at startup, boot pins are used to select one of three boot options: boot from user flash: you have an option to boot from any of two memory banks. by default, boot from flash memory bank 1 is selected. you can choose to boot from flash memory bank 2 by setting a bit in the option bytes. boot from system memory boot from embedded sram the boot loader is located in system memory. it is used to reprogram the flash memory by using usart1. 2.3.12 power supply schemes v dd = 2.0 to 3.6 v: external power supply for i/os and the internal regulator. provided externally through v dd pins. v ssa , v dda = 2.0 to 3.6 v: external analog power supplies for adc, reset blocks, rcs and pll (minimum voltage to be applied to v dda is 2.4 v when the adc is used). v dda and v ssa must be connected to v dd and v ss , respectively. v bat = 1.8 to 3.6 v: power supply for rtc, external clock 32 khz oscillator and backup registers (through power switch) when v dd is not present. 2.3.13 power supply supervisor the device has an integrated power-on reset (por)/power-down reset (pdr) circuitry. it is always active, and ensures proper operation starting from/down to 2 v. the device remains in reset mode when v dd is below a specified threshold, v por/pdr , without the need for an external reset circuit. the device features an embedded programmable voltage detector (pvd) that monitors the v dd /v dda power supply and compares it to the v pvd threshold. an interrupt can be generated when v dd /v dda drops below the v pvd threshold and/or when v dd /v dda is higher than the v pvd threshold. the interrupt service routine can then generate a warning message and/or put the mcu into a safe state. the pvd is enabled by software.
stm32f103xf, stm32f103xg description doc id 17144 rev 2 15/45 2.3.14 voltage regulator the regulator has three operation modes: main (mr), low power (lpr) and power down. mr is used in the nominal regulation mode (run) lpr is used in the stop modes. power down is used in standby mode: the regulator output is in high impedance: the kernel circuitry is powered down, inducing ze ro consumption (but the contents of the registers and sram are lost) this regulator is always enabled after reset. it is disabled in standby mode. 2.3.15 low-power modes the stm32f103xf and stm32f103xg performance line supports three low-power modes to achieve the best compromise between low power consumption, short startup time and available wakeup sources: sleep mode in sleep mode, only the cpu is stopped. all peripherals continue to operate and can wake up the cpu when an interrupt/event occurs. stop mode stop mode achieves the lowest power consumption while retaining the content of sram and registers. all clocks in the 1.8 v domain are stopped, the pll, the hsi rc and the hse crystal oscillators are disabled. the voltage regulator can also be put either in normal or in low-power mode. the device can be woken up from stop mode by any of the exti line. the exti line source can be one of the 16 external lines, the pvd output, the rtc alarm or the usb wakeup. standby mode the standby mode is used to achieve the lowest power consumption. the internal voltage regulator is switched off so that the entire 1.8 v domain is powered off. the pll, the hsi rc and the hse crystal oscillators are also switched off. after entering standby mode, sram and register contents are lost except for registers in the backup domain and standby circuitry. the device exits standby mode when an external reset (nrst pin), an iwdg reset, a rising edge on the wkup pin, or an rtc alarm occurs. note: the rtc, the iwdg, and the corresponding clock sources are not stopped by entering stop or standby mode. 2.3.16 dma the flexible 12-channel general-purpose dmas (7 channels for dma1 and 5 channels for dma2) are able to manage memory-to-memory, peripheral-to-memory and memory-to- peripheral transfers. the two dma controllers support circular buffer management, removing the need for user code intervention when the controller reaches the end of the buffer. each channel is connected to dedicated hardware dma requests, with support for software trigger on each channel. configuration is made by software and transfer sizes between source and destination are independent.
description stm32f103xf, stm32f103xg 16/45 doc id 17144 rev 2 the dma can be used with the main peripherals: spi, i 2 c, usart, general-purpose, basic and advanced-control timers timx, dac, i 2 s, sdio and adc. 2.3.17 rtc (real-time cl ock) and backup registers the rtc and the backup registers are supplied through a switch that takes power either on v dd supply when present or through the v bat pin. the backup registers are forty-two 16-bit registers used to store 84 bytes of user application data when v dd power is not present. they are not reset by a system or power reset, and they are not reset when the device wakes up from the standby mode. the real-time clock provides a set of continuo usly running counters which can be used with suitable software to provide a clock calendar function, and provides an alarm interrupt and a periodic interrupt. it is clocke d by a 32.768 khz external crysta l, resonator or oscillator, the internal low power rc oscillator or the high -speed external clock divided by 128. the internal low-speed rc has a typical frequency of 40 khz. the rtc can be calibrated using an external 512 hz output to compensate for any natural quartz deviation. the rtc features a 32-bit programmable counter for long term measurement using the compare register to generate an alarm. a 20-bit prescaler is used for the time base clock and is by default configured to generate a time base of 1 second from a clock at 32.768 khz. 2.3.18 timers and watchdogs the xl-density stm32f103xx performance line devices include up to two advanced-control timers, up to ten general-purpose timers, two basic timers, two watchdog timers and a systick timer. ta bl e 4 compares the features of the advanced-control, general-purpose and basic timers. advanced-control timers (tim1 and tim8) the two advanced-control timers (tim1 and tim8) can each be seen as a three-phase pwm multiplexed on 6 channels. they have complementary pwm outputs with table 4. stm32f103xf and stm32f103xg timer feature comparison timer counter resolution counter type prescaler factor dma request generation capture/compare channels complementary outputs tim1, tim8 16-bit up, down, up/down any integer between 1 and 65536 ye s 4 ye s tim2, tim3, tim4, tim5 16-bit up, down, up/down any integer between 1 and 65536 ye s 4 n o tim9, tim12 16-bit up any integer between 1 and 65536 no 2 no tim10, tim11 tim13, tim14 16-bit up any integer between 1 and 65536 no 1 no tim6, tim7 16-bit up any integer between 1 and 65536 ye s 0 n o
stm32f103xf, stm32f103xg description doc id 17144 rev 2 17/45 programmable inserted dead-times. they can also be seen as a complete general-purpose timer. the 4 independent channels can be used for: input capture output compare pwm generation (edge or center-aligned modes) one-pulse mode output if configured as a standard 16-bit timer, it has the same features as the timx timer. if configured as the 16-bit pw m generator, it has full modu lation capability (0-100%). in debug mode, the advanced-control timer counter can be frozen and the pwm outputs disabled to turn off any power switch driven by these outputs. many features are shared with those of the general-purpose tim timers which have the same architecture. the advanced-control timer can therefore work together with the tim timers via the timer link feature for synchronization or event chaining. general-purpose timers (timx) there are10 synchronizable general-purpose timers embedded in the stm32f103xf and stm32f103xg performance line devices (see ta b l e 4 for differences). tim2, tim3, tim4, tim5 there are up to 4 synchronizable general-purpose timers (tim2, tim3, tim4 and tim5) embedded in the stm32f103xf and stm32f103xg access line devices. these timers are based on a 16-bit auto-reload up/down counter, a 16-bit prescaler and feature 4 independent channels each for input capture/output compare, pwm or one-pulse mode output. this gives up to 16 input captures / output compares / pwms on the largest packages. their counter can be frozen in debug mode. any of the general-purpose timers can be used to generate pwm outputs. they all have independent dma request generation. these timers are capable of handling quadrature (incremental) encoder signals and the digital outputs from 1 to 3 hall-effect sensors. tim10, tim11 and tim9 these timers are based on a 16-bit auto-reload upcounter and a 16-bit prescaler. tim10 and tim11 feature one independent channel, whereas tim9 has two independent channels for input capture/output compare, pwm or one-pulse mode output. they can be synchronized with the tim2, tim3, tim4, tim5 full-featured general-purpose timers. they can also be used as simple time bases. tim13, tim14 and tim12 these timers are based on a 16-bit auto-reload upcounter and a 16-bit prescaler. tim13 and tim14 feature one independent channel, whereas tim12 has two independent channels for input capture/output compare, pwm or one-pulse mode output. they can be synchronized with the tim2, tim3, tim4, tim5 full-featured general-purpose timers. they can also be used as simple time bases. basic timers tim6 and tim7 these timers are mainly used for dac trigger generation. they can also be used as a generic 16-bit time base.
description stm32f103xf, stm32f103xg 18/45 doc id 17144 rev 2 independent watchdog the independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. it is clocked from an independent 40 khz internal rc and as it operates independently from the main clock, it can operate in stop and standby modes. it can be used either as a watchdog to reset the device when a problem occurs, or as a free running timer for application timeout management. it is hardware or software configurable through the option bytes. the counter can be frozen in debug mode. window watchdog the window watchdog is based on a 7-bit downcoun ter that can be set as free running. it can be used as a watchdog to reset the device when a problem occurs. it is clocked from the main clock. it has an early warning interrup t capability and the counter can be frozen in debug mode. systick timer this timer is dedicated to real-time operating systems, but could also be used as a standard down counter. it features: a 24-bit down counter autoreload capability maskable system interrupt generation when the counter reaches 0. programmable clock source 2.3.19 i2c bus up to two i2c bus interfaces can operate in multimaster and slave modes. they can support standard and fast modes. they support 7/10-bit addressing mode and 7-bit dual addressing mode (as slave). a hardware crc generation/verification is embedded. they can be served by dma and they support smbus 2.0/pmbus. 2.3.20 universal sync hronous/asynchronous receiver transmitters (usarts) the stm32f103xf and stm32f103xg performance line embeds three universal synchronous/asynchronous receiver transmitters (usart1, usart2 and usart3) and two universal asynchronous receiver transmitters (uart4 and uart5). these five interfaces provide asynchronous communication, irda sir endec support, multiprocessor communication mode, single-wire half-duplex communication mode and have lin master/slave capability. the usart1 interface is able to communicate at speeds of up to 4.5 mbit/s. the other available interfaces communicate at up to 2.25 mbit/s. usart1, usart2 and usart3 also provide hardware management of the cts and rts signals, smart card mode (iso 7816 complia nt) and spi-like communication capability. all interfaces can be served by the dma controller except for uart5.
stm32f103xf, stm32f103xg description doc id 17144 rev 2 19/45 2.3.21 serial perip heral interface (spi) up to three spis are able to communicate up to 18 mbits/s in slave and master modes in full-duplex and simplex communication modes. the 3-bit prescaler gives 8 master mode frequencies and the frame is configurable to 8 bits or 16 bits. the hardware crc generation/verification supports basic sd card/mmc modes. all spis can be served by the dma controller. 2.3.22 inter-integrated sound (i 2 s) two standard i 2 s interfaces (multiplexed with spi2 and spi3) are available, that can be operated in master or slave mode. these interfaces can be configured to operate with 16/32 bit resolution, as input or output channels. audio sampling frequencies from 8 khz up to 48 khz are supported. when either or both of the i 2 s interfaces is/are configured in master mode, the master clock can be output to the external dac/codec at 256 times the sampling frequency. 2.3.23 sdio an sd/sdio/mmc host interface is availabl e, that supports mu ltimediacard system specification version 4.2 in three different databus modes: 1-bit (default), 4-bit and 8-bit. the interface allows data transfer at up to 48 mhz in 8-bit mode, and is compliant with sd memory card specifications version 2.0. the sdio card specification version 2.0 is also supported with two different databus modes: 1-bit (default) and 4-bit. the current version supports only one sd/sdio/mmc4.2 card at any one time and a stack of mmc4.1 or previous. in addition to sd/sdio/mmc, this interface is also fully compliant with the ce-ata digital protocol rev1.1. 2.3.24 controller area network (can) the can is compliant with specifications 2.0a and b (active) with a bit rate up to 1 mbit/s. it can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. it has three transmit mailboxes, two receive fifos with 3 stages and 14 scalable filter banks. 2.3.25 universal serial bus (usb) the stm32f103xf and stm32f103xg performance line embed a usb device peripheral compatible with the usb full-speed 12 mbs. the usb interface implements a full-speed (12 mbit/s) function interface. it has software-configurable endpoint setting and suspend/resume support. the dedicated 48 mhz clock is generated from the internal main pll (the clock source must use a hse crystal oscillator). 2.3.26 gpios (genera l-purpose inputs/outputs) each of the gpio pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down) or as peripheral alternate function. most of the gpio pins are shared with digital or analog alternate functions. all gpios are high current- capable except for analog inputs.
description stm32f103xf, stm32f103xg 20/45 doc id 17144 rev 2 the i/os alternate function configuration can be locked if needed following a specific sequence in order to avoid spurious writing to the i/os registers. 2.3.27 adc (analog to digital converter) three 12-bit analog-to-digital converters are embedded into stm32f103xf and stm32f103xg performance line devices and each adc shares up to 21 external channels, performing conversions in single-shot or scan modes. in scan mode, automatic conversion is performed on a selected group of analog inputs. additional logic functions embedded in the adc interface allow: simultaneous sample and hold interleaved sample and hold single shunt the adc can be served by the dma controller. an analog watchdog feature allows very precise monitoring of the converted voltage of one, some or all selected channels. an interrupt is generated when the converted voltage is outside the programmed thresholds. the events generated by the general-purpose timers (timx) and the advanced-control timers (tim1 and tim8) can be internally connected to the adc start trigger and injection trigger, respectively, to allow the applicatio n to synchronize a/d conversion and timers. 2.3.28 dac (digital-t o-analog converter) the two 12-bit buffered dac channels can be used to convert two digital signals into two analog voltage signal outputs. the chosen design structure is composed of integrated resistor strings and an amplifier in inverting configuration. this dual digital interface supports the following features: two dac converters: one for each output channel 8-bit or 12-bit monotonic output left or right data alignment in 12-bit mode synchronized update capability noise-wave generation triangular-wave generation dual dac channel independent or simultaneous conversions dma capability for each channel external triggers for conversion input voltage reference v ref+ eight dac trigger inputs are used in the stm32f103xf and stm32f103xg performance line family. the dac channels are triggered through the timer update outputs that are also connected to different dma channels. 2.3.29 temperature sensor the temperature sensor has to generate a voltage that varies linearly with temperature. the conversion range is between 2 v < v dda < 3.6 v. the temperature sensor is internally
stm32f103xf, stm32f103xg description doc id 17144 rev 2 21/45 connected to the adc1_in16 input channel which is used to convert the sensor output voltage into a digital value. 2.3.30 serial wire jtag debug port (swj-dp) the arm swj-dp interface is embedded, and is a combined jtag and serial wire debug port that enables either a serial wire debug or a jtag probe to be connected to the target. the jtag tms and tck pins are shared respectively with swdio and swclk and a specific sequence on the tms pin is used to switch between jtag-dp and sw-dp. 2.3.31 embedded trace macrocell? the arm ? embedded trace macrocell provides a greater visibilit y of the instruction and data flow inside the cpu core by streaming compressed data at a very high rate from the stm32f10xxx through a small number of etm pins to an external hardware trace port analyzer (tpa) device. the tpa is connected to a host computer using usb, ethernet, or any other high-speed channel. real-time instruction and data flow activity can be recorded and then formatted for display on the host computer running debugger software. tpa hardware is commercially available from common development tool vendors. it operates with third party debugger software tools.
pinouts and pin descriptions stm32f103xf, stm32f103xg 22/45 doc id 17144 rev 2 3 pinouts and pin descriptions figure 3. stm32f103xf and stm32f103xg xl-density performance line bga144 ballout ai1479 8b v dd_7 pc 3 pc2 pf6 v dd_6 v ss _4 pf 8 h v dd_1 d pg1 3 pg14 pe6 pe5 c pg10 pg11 v dd_5 pb 8 nr s t b pg12 pg15 pc15- o s c 3 2_out pb9 a 8 7 6 5 4 3 2 1 v bat o s c_in o s c_out v ss _5 g f e pf7 pc0 pf0 pf1 pf2 v ss _10 pg9 pf4 pf 3 v ss _ 3 pf5 v dd_ 8 v dd_ 3 v dd_4 v ss _ 8 pe4 pb5 pb6 boot0 pb7 v ss _11 pf10 pc1 v dd_11 v dd_10 pf9 10 9 k j v ss _2 pd 3 pd4 pd1 pc12 pc11 pd5 pd2 pd0 v dd_9 v ss _9 v dd_2 pg1 pc5 pa5 pe9 pb2/ boot1 pc4 pa4 pe10 pg0 pf1 3 v ref? pe12 v ss a pa1 pe1 3 pa0-wkup pd9 pd10 pg4 pd1 3 12 11 pg 8 pa10 nc pa9 pa11 pa12 pc10 pc9 pa 8 pc7 pc6 pc 8 pd14 pg 3 pg2 pd15 m l pf15 pb1 pa7 pe7 pf12 pb0 pa6 pe 8 pf14 pf11 v dda pe14 v ref+ pa 3 pe15 pa2 pb10 pd 8 pd12 pb11 pb12 pb14 pb15 pb1 3 pc1 3 - tamper-rtc pe 3 pe2 pe1 pe0 pb4 jtr s t pb 3 jtdo pd6 pd7 pa15 jtdi pa14 jtck pa1 3 jtm s pe11 v ss _6 v ss _7 v ss _1 pg7 pd11 pg5 pg6 pc14- o s c 3 2_in
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 23/45 figure 4. stm32f103xf and stm32f103xg xl -density performance line lqfp144 pinout v dd_3 v ss_3 pe1 pe0 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pg15 v dd_11 v ss_11 pg14 pg13 pg12 pg11 pg10 pg9 pd7 pd6 v dd_10 v ss_10 pd5 pd4 pd3 pd2 pd1 pd0 pc12 pc11 pc10 pa15 pa14 pe2 v dd_2 pe3 v ss_2 pe4 nc pe5 pa13 pe6 pa12 vbat pa11 pc13-tamper-rtc pa10 pc14-osc32_in pa9 pc15-osc32_out pa8 pf0 pc9 pf1 pc8 pf2 pc7 pf3 pc6 pf4 v dd_9 pf5 v ss_9 v ss_5 pg8 v dd_5 pg7 pf6 pg6 pf7 pg5 pf8 pg4 pf9 pg3 pf10 pg2 osc_in pd15 osc_out pd14 nrst v dd_8 pc0 v ss_8 pc1 pd13 pc2 pd12 pc3 pd11 v ssa pd10 v ref- pd9 v ref+ pd8 v dda pb15 pa0-wkup pb14 pa1 pb13 pa2 pb12 pa3 v ss_4 v dd_4 pa4 pa5 pa6 pa7 pc4 pc5 pb0 pb1 pb2 pf11 pf12 vss_6 v dd_6 pf13 pf14 pf15 pg0 pg1 pe7 pe8 pe9 v ss_7 v dd_7 pe10 pe11 pe12 pe13 pe14 pe15 pb10 pb11 v ss_1 v dd_1 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 109 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 72 lqfp144 120 119 118 117 116 115 114 113 112 111 110 61 62 63 64 65 66 67 68 69 70 71 26 27 28 29 30 31 32 33 34 35 36 83 82 81 80 79 78 77 76 75 74 73 ai14667
pinouts and pin descriptions stm32f103xf, stm32f103xg 24/45 doc id 17144 rev 2 figure 5. stm32f103xf and stm32f103xg xl-density performance line lqfp100 pinout 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 vdd_2 vss_2 nc pa 1 3 pa 1 2 pa 1 1 pa 1 0 pa 9 pa 8 pc9 pc8 pc7 pc6 pd15 pd14 pd13 pd12 pd11 pd10 pd9 pd8 pb15 pb14 pb13 pb12 pa 3 vss_4 vdd_4 pa 4 pa 5 pa 6 pa 7 pc4 pc5 pb0 pb1 pb2 pe7 pe8 pe9 pe10 pe11 pe12 pe13 pe14 pe15 pb10 pb11 vss_1 vdd_1 vdd_3 vss_3 pe1 pe0 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 pc12 pc11 pc10 pa15 pa14 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 pe2 pe3 pe4 pe5 pe6 vbat pc13-tamper-rtc pc14-osc32_in pc15-osc32_out vss_5 vdd_5 osc_in osc_out nrst pc0 pc1 pc2 pc3 vssa vref- vref+ vdda pa 0 - w k u p pa 1 pa 2 ai14391 lqfp100
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 25/45 figure 6. stm32f103xf and stm32f103xg xl-density performance line lqfp64 pinout 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 29 30 31 32 25 26 27 28 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 vbat pc13-tamper-rtc pc14-osc32_in pc15-osc32_out pd0 osc_in pd1 osc_out nrst pc0 pc1 pc2 pc3 vssa vdda pa 0 - w k u p pa 1 pa 2 vdd_3 vss_3 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pd2 pc12 pc11 pc10 pa 1 5 pa 1 4 vdd_2 vss_2 pa 1 3 pa 1 2 pa 1 1 pa 1 0 pa 9 pa 8 pc9 pc8 pc7 pc6 pb15 pb14 pb13 pb12 pa 3 vss_4 vdd_4 pa 4 pa 5 pa 6 pa 7 pc4 pc5 pb0 pb1 pb2 pb10 pb11 vss_1 vdd_1 lqfp64 ai14392
pinouts and pin descriptions stm32f103xf, stm32f103xg 26/45 doc id 17144 rev 2 table 5. stm32f103xf and stm32f103xg pin definitions pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap a3 - 1 1 pe2 i/o ft pe2 traceck / fsmc_a23 a2 - 2 2 pe3 i/o ft pe3 traced0 / fsmc_a19 b2 - 3 3 pe4 i/o ft pe4 traced1/ fsmc_a20 b3 - 4 4 pe5 i/o ft pe5 traced2/ fsmc_a21 tim9_ch1 b4 - 5 5 pe6 i/o ft pe6 traced3 / fsmc_a22 tim9_ch2 c2 1 6 6 v bat sv bat a1 2 7 7 pc13-tamper- rtc (5) i/o pc13 (6) tamper-rtc b1 3 8 8 pc14-osc32_in (5) i/o pc14 (6) osc32_in c1 4 9 9 pc15- osc32_out (5) i/o pc15 (6) osc32_out c3 - - 10 pf0 i/o ft pf0 fsmc_a0 c4 - - 11 pf1 i/o ft pf1 fsmc_a1 d4 - - 12 pf2 i/o ft pf2 fsmc_a2 e2 - - 13 pf3 i/o ft pf3 fsmc_a3 e3 - - 14 pf4 i/o ft pf4 fsmc_a4 e4 - - 15 pf5 i/o ft pf5 fsmc_a5 d2 - 10 16 v ss_5 sv ss_5 d3 - 11 17 v dd_5 sv dd_5 f3 - - 18 pf6 i/o pf6 adc3_in4 / fsmc_niord tim10_ch1 f2 - - 19 pf7 i/o pf7 adc3_in5 / fsmc_nreg tim11_ch1 g3 - - 20 pf8 i/o pf8 adc3_in6 / fsmc_niowr tim3_ch1 g2 - - 21 pf9 i/o pf9 adc3_in7 / fsmc_cd tim14_ch1 g1 - - 22 pf10 i/o pf10 adc3_in8 / fsmc_intr d1 5 12 23 osc_in i osc_in e1 6 13 24 osc_out o osc_out f1 7 14 25 nrst i/o nrst h1 8 15 26 pc0 i/o pc0 adc123_in10 h2 9 16 27 pc1 i/o pc1 adc123_in11 h3 10 17 28 pc2 i/o pc2 adc123_in12 h4 11 18 29 pc3 i/o pc3 adc123_in13 j1 12 19 30 v ssa sv ssa k1 - 20 31 v ref- sv ref-
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 27/45 l1 - 21 32 v ref+ sv ref+ m1 13 22 33 v dda sv dda j2 14 23 34 pa0-wkup i/o pa0 wkup/usart2_cts (7) / adc123_in0 / tim2_ch1_etr / tim5_ch1 / tim8_etr k2 15 24 35 pa1 i/o pa1 usart2_rts (8) / adc123_in1 / tim5_ch2 / tim2_ch2 (8) l2 16 25 36 pa2 i/o pa2 usart2_tx (8) / tim5_ch3 / adc123_in2 / tim9_ch1 / tim2_ch3 (8) m2 17 26 37 pa3 i/o pa3 usart2_rx (8) / tim5_ch4 / adc123_in3 / tim2_ch4 (8) / tim9_ch2 g4 18 27 38 v ss_4 sv ss_4 f4 19 28 39 v dd_4 sv dd_4 j3 20 29 40 pa4 i/o pa4 spi1_nss (8) / usart2_ck (8) / dac_out1 / adc12_in4 k3 21 30 41 pa5 i/o pa5 spi1_sck (8) / dac_out2 / adc12_in5 l3 22 31 42 pa6 i/o pa6 spi1_miso (8) / tim8_bkin / adc12_in6 / tim3_ch1 (8) / tim13_ch1 tim1_bkin m3 23 32 43 pa7 i/o pa7 spi1_mosi (8) / tim8_ch1n / adc12_in7 / tim3_ch2 (8) / tim14_ch1 tim1_ch1n j4 24 33 44 pc4 i/o pc4 adc12_in14 k4 25 34 45 pc5 i/o pc5 adc12_in15 l4 26 35 46 pb0 i/o pb0 adc12_in8 / tim3_ch3 / tim8_ch2n tim1_ch2n m4 27 36 47 pb1 i/o pb1 adc12_in9 / tim3_ch4 (8) / tim8_ch3n tim1_ch3n j5 28 37 48 pb2 i/o ft pb2/boot1 m5 - - 49 pf11 i/o ft pf11 fsmc_nios16 l5 - - 50 pf12 i/o ft pf12 fsmc_a6 h5 - - 51 v ss_6 sv ss_6 g5 - - 52 v dd_6 sv dd_6 k5 - - 53 pf13 i/o ft pf13 fsmc_a7 table 5. stm32f103xf and stm32f103xg pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap
pinouts and pin descriptions stm32f103xf, stm32f103xg 28/45 doc id 17144 rev 2 m6 - - 54 pf14 i/o ft pf14 fsmc_a8 l6 - - 55 pf15 i/o ft pf15 fsmc_a9 k6 - - 56 pg0 i/o ft pg0 fsmc_a10 j6 - - 57 pg1 i/o ft pg1 fsmc_a11 m7 - 38 58 pe7 i/o ft pe7 fsmc_d4 tim1_etr l7 - 39 59 pe8 i/o ft pe8 fsmc_d5 tim1_ch1n k7 - 40 60 pe9 i/o ft pe9 fsmc_d6 tim1_ch1 h6 - - 61 v ss_7 sv ss_7 g6 - - 62 v dd_7 sv dd_7 j7 - 41 63 pe10 i/o ft pe10 fsmc_d7 tim1_ch2n h8 - 42 64 pe11 i/o ft pe11 fsmc_d8 tim1_ch2 j8 - 43 65 pe12 i/o ft pe12 fsmc_d9 tim1_ch3n k8 - 44 66 pe13 i/o ft pe13 fsmc_d10 tim1_ch3 l8 - 45 67 pe14 i/o ft pe14 fsmc_d11 tim1_ch4 m8 - 46 68 pe15 i/o ft pe15 fsmc_d12 tim1_bkin m9 29 47 69 pb10 i/o ft pb10 i2c2_scl / usart3_tx (8) tim2_ch3 m10 30 48 70 pb11 i/o ft pb11 i2c2_sda / usart3_rx (8) tim2_ch4 h7 31 49 71 v ss_1 sv ss_1 g7 32 50 72 v dd_1 sv dd_1 m11 33 51 73 pb12 i/o ft pb12 spi2_nss / i2s2_ws / i2c2_smba / usart3_ck (8) / tim1_bkin (8) m12 34 52 74 pb13 i/o ft pb13 spi2_sck / i2s2_ck / usart3_cts (8) / tim1_ch1n l11 35 53 75 pb14 i/o ft pb14 spi2_miso / tim1_ch2n / usart3_rts (8) / tim12_ch1 l12 36 54 76 pb15 i/o ft pb15 spi2_mosi / i2s2_sd / tim1_ch3n (8) / tim12_ch2 l9 - 55 77 pd8 i/o ft pd8 fsmc_d13 usart3_tx k9 - 56 78 pd9 i/o ft pd9 fsmc_d14 usart3_rx j9 - 57 79 pd10 i/o ft pd10 fsmc_d15 usart3_ck h9 - 58 80 pd11 i/o ft pd11 fsmc_a16 usart3_cts l10 - 59 81 pd12 i/o ft pd12 fsmc_a17 tim4_ch1 / usart3_rts table 5. stm32f103xf and stm32f103xg pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 29/45 k10 - 60 82 pd13 i/o ft pd13 fsmc_a18 tim4_ch2 g8 - - 83 v ss_8 sv ss_8 f8 - - 84 v dd_8 sv dd_8 k11 - 61 85 pd14 i/o ft pd14 fsmc_d0 tim4_ch3 k12 - 62 86 pd15 i/o ft pd15 fsmc_d1 tim4_ch4 j12 - - 87 pg2 i/o ft pg2 fsmc_a12 j11 - - 88 pg3 i/o ft pg3 fsmc_a13 j10 - - 89 pg4 i/o ft pg4 fsmc_a14 h12 - - 90 pg5 i/o ft pg5 fsmc_a15 h11 - - 91 pg6 i/o ft pg6 fsmc_int2 h10 - - 92 pg7 i/o ft pg7 fsmc_int3 g11 - - 93 pg8 i/o ft pg8 g10 - - 94 v ss_9 sv ss_9 f10 - - 95 v dd_9 sv dd_9 g12 37 63 96 pc6 i/o ft pc6 i2s2_mck / tim8_ch1 / sdio_d6 tim3_ch1 f12 38 64 97 pc7 i/o ft pc7 i2s3_mck / tim8_ch2 / sdio_d7 tim3_ch2 f11 39 65 98 pc8 i/o ft pc8 tim8_ch3 / sdio_d0 tim3_ch3 e11 40 66 99 pc9 i/o ft pc9 tim8_ch4 / sdio_d1 tim3_ch4 e 1 2 4 1 6 7 1 0 0 pa 8 i / o f t pa 8 usart1_ck / tim1_ch1 (8) / mco d 1 2 4 2 6 8 1 0 1 pa 9 i / o f t pa 9 u s a rt 1 _ t x (8) / tim1_ch2 (8) d11 43 69 102 pa10 i/o ft pa10 usart1_rx (8) / tim1_ch3 (8) c12 44 70 103 pa11 i/o ft pa11 usart1_cts / usbdm / can_rx (8) / tim1_ch4 (8) b12 45 71 104 pa12 i/o ft pa12 usart1_rts / usbdp / can_tx (8) / tim1_etr (8) a12 46 72 105 pa13 i/o ft jtms- swdio pa 1 3 c11 - 73 106 not connected g9 47 74 107 v ss_2 sv ss_2 f9 48 75 108 v dd_2 sv dd_2 a11 49 76 109 pa 1 4 i / o f t jtck- swclk pa 1 4 table 5. stm32f103xf and stm32f103xg pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap
pinouts and pin descriptions stm32f103xf, stm32f103xg 30/45 doc id 17144 rev 2 a10 50 77 110 pa15 i/o ft jtdi spi3_nss / i2s3_ws tim2_ch1_etr pa15 / spi1_nss b11 51 78 111 pc10 i/o ft pc10 uart4_tx / sdio_d2 usart3_tx b10 52 79 112 pc11 i/o ft pc11 uart4_rx / sdio_d3 usart3_rx c10 53 80 113 pc12 i/o ft pc12 uart5_tx / sdio_ck usart3_ck e10 5 81 114 pd0 i/o ft osc_in (8) fsmc_d2 (9) can_rx d10 6 82 115 pd1 i/o ft osc_out (9) fsmc_d3 (9) can_tx e9 54 83 116 pd2 i/o ft pd2 tim3_etr / uart5_rx / sdio_cmd d9 - 84 117 pd3 i/o ft pd3 fsmc_clk usart2_cts c9 - 85 118 pd4 i/o ft pd4 fsmc_noe usart2_rts b9 - 86 119 pd5 i/o ft pd5 fsmc_nwe usart2_tx e7 - - 120 v ss_10 sv ss_10 f7 - - 121 v dd_10 sv dd_10 a8 - 87 122 pd6 i/o ft pd6 fsmc_nwait usart2_rx a9 - 88 123 pd7 i/o ft pd7 fsmc_ne1 / fsmc_nce2 usart2_ck e8 - - 124 pg9 i/o ft pg9 fsmc_ne2 / fsmc_nce3 d8 - - 125 pg10 i/o ft pg10 fsmc_nce4_1 / fsmc_ne3 c8 - - 126 pg11 i/o ft pg11 fsmc_nce4_2 b8 - - 127 pg12 i/o ft pg12 fsmc_ne4 d7 - - 128 pg13 i/o ft pg13 fsmc_a24 c7 - - 129 pg14 i/o ft pg14 fsmc_a25 e6 - - 130 v ss_11 s v ss_11 f6 - - 131 v dd_11 s v dd_11 b7 - - 132 pg15 i/o ft pg15 a7 55 89 133 pb3/ i/o ft jtdo spi3_sck / i2s3_ck/ pb3/traceswo tim2_ch2 / spi1_sck a6 56 90 134 pb4 i/o ft njtrst spi3_miso pb4 / tim3_ch1 spi1_miso b6 57 91 135 pb5 i/o pb5 i2c1_smba / spi3_mosi / i2s3_sd tim3_ch2 / spi1_mosi c6 58 92 136 pb6 i/o ft pb6 i2c1_scl (7) / tim4_ch1 (7) usart1_tx d6 59 93 137 pb7 i/o ft pb7 i2c1_sda (7) / fsmc_nadv / tim4_ch2 (7) usart1_rx table 5. stm32f103xf and stm32f103xg pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 31/45 d5 60 94 138 boot0 i boot0 c5 61 95 139 pb8 i/o ft pb8 tim4_ch3 (7) / sdio_d4 i2c1_scl/ can_rx b5 62 96 140 pb9 i/o ft pb9 tim4_ch4 (7) / sdio_d5 i2c1_sda / can_tx a5 - 97 141 pe0 i/o ft pe0 tim4_etr / fsmc_nbl0 a4 - 98 142 pe1 i/o ft pe1 fsmc_nbl1 e5 63 99 143 v ss_3 sv ss_3 f5 64 100 144 v dd_3 sv dd_3 1. i = input, o = output, s = supply. 2. ft = 5 v tolerant. 3. function availability depends on the chosen device. 4. if several peripherals share the same i/o pin, to avoid conflict between these alte rnate functions only one peripheral should be enabled at a time through the peri pheral clock enable bit (in the correspondi ng rcc peripheral clock enable register). 5. pc13, pc14 and pc15 are supplied through the power switch. sinc e the switch only sinks a limited amount of current (3 ma), the use of gpios pc13 to pc15 in output mode is li mited: the speed should not exceed 2 mhz with a maximum load of 30 pf and these ios must not be used as a current source (e.g. to drive an led). 6. main function after the first backup domain power-up. later on, it depends on the contents of the backup registers even after reset (because these registers are not reset by the main reset). for details on how to manage these ios, refer to the battery backup domain and bkp register description sections in the stm32f10xxx reference manual, available from the stmicroelectronics website: www.st.com. 7. this alternate function can be remapped by software to some other port pins (if available on the used package). for more details, refer to the alternate function i/o and debug conf iguration section in the st m32f10xxx reference manual, available from the stmicroel ectronics website: www.st.com. 8. for the lqfp64 package, the pins number 5 and 6 are c onfigured as osc_in/osc_out after reset, however the functionality of pd0 and pd1 can be remapped by softwa re on these pins. for the lqfp100 and lqfp144/bga144 packages, pd0 and pd1 are available by def ault, so there is no need for remapping. for more details, refer to alternate function i/o and debug configuration section in the stm32f10xxx reference manual. 9. for devices delivered in lq fp64 packages, the fsmc f unction is not available. table 5. stm32f103xf and stm32f103xg pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lfbga144 lqfp64 lqfp100 lqfp144 default remap
pinouts and pin descriptions stm32f103xf, stm32f103xg 32/45 doc id 17144 rev 2 table 6. fsmc pin definition pins fsmc lqfp100 (1) cf cf/ide nor/psram/ sram nor/psram mux nand 16 bit pe2 a23 a23 yes pe3 a19 a19 yes pe4 a20 a20 yes pe5 a21 a21 yes pe6 a22 a22 yes pf0 a0 a0 a0 - pf1 a1 a1 a1 - pf2 a2 a2 a2 - pf3 a3 a3 - pf4 a4 a4 - pf5 a5 a5 - pf6 niord niord - pf7 nreg nreg - pf8 niowr niowr - pf9 cd cd - pf10 intr intr - pf11 nios16 nios16 - pf12 a6 a6 - pf13 a7 a7 - pf14 a8 a8 - pf15 a9 a9 - pg0 a10 a10 - pg1 a11 - pe7 d4 d4 d4 da4 d4 yes pe8 d5 d5 d5 da5 d5 yes pe9 d6 d6 d6 da6 d6 yes pe10 d7 d7 d7 da7 d7 yes pe11 d8 d8 d8 da8 d8 yes pe12 d9 d9 d9 da9 d9 yes pe13 d10 d10 d10 da10 d10 yes pe14 d11 d11 d11 da11 d11 yes pe15 d12 d12 d12 da12 d12 yes pd8 d13 d13 d13 da13 d13 yes
stm32f103xf, stm32f103xg pinouts and pin descriptions doc id 17144 rev 2 33/45 pd9 d14 d14 d14 da14 d14 yes pd10 d15 d15 d15 da15 d15 yes pd11 a16 a16 cle yes pd12 a17 a17 ale yes pd13 a18 a18 yes pd14 d0 d0 d0 da0 d0 yes pd15 d1 d1 d1 da1 d1 yes pg2 a12 - pg3 a13 - pg4 a14 - pg5 a15 - pg6 int2 - pg7 int3 - pd0 d2 d2 d2 da2 d2 yes pd1 d3 d3 d3 da3 d3 yes pd3 clk clk yes pd4 noe noe noe noe noe yes pd5 nwe nwe nwe nwe nwe yes pd6 nwait nwait nwait nwait nwait yes pd7 ne1 ne1 nce2 yes pg9 ne2 ne2 nce3 - pg10 nce4_1 nce4_1 ne3 ne3 - pg11 nce4_2 nce4_2 - pg12 ne4 ne4 - pg13 a24 a24 - pg14 a25 a25 - pb7 nadv nadv yes pe0 nbl0 nbl0 yes pe1 nbl1 nbl1 yes 1. ports f and g are not available in dev ices delivered in 100-pin packages. table 6. fsmc pin definition (continued) pins fsmc lqfp100 (1) cf cf/ide nor/psram/ sram nor/psram mux nand 16 bit
memory mapping stm32f103xf, stm32f103xg 34/45 doc id 17144 rev 2 4 memory mapping the memory map is shown in figure 7 . figure 7. memory map 512-m b yte b lock 7 cortex-m 3 ' s intern a l peripher a l s 512-m b yte b lock 6 not us ed 512-m b yte b lock 5 f s mc regi s ter 512-m b yte b lock 4 f s mc ba nk 3 & ba nk4 512-m b yte b lock 3 f s mc ba nk1 & ba nk2 512-m b yte b lock 2 peripher a l s 512-m b yte b lock 1 s ram 0x0000 0000 0x1fff ffff 0x2000 0000 0x 3 fff ffff 0x4000 0000 0x5fff ffff 0x6000 0000 0x7fff ffff 0x 8 000 0000 0x9fff ffff 0xa000 0000 0xbfff ffff 0xc000 0000 0xdfff ffff 0xe000 0000 0xffff ffff 512-m b yte b lock 0 code fl as h memory ba nk 1 (512 kb) 0x0 8 0 8 0000 0x0 8 10 0000 - 0x1fff dfff 0x1fff e000- 0x1fff f7ff 0x1fff f 8 00 - 0x1fff f 8 0f 0x0 8 00 0000 0x0 8 07 ffff 0x0010 0000 - 0x07ff ffff 0x0000 0000 0x000f ffff s y s tem memory re s erved re s erved ali as ed to fl as h or s y s tem memory depending on boot pin s s ram (96 kb a li as ed b y b it- ba nding) re s erved 0x2000 0000 0x2001 7fff 0x2001 8 000 0x 3 fff ffff tim2 tim 3 0x4000 0000 - 0x4000 0 3 ff tim4 tim5 tim6 tim7 re s erved 0x4000 0400 - 0x4000 07ff 0x4000 0 8 00 - 0x4000 0bff 0x4000 0c00 - 0x4000 0fff 0x4000 1000 - 0x4000 1 3 ff 0x4000 1400 - 0x4000 17ff 0x4001 4000 - 0x4001 4bff rtc 0x4000 2 8 00 - 0x4000 2bff wwdg 0x4000 2c00 - 0x4000 2fff iwdg 0x4000 3 000 - 0x4000 33 ff re s erved 0x4000 3 400 - 0x4000 3 7ff s pi2/i2 s 2 0x4000 38 00 - 0x4000 3 bff s pi 3 /i2 s3 0x4000 3 c00 - 0x4000 3 fff re s erved 0x4000 4000 - 0x4000 4 3 ff u s art2 0x4000 4400 - 0x4000 47ff 0x4000 4 8 00 - 0x4000 4bff u s art 3 uart4 0x4000 4c00 - 0x4000 4fff uart5 0x4000 5000 - 0x4000 5 3 ff i2c1 0x4000 5400 - 0x4000 57ff i2c2 0x4000 5 8 00 - 0x4000 5bff re s erved 0x4000 6 8 00 - 0x4000 6bff bkp 0x4000 6c00 - 0x4000 6fff pwr 0x4000 7000 - 0x4000 7 3 ff dac 0x4000 7400 - 0x4000 77ff re s erved 0x4000 7 8 00 - 0x4000 ffff afio 0x4001 0000 - 0x4001 0 3 ff port a exti 0x4001 0400 - 0x4001 07ff 0x4001 0 8 00 - 0x4001 0bff port b 0x4001 0c00 - 0x4001 0fff port c 0x4001 1000 - 0x4001 1 3 ff port d 0x4001 1400 - 0x4001 17ff port e 0x4001 1 8 00 - 0x4001 1bff port f 0x4001 1c00 - 0x4001 1fff port g 0x4001 2000 - 0x4001 2 3 ff adc1 0x4001 2400 - 0x4001 27ff 0x4001 2 8 00 - 0x4001 2bff s pi1 0x4001 3 000 - 0x4001 33 ff 0x4001 3 400 - 0x4001 3 7ff u s art1 0x4001 38 00 - 0x4001 3 bff re s erved 0x4001 5 8 00 - 0x4001 7fff dma1 0x4002 0000 - 0x4002 0 3 ff dma2 0x4002 0400 - 0x4002 07ff re s erved 0x4002 0400 - 0x4002 0fff rcc 0x4002 1000 - 0x4002 1 3 ff re s erved 0x4002 1400 - 0x4002 1fff fl as h interf a ce s 1 & 2 0x4002 2000 - 0x4002 2 3 ff re s erved 0x4002 2400 - 0x4002 2fff crc 0x4002 3 000 - 0x4002 33 ff re s erved 0x4002 4400 - 0x5fff ffff f s mc ba nk1 nor/p s ram 1 0x6000 0000 - 0x6 3 ff ffff f s mc ba nk1 nor/p s ram 2 0x6400 0000 - 0x67ff ffff f s mc ba nk1 nor/p s ram 3 0x6 8 00 0000 - 0x6bff ffff f s mc ba nk1 nor/p s ram 4 0x6c00 0000 - 0x6fff ffff f s mc ba nk2 nand (nand1) 0x7000 0000 - 0x7fff ffff f s mc ba nk 3 nand (nand2) 0x 8 000 0000 - 0x 8 fff ffff f s mc ba nk4 pccard 0x9000 0000 - 0x9fff ffff f s mc regi s ter 0xa000 0000 - 0xa000 0fff re s erved 0xa000 1000 - 0xbfff ffff a i17 3 5 3 option b yte s tim 8 adc2 0x4001 8 000 - 0x4001 83 ff 0x4001 8 400 - 0x4001 ffff s dio re s erved adc 3 0x4001 3 c00 - 0x4001 3 fff tim1 0x4001 2c00 - 0x4001 2fff u s b regi s ter s s h a red u s b/can s ram 512 b yte s bxcan 0x4000 5c00 - 0x4000 5fff 0x4000 6000 - 0x4000 6 3 ff 0x4000 6400 - 0x4000 67ff fl as h memory ba nk 2 (256 kb or 512 kb) 0x0 8 0f ffff tim11 tim10 tim9 0x4001 5400 - 0x4001 57ff 0x4001 5000 - 0x4001 5 3 ff 0x4001 4c00 - 0x4001 4fff 0x4000 1 8 00 - 0x4000 1bff 0x4000 1c00 - 0x4000 1fff 0x4000 2000 - 0x4000 2 3 ff tim12 tim1 3 tim14 re s erved 0x4000 2400 - 0x4000 27ff
stm32f103xf, stm32f103xg package characteristics doc id 17144 rev 2 35/45 5 package characteristics 5.1 package mechanical data in order to meet environmental requirements, st offers these devices in different grades of ecopack ? packages, depending on their level of environmental compliance. ecopack ? specifications, grade definitions and product status are available at: www.st.com . ecopack ? is an st trademark. figure 8. recommended pcb design rules (0.80/0.75 mm pitch bga) dpad dsm dpad 0.37 mm dsm 0.52 mm typ. (depends on solder mask registration tolerance ? non solder mask defined pads are recommended ? 4 to 6 mils screen print solder paste 0.37 mm aperture diameter ai15469
package characteristics stm32f103xf, stm32f103xg 36/45 doc id 17144 rev 2 figure 9. lfbga144 ? 144-ball low profile fine pitch ball grid array, 10 x 10 mm, 0.8 mm pitch, package outline 1. drawing is not to scale. table 7. lfbga144 ? 144-ball low profile fine pitch ball grid array, 10 x 10 mm, 0.8 mm pitch, package data symbol millimeters inches (1) 1. values in inches are converted from mm and rounded to 4 decimal digits. min typ max typ min max a1.700.0669 a1 0.21 0.0083 a2 1.07 0.0421 a3 0.27 0.0106 a4 0.85 0.0335 b 0.35 0.40 0.45 0.0138 0.0157 0.0177 d 9.85 10.00 10.15 0. 3878 0.3937 0.3996 d1 8.80 0.3465 e 9.85 10.00 10.15 0. 3878 0.3937 0.3996 e1 8.80 0.3465 e0.80 0.0315 f0.60 0.0236 ddd 0.10 0.0039 eee 0.15 0.0059 fff 0.08 0.0031 s e a ting pl a ne c a2 a4 a 3 c ddd a1 a b a d1 e f d f e1 e e m eee m cab c fff (144 ba ll s ) ? b m ? ? x 3 _me b a ll a1
stm32f103xf, stm32f103xg package characteristics doc id 17144 rev 2 37/45 figure 10. lqfp144, 20 x 20 mm, 144-pin low-profile quad flat package outline (1) figure 11. recommended footprint (1)(2) 1. drawing is not to scale. 2. dimensions are in millimeters. d1 d3 d e1 e3 e e pin 1 identification 73 72 37 36 109 144 108 1 aa2a1 b c a1 l l1 k seating plane c ccc c 0.25 mm gage plane me_1a 0.5 0.35 19.9 17.85 22.6 1.35 22.6 19.9 ai149 1 36 37 72 73 108 109 144 table 8. lqfp144, 20 x 20 mm, 144-pin low-profile quad flat package mechanical data symbol millimeters inches (1) min typ max min typ max a1.600.063 a1 0.05 0.15 0.002 0.0059 a2 1.35 1.40 1.45 0.0531 0.0551 0.0571 b 0.17 0.22 0.27 0.0067 0.0087 0.0106 c 0.09 0.20 0.0035 0.0079 d 21.80 22.00 22.20 0.8583 0.8661 0.874 d1 19.80 20.00 20.20 0.7795 0.7874 0.7953 d3 17.50 0.689 e 21.80 22.00 22.20 0.8583 0.8661 0.874 e1 19.80 20.00 20.20 0.7795 0.7874 0.7953 e3 17.50 0.689 e 0.50 0.0197 l 0.45 0.60 0.75 0.0177 0.0236 0.0295 l1 1.00 0.0394 k 03.57 03.57 ccc 0.08 0.0031 1. values in inches are converted from mm and rounded to 4 decimal digits.
package characteristics stm32f103xf, stm32f103xg 38/45 doc id 17144 rev 2 figure 12. lqfp100, 14 x 14 mm 100-pin low-profile quad flat package outline (1) figure 13. recommended footprint (1)(2) 1. drawing is not to scale. 2. dimensions are in millimeters. d d1 d3 75 51 50 76 100 26 125 e3 e1 e e b pin 1 identification seating plane gage plane c a a2 a1 c ccc 0.25 mm 0.10 inch l l1 k c 1l_me 75 51 50 76 0.5 0. 3 16.7 14. 3 100 26 12. 3 25 1.2 16.7 1 a i14906 b table 9. lqpf100 ? 14 x 14 mm 100-pin low-profile quad flat package mechanical data symbol millimeters inches (1) min typ max min typ max a 1.60 0.063 a1 0.05 0.15 0.002 0.0059 a2 1.35 1.40 1.45 0.0531 0.0551 0.0571 b 0.17 0.22 0.27 0.0067 0.0087 0.0106 c 0.09 0.20 0.0035 0.0079 d 15.80 16.00 16.20 0.622 0.6299 0.6378 d1 13.80 14.00 14.20 0.5433 0.5512 0.5591 d3 12.00 0.4724 e 15.80 16.00 16.20 0.622 0.6299 0.6378 e1 13.80 14.00 14.20 0.5433 0.5512 0.5591 e3 12.00 0.4724 e 0.50 0.0197 l 0.45 0.60 0.75 0.0177 0.0236 0.0295 l1 1.00 0.0394 k 03.57 03.57 ccc 0.08 0.0031 1. values in inches are converted from mm and rounded to 4 decimal digits.
stm32f103xf, stm32f103xg package characteristics doc id 17144 rev 2 39/45 figure 14. lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package outline (1) figure 15. recommended footprint (1)(2) 1. drawing is not to scale. 2. dimensions are in millimeters. 5w_me l a1 k l1 c a a2 ccc c d d1 d3 e3 e1 e 32 33 48 49 b 64 1 pin 1 identification 16 17 48 32 49 64 17 116 1.2 0.3 33 10.3 12.7 10.3 0.5 7.8 12.7 ai14909 table 10. lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package mechanical data symbol millimeters inches (1) min typ max min typ max a 1.600 0.0630 a1 0.050 0.150 0.0020 0.0059 a2 1.350 1.400 1.450 0.0531 0.0551 0.0571 b 0.170 0.220 0.270 0.0067 0.0087 0.0106 c 0.090 0.200 0.0035 0.0079 d 11.800 12.000 12.200 0.4646 0.4724 0.4803 d1 9.800 10.000 10.200 0.3858 0.3937 0.4016 d. 7.500 e 11.800 12.000 12.200 0.4646 0.4724 0.4803 e1 9.800 10.00 10.200 0.3858 0.3937 0.4016 e 0.500 0.0197 k 03.57 03.57 l 0.450 0.600 0.75 0.0177 0.0236 0.0295 l1 1.000 0.0394 ccc 0.080 0.0031 n number of pins 64 1. values in inches are converted from mm and rounded to 4 decimal digits.
package characteristics stm32f103xf, stm32f103xg 40/45 doc id 17144 rev 2 5.2 thermal characteristics the maximum chip-junction temperature, t j max, in degrees celsius, may be calculated using the following equation: t j max = t a max + (p d max x ? ja ) where: t a max is the maximum ambient temperature in c, ? ja is the package junction-to-ambient thermal resistance, in ? c/w, p d max is the sum of p int max and p i/o max (p d max = p int max + p i/o max), p int max is the product of i dd and v dd , expressed in watts. this is the maximum chip internal power. p i/o max represents the maximum power dissipation on output pins where: p i/o max = ?? (v ol i ol ) + ? ((v dd ? v oh ) i oh ), taking into account the actual v ol / i ol and v oh / i oh of the i/os at low and high level in the application. 5.2.1 reference document jesd51-2 integrated circuits thermal test method environment conditions - natural convection (still air). ava ilable from www.jedec.org table 11. package thermal characteristics symbol parameter value unit ? ja thermal resistance junction-ambient lfbga144 - 10 10 mm / 0.8 mm pitch 40 c/w thermal resistance junction-ambient lqfp144 - 20 20 mm / 0.5 mm pitch 30 thermal resistance junction-ambient lqfp100 - 14 14 mm / 0.5 mm pitch 46 thermal resistance junction-ambient lqfp64 - 10 10 mm / 0.5 mm pitch 45
stm32f103xf, stm32f103xg package characteristics doc id 17144 rev 2 41/45 5.2.2 selecting the pro duct temperature range when ordering the microcontroller, the temperature range is specified in the ordering information scheme shown in table 12: stm32f103xf and stm32f103xg ordering information scheme . each temperature range suffix corresponds to a specific guaranteed ambient temperature at maximum dissipation and, to a specific maximum junction temperature. as applications do not commonly use the stm32f103xf and stm32f103xg at maximum dissipation, it is useful to calculate the exac t power consumption and junction temperature to determine which temperature range will be best suited to the application. the following examples show how to calculate the temperature range needed for a given application. example 1: high-performance application assuming the following application conditions: maximum ambient temperature t amax = 82 c (measured according to jesd51-2), i ddmax = 50 ma, v dd = 3.5 v, maximum 20 i/os used at the same time in output at low level with i ol = 8 ma, v ol = 0.4 v and maximum 8 i/os used at the same time in output at low level with i ol = 20 ma, v ol = 1.3 v p intmax = 50 ma 3.5 v= 175 mw p iomax = 20 8 ma 0.4 v + 8 20 ma 1.3 v = 272 mw this gives: p intmax = 175 mw and p iomax = 272 mw: p dmax = 175 + 272 = 447 mw thus: p dmax = 447 mw using the values obtained in ta b l e 1 1 t jmax is calculated as follows: ? for lqfp100, 46 c/w t jmax = 82 c + (46 c/w 447 mw) = 82 c + 20.6 c = 102.6 c this is within the range of the suffix 6 version parts (?40 < t j < 105 c). in this case, parts must be ordered at least with the temperature range suffix 6 (see table 12: stm32f103xf and stm32f103xg ordering information scheme ). example 2: high-temperature application using the same rules, it is possible to address applications that run at high ambient temperatures with a low dissipation, as long as junction temperature t j remains within the specified range. assuming the following application conditions: maximum ambient temperature t amax = 115 c (measured according to jesd51-2), i ddmax = 20 ma, v dd = 3.5 v, maximum 20 i/os used at the same time in output at low level with i ol = 8 ma, v ol = 0.4 v p intmax = 20 ma 3.5 v= 70 mw p iomax = 20 8 ma 0.4 v = 64 mw this gives: p intmax = 70 mw and p iomax = 64 mw: p dmax = 70 + 64 = 134 mw thus: p dmax = 134 mw
package characteristics stm32f103xf, stm32f103xg 42/45 doc id 17144 rev 2 using the values obtained in ta b l e 1 1 t jmax is calculated as follows: ? for lqfp100, 46 c/w t jmax = 115 c + (46 c/w 134 mw) = 115 c + 6.2 c = 121.2 c this is within the range of the suffix 7 version parts (?40 < t j < 125 c). in this case, parts must be ordered at least with the temperature range suffix 7 (see table 12: stm32f103xf and stm32f103xg ordering information scheme ). figure 16. lqfp100 p d max vs. t a 0 100 200 300 400 500 600 700 65 75 85 95 105 115 125 135 t a (c) p d (mw) suffix 6 suffix 7
stm32f103xf, stm32f103xg part numbering doc id 17144 rev 2 43/45 6 part numbering for a list of available options (speed, package, etc.) or for further information on any aspect of this device, please contact your nearest st sales office. table 12. stm32f103xf and stm32f103xg ordering information scheme example: stm32 f103 rf t 6 xxx device family stm32 = arm-based 32-bit microcontroller product type f = general-purpose device subfamily 103 = performance line pin count r = 64 pins v = 100 pins z = 144 pins flash memory size f = 768 kbytes of flash memory g = 1 mbyte of flash memory package h = bga t = lqfp temperature range 6 = industrial temperature range, ?40 to 85 c. 7 = industrial temperature range, ?40 to 105 c. options xxx = programmed parts tr = tape and real
revision history stm32f103xf, stm32f103xg 44/45 doc id 17144 rev 2 7 revision history table 13. document revision history date revision changes 17-feb-2010 1 initial release. 04-mar-2010 2 lqfp64 package mechanical data updated: see figure 14: lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package outline and ta b l e 1 0 : lqfp64 ? 10 x 10 mm 64 pin low-profile quad flat package mechanical data . internal code removed from table 12: stm32f103xf and stm32f103xg ordering information scheme .
stm32f103xf, stm32f103xg doc id 17144 rev 2 45/45 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2010 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of STM32F103ZGT6XXX

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X