STM32F318C8 STM32F318K8 ARM -based Cortex -M4 32-bit MCU+FPU, 64 KB Flash, 16 KB SRAM, ADC, DAC, 3 COMP, Op-Amp, 1.8 V Datasheet - production data Features Core: ARM 32-bit Cortex -M4 CPU with FPU (72 MHz max.), single-cycle multiplication and HW division, DSP instruction LQFP48 UFQFPN32 WLCSP49 (7x7 mm) (3.417x3.151 mm) Memories (5x5 mm) 64 Kbytes of Flash memory Up to 17 capacitive sensing channels supporting touchkey, linear and rotary sensors 16 Kbytes of SRAM on data bus Up to 9 timers CRC calculation unit One 32-bit timer with up to 4 IC/OC/PWM Power management or pulse counter and quadrature Supply: V = 1.8 V 8% DD (incremental) encoder input V voltage range = 1.65 V to 3.6 V DDA One 16-bit 6-channel advanced-control External POR pin timer, with up to 6 PWM channels, Low-power: Sleep, Stop deadtime generation and emergency stop V supply for RTC and backup registers BAT Three 16-bit timers with IC/OC/OCN or Clock management PWM, deadtime gen. and emergency stop 4 to 32 MHz crystal oscillator One 16-bit basic timer to drive the DAC 32 kHz oscillator for RTC with calibration 2 watchdog timers (independent, window) Internal 8 MHz RC with x 16 PLL option SysTick timer: 24-bit downcounter Internal 40 kHz oscillator Calendar RTC with alarm, periodic wakeup from Stop Up to 36 fast I/O ports, all mappable on external interrupt vectors, several 5 V-tolerant Communication interfaces Interconnect matrix Three I2Cs with 20 mA current sink to support Fast mode plus 7-channel DMA controller supporting timers, 2 Up to 3 USARTs, 1 with ISO 7816 I/F, auto ADCs, SPIs, I Cs, USARTs and DAC baudrate detect and Dual clock domain 1 ADC 0.20 s (up to 11 channels) with Up to two SPIs with multiplexed full duplex selectable resolution of 12/10/8/6 bits, 0 to I2S 3.6 V conversion range, single Infrared transmitter ended/differential mode, separate analog supply from 1.8 to 3.6 V Serial wire debug (SWD), JTAG Temperature sensor 96-bit unique ID 1 x 12-bit DAC channel with analog supply from 2.4 to 3.6 V Three fast rail-to-rail analog comparators with analog supply from 1.8 to 3.6 V 1 x operational amplifier that can be used in PGA mode, all terminal accessible with analog supply from 2.4 to 3.6 V June 2017 DocID026294 Rev 6 1/126 This is information on a product in full production. www.st.comContents STM32F318C8 STM32F318K8 Contents 1 Introduction 8 2 Description . 9 3 Functional overview 12 3.1 ARM Cortex -M4 core with FPU, embedded Flash and SRAM . 12 3.2 Memories . 12 3.2.1 Embedded Flash memory . 12 3.2.2 Embedded SRAM . 12 3.3 Boot modes . 12 3.4 Cyclic redundancy check calculation unit (CRC) . 13 3.5 Power management . 13 3.5.1 Power supply schemes . 13 3.5.2 Power supply supervisor 13 3.5.3 Low-power modes . 14 3.6 Interconnect matrix 14 3.7 Clocks and startup 16 3.8 General-purpose inputs/outputs (GPIOs) . 18 3.9 Direct memory access (DMA) . 18 3.10 Interrupts and events 18 3.10.1 Nested vectored interrupt controller (NVIC) 18 3.11 Fast analog-to-digital converter (ADC) . 19 3.11.1 Temperature sensor 19 3.11.2 Internal voltage reference (V ) . 19 REFINT 3.11.3 V battery voltage monitoring . 20 BAT 3.12 Digital-to-analog converter (DAC) 20 3.13 Operational amplifier (OPAMP) 20 3.14 Ultra-fast comparators (COMP) 21 3.15 Timers and watchdogs . 21 3.15.1 Advanced timer (TIM1) . 22 3.15.2 General-purpose timers (TIM2, TIM15, TIM16, TIM17) . 22 3.15.3 Basic timer (TIM6) . 23 3.15.4 Independent watchdog (IWDG) . 23 2/126 DocID026294 Rev 6