![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
this is information on a product in full production. december 2014 docid025409 rev 2 1/124 stm32f334x4 stm32f334x6 stm32f334x8 arm ? cortex ? -m4 32b mcu+fpu,up to 64kb flash,16kb sram, 2 adcs,3 dacs,3 comp.,op-amp ,10-ch. high-resolution timer datasheet ? production data features ? core: arm ? cortex ? -m4 32-bit cpu with fpu (72 mhz max), single-cyc le multiplication and hw division, dsp instruction ? memories ? up to 64 kb of flash memory ? up to 12 kb of sram with hw parity check ? routine booster: 4 kb of sram on instruction and data bus with hw parity check (ccm) ? crc calculation unit ? reset and supply management ?v dd, v dda voltage range: 2.0 to 3.6 v ? power-on/power-down reset (por/pdr) ? programmable voltage detector (pvd) ? low-power modes: sleep,stop,standby ?v bat supply for rtc and backup registers ? clock management ? 4 to 32 mhz crystal oscillator ? 32 khz oscillator for rtc with calibration ? internal 8 mhz rc (up to 64 mhz with pll option) ? internal 40 khz oscillator ? up to 51 fast i/o por ts, all mappable on external interrupt vectors, several 5 v-tolerant ? interconnect matrix ? 7-channel dma controller ? up to two adc 0.20 s (up to 21 channels) with selectable resolution of 12/10/8/6 bits, 0 to 3.6 v conversion range, single- ended/differential mode, separate analog supply from 2.0 to 3.6 v ? temperature sensor ? up to three 12-bit dac channels with analog supply from 2.4 v to 3.6 v ? three ultra-fast rail-to-rail analog comparators with analog supply from 2 v to 3.6 v ? one operational amplifiers that can be used in pga mode, all terminals accessible with analog supply from 2.4 to 3.6 v ? up to 18 capacitive sensing channels supporting touchkeys, linear and rotary touch sensors ? up to 12 timers ? hrtim: 6 x16-bit counters, 217 ps resolution, 10 pwm, 5 fault inputs, 10 ext event input, 1 synchro. input,1 synchro. out ? one 32-bit timer and one 16-bit timer with up to 4 ic/oc/pwm or pulse counter and quadrature (incremental) encoder input ? one 16-bit 6-channel advanced-control timer, with up to 6 pwm channels, deadtime generation and emergency stop ? one 16-bit timer with 2 ic/ocs, 1 ocn/pwm, deadtime generation, emergency stop ? two 16-bit timers with ic/oc/ocn/pwm, deadtime generation and emergency stop ? two watchdog timers (independent, window) ? systick timer: 24-bit downcounter ? up to two 16-bit basic timers to drive dac ? calendar rtc with ala rm, periodic wakeup from stop ? communication interfaces ? can interface (2.0 b active) and one spi ?one i 2 c with 20 ma current sink to support fast mode plus, smbus/pmbus ? up to 3 usarts, one with iso/iec 7816 interface, lin, irda, modem control ? debug mode: serial wire debug (swd), jtag ? 96-bit unique id ? all packages ecopack ? 2 table 1. device summary reference part number stm32f334kx stm32f334k4/k6/k8 stm32f334cx stm32f334c4/c6/c8 stm32f334rx stm32f334r4/r6/r8 lqfp32 (7 x 7 mm) lqfp48 (7 x 7 mm) lqfp64 (10 x 10 mm) www.st.com
contents stm32f334x4 stm32f334x6 stm32f334x8 2/124 docid025409 rev 2 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.1 arm ? cortex ? -m4 core with fpu with embedded flash ? and sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2.1 embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2.2 embedded sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2.3 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3 cyclic redundancy check calculation unit (crc) . . . . . . . . . . . . . . . . . . . 14 3.4 power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.4.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.4.2 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.4.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4.4 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5 interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.6 clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.7 general-purpose inputs/outputs (gpios) . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.8 direct memory access (dma) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.9 interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.9.1 nested vectored interrupt controller (nvic) . . . . . . . . . . . . . . . . . . . . . . 19 3.9.2 extended interrupt/event controller (exti) . . . . . . . . . . . . . . . . . . . . . . 19 3.10 fast analog-to-digital converter (adc) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.10.1 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.10.2 internal voltage reference (vrefint) . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.10.3 v bat battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.10.4 opamp2 reference voltage (vopamp2) . . . . . . . . . . . . . . . . . . . . . . . . 21 3.11 digital-to-analog converter (dac) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.12 operational amplifier (opamp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.13 ultra-fast comparators (comp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.14 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 docid025409 rev 2 3/124 stm32f334x4 stm32f334x6 stm32f334x8 contents 4 3.14.1 high-resolution timer (hrtim 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.14.2 advanced timer (tim1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.14.3 general-purpose timers (tim2, tim3, tim15, tim16, tim17) . . . . . . . . 24 3.14.4 basic timers (tim6 and tim7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.14.5 independent watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.14.6 window watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.14.7 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.15 real-time clock (rtc) and backup registers . . . . . . . . . . . . . . . . . . . . . . 25 3.16 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.16.1 inter-integrated circuit interface (i 2 c) . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.16.2 universal synchronous/asynchronous receiver transmitters (usarts) . 27 3.16.3 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.16.4 controller area network (can) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.17 infrared transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.18 touch sensing controller (tsc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.19 development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.19.1 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . 30 4 pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3.2 operating conditions at power-up / powe r-down . . . . . . . . . . . . . . . . . . 56 6.3.3 embedded reset and power control bloc k characteristics . . . . . . . . . . . 56 contents stm32f334x4 stm32f334x6 stm32f334x8 4/124 docid025409 rev 2 6.3.4 embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.3.5 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.3.6 wakeup time from low-power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.3.7 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.3.8 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 6.3.9 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.3.10 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.3.11 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.3.12 electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.3.13 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.3.14 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.15 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.3.16 high-resolution timer (hrtim) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.3.17 timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 6.3.18 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 6.3.19 adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 6.3.20 dac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 6.3.21 comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 6.3.22 operational amplifier characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 106 6.3.23 temperature sensor (ts) characteristics . . . . . . . . . . . . . . . . . . . . . . . 109 6.3.24 v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 7 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 7.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 7.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 7.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 7.2.2 selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . 121 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 docid025409 rev 2 5/124 stm32f334x4 stm32f334x6 stm32f334x8 list of tables 6 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32f334x4/6/8 family device features and pe ripheral counts . . . . . . . . . . . . . . . . . . . . 10 table 3. v dda ranges for analog peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4. stm32f334x4/6/8 peripheral interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 5. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 6. comparison of i2c analog and digital filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 7. stm32f334x4/6/8 i 2 c implementation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 8. usart features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 9. stm32f334x4/6/8 spi implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 10. capacitive sensing gpios available on stm32f334x4/6/8 devices . . . . . . . . . . . . . . . . . 29 table 11. no. of capacitive sensing channels available on stm32f334x4/6/8 devices. . . . . . . . . . . 29 table 12. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 13. stm32f334x4/6/8 pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 14. alternate functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 15. stm32f334x4/6/8 peripheral register boundary addr esses. . . . . . . . . . . . . . . . . . . . . . . . 48 table 16. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 17. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 18. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 19. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 20. operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 21. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 22. programmable voltage detector characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 23. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 8 table 24. internal reference voltage calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 25. typical and maximum current consumption from v dd supply at v dd = 3.6v . . . . . . . . . . . 59 table 26. typical and maximum current consumption from the v dda supply . . . . . . . . . . . . . . . . . . 61 table 27. typical and maximum v dd consumption in stop and standby modes. . . . . . . . . . . . . . . . 61 table 28. typical and maximum v dda consumption in stop and standby modes. . . . . . . . . . . . . . . 62 table 29. typical and maximum current consumption from v bat supply. . . . . . . . . . . . . . . . . . . . . . 62 table 30. typical current consumption in run mode, code with data processing running from flash 64 table 31. typical current consumption in sleep mode, code running from flash or ram . . . . . . . . . 65 table 32. switching output i/o current cons umption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 33. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 34. low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 35. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 36. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 37. hse oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 38. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 39. hsi oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 40. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 41. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 42. flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 43. flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 44. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 45. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 46. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 47. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 48. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 list of tables stm32f334x4 stm32f334x6 stm32f334x8 6/124 docid025409 rev 2 table 49. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 50. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 51. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 52. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 53. hrtim1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 54. hrtim output response to fault pr otection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 55. hrtim output response to external events 1 to 5 (low latency mode). . . . . . . . . . . . . . . 88 table 56. hrtim output response to external events 1 to 10 (synchronous mode ) . . . . . . . . . . . . . 88 table 57. hrtim synchronization input / output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 58. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 59. iwdg min./max. timeout period at 40 khz (lsi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 60. wwdg min./max. timeout value at 72 mhz (pclk). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 61. i2c analog filter characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 62. spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 63. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 64. maximum adc rain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 65. adc accuracy - limited test conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 66. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 table 67. adc accuracy at 1msps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 table 68. dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 69. comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 70. operational amplifier characteristic s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 71. temperature sensor (ts) characte ristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 table 72. temperature sensor (ts) calibra tion values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 table 73. v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 table 74. lqfp32 ? 7 x 7mm, 32-pin low-profile quad flat package mechanical data. . . . . . . . . . . 111 table 75. lqfp48 ? 7 x 7 mm, 48-pin low-profile quad flat package mechanical data . . . . . . . . . . 114 table 76. lqfp64 ? 10 x 10 mm, 64-pin low-profile quad flat package mechanical data . . . . . . . . 117 table 77. package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 table 78. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 table 79. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 docid025409 rev 2 7/124 stm32f334x4 stm32f334x6 stm32f334x8 list of figures 7 list of figures figure 1. stm32f334x4/6/8 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 figure 3. infrared transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 4. lqfp32 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 5. lqfp48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 6. lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 7. stm32f334x4/6/8 memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 8. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 figure 9. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 figure 10. power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 11. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 figure 12. typical v bat current consumption (lse and rtc on/lsedrv[1:0] = ?00?) . . . . . . . . . . . 63 figure 13. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 figure 14. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 15. typical application with an 8 mhz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 16. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 figure 17. hsi oscillator accuracy char acterization results for soldered parts . . . . . . . . . . . . . . . . . . 75 figure 18. tc and tta i/o input characteristics - cmos port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 19. tc and tta i/o input characteri stics - ttl port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 20. five volt tolerant (ft and ftf) i/o input char acteristics - cmos port. . . . . . . . . . . . . . . . . 83 figure 21. five volt tolerant (ft and ftf) i/o input charac teristics - ttl port . . . . . . . . . . . . . . . . . . . 83 figure 22. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 23. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 figure 24. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 25. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 26. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 27. adc typical current consumption in single-end ed and differential modes . . . . . . . . . . . . . 96 figure 28. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 29. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 30. 12-bit buffered /non-buffered dac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 figure 31. opamp voltage noise versus frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 figure 32. lqfp32 ? 7 x 7mm, 32-pin low-profile quad fl at package outline . . . . . . . . . . . . . . . . . . 111 figure 33. lqfp32 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 figure 34. lqfp32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 figure 35. lqfp48 ? 7 x 7mm, 48-pin low-profile quad fl at package outline . . . . . . . . . . . . . . . . . . 114 figure 36. lqfp48 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5 figure 37. lqfp48 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 38. lqfp64 ? 10 x 10 mm, 64-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . 117 figure 39. lqfp64 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8 figure 40. lqfp64 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 introduction stm32f334x4 stm32f334x6 stm32f334x8 8/124 docid025409 rev 2 1 introduction this datasheet provides the ordering informat ion and mechanical devic e characteristics of the stm32f334x4/6/8 microcontrollers. this stm32f334x4/6/8 datasheet should be read in conjunction with the stm32f303xx rm0364 available from the stmicroelectronics website www.st.com . for information on the cortex ? -m4 core with fpu, please refer to: ? arm ? cortex ? -m4 processor technical reference manual available from the www.arm.com website. ? stm32f3xxx and stm32f4xxx cortex ? -m4 programming manual (pm0214) available from the www.st.com website. docid025409 rev 2 9/124 stm32f334x4 stm32f334x6 stm32f334x8 description 49 2 description the stm32f334x4/6/8 family is based on the high-performance arm ? 32-bit cortex ? -m4 risc core operating at a frequency of up to 72 mhz, and embedding a floating point unit (fpu). the stm32f334x4/6/8 family in corporates high-speed embedded memories ? (up to 64 kbytes of flash memory, up to 12 kbytes of sram), and an extensive range of enhanced i/os and peripherals connected to two apb buses. the stm32f334x4/6/8 devices offer a high resolution timer, two fast 12-bit adcs (5 msps), up to three ultra-fast comparators, an operational amplifier, three dac channels, a low- power rtc, one high-resolution timer, one general-purpose 32-bit timer, one timer dedicated to motor control, and four general-purpose 16-bit timers. they also feature standard and advanced communication interfaces: one i 2 c, one spi, up to three usarts and one can. the stm32f334x4/6/8 family operates in the ?40 to +85 c and ?40 to +105 c temperature ranges from a 2.0 to 3.6 v powe r supply. a comprehensive set of power-saving mode allows the design of low-power applications. the stm32f334x4/6/8 family offers devices in 32, 48 and 64-pin packages. the set of included peripherals changes with the device chosen. description stm32f334x4 stm32f334x6 stm32f334x8 10/124 docid025409 rev 2 table 2. stm32f334x4/6/8 family device features and peripheral counts peripheral stm32f334kx stm32f334cx stm32f334rx flash (kbytes) 16 32 64 16 32 64 16 32 64 sram on data bus (kbytes) 12 core coupled memory sram on instruction bus (ccm sram) (kbytes) 4 timers high-resolution timer 1 (16-bit / 10 channels) advanced control 1 (16-bit) general purpose 4 (16-bit) 1 (32 bit) basic 2 (16-bit) systick timer 1 watchdog timers (independent, window) 2 pwm channels (all) (1) 20 26 28 pwm channels (except complementary) 14 20 22 comm. interfaces spi 1 i 2 c1 usart 2 3 can 1 gpios normal i/os (tc, tta) 10 20 26 5-volt tolerant i/os (ft,ftf) 15 17 25 capacitive sensing channels 14 17 18 docid025409 rev 2 11/124 stm32f334x4 stm32f334x6 stm32f334x8 description 49 dma channels 7 12-bit adcs ? number of channels 2 9 2 15 2 21 12-bit dac channels 3 ultra-fast analog comparator 2 3 operational amplifiers 1 cpu frequency 72 mhz operating voltage 2.0 to 3.6 v operating temperature ambient operating temperature: - 40 to 85 c / - 40 to 105 c junction temperature: - 40 to 125 c packages lqfp32 lqfp48 lqfp64 1. this total considers also the pwms generated on the complementary output channels. table 2. stm32f334x4/6/8 family device features and peripheral counts (continued) peripheral stm32f334kx stm32f334cx stm32f334rx description stm32f334x4 stm32f334x6 stm32f334x8 12/124 docid025409 rev 2 figure 1. stm32f334x4/6/8 block diagram 1. af: alternate function on i/o pins. # 9 ' ' 0 6 y 9 ( ; 7 , 7 : l q : $ 7 & |