This is information on a product in full production.
January 2015 DocID026351 Rev 3 1/109
STM32F328C8
ARM
®
Cortex
®
-M4 32b MCU+FPU, 64KB Flash, 16KB SRAM,
2 ADCs, 3 DAC channels, 3 COMPs, 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, and DSP instruction
Memories
Up to 64 KB of Flash memory
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
: 1.8 V +/-8%
–V
DDA
: voltage range: 1.65 to 3.6 V
Low-power modes: Sleep, Stop
–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 36 fast I/O ports, 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 14 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 1.8 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 1.8 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 17 capacitive sensing channels
supporting touchkeys, linear and rotary touch
sensors
Up to 11 timers
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 the
DAC
Calendar RTC with alarm, periodic wakeup
from Stop
Communication interfaces
CAN interface (2.0 B Active)
–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
–One SPI
Debug mode: serial wire debug (SWD), JTAG
96-bit unique ID
All packages ECOPACK
®
2
LQFP48 (7 × 7 mm)
www.st.com
Contents STM32F328C8
2/109 DocID026351 Rev 3
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 ARM
®
Cortex
®
-M4 core with FPU with embedded Flash
and SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2.1 Embedded Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2.2 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2.3 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.3 Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 13
3.4 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4.2 Power supply supervision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4.3 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5 Interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7 General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.8 Direct memory access (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.9 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.9.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 17
3.9.2 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 17
3.10 Fast analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.10.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.10.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.10.3 V
BAT
battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.10.4 OPAMP2 reference voltage (VOPAMP2) . . . . . . . . . . . . . . . . . . . . . . . . 19
3.11 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.12 Operational amplifier (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.13 Ultra-fast comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.14 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.14.1 Advanced timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21