Dual 32-bit Arm® Cortex®-M7 up to 480MHz and -M4 MCUs, up to
2MB Flash, 1MB RAM, 46 com. and analog interfaces, SMPS, DSI
Datasheet - production data
Features
Dual core
• 32-bit Arm® Cortex®-M7 core with double-
precision FPU and L1 cache: 16 Kbytes of data
and 16 Kbytes of instruction cache; frequency
up to 480 MHz, MPU, 1027 DMIPS/
2.14 DMIPS/MHz (Dhrystone 2.1), and DSP
instructions
• 32-bit Arm
Adaptive real-time accelerator (ART
Accelerator™) for internal Flash memory and
external memories, frequency up to 240 MHz,
MPU, 300 DMIPS/1.25 DMIPS /MHz
(Dhrystone 2.1), and DSP instructions
Memories
• Up to 2 Mbytes of Flash memory with readwhile-write support
• 1 Mbyte of RAM: 192 Kbytes of TCM RAM (inc.
64 Kbytes of ITCM RAM + 128 Kbytes of
DTCM RAM for time critical routines),
864 Kbytes of user SRAM, and 4 Kbytes of
SRAM in Backup domain
• Dual mode Quad-SPI memory interface
running up to 133 MHz
• Flexible external memory controller with up to
32-bit data bus: SRAM, PSRAM,
SDRAM/LPSDR SDRAM, NOR/NAND Flash
memory clocked up to 125 MHz in
Synchronous mode
• CRC calculation unit
®
32-bit Cortex®-M4 core with FPU,
FBGA
Reset and power management
• 3 separate power domains which can be
independently clock-gated or switched off:
– D1: high-performance capabilities
– D2: communication peripherals and timers
– D3: reset/clock control/power management
• 1.62 to 3.6 V application supply and I/Os
• POR, PDR, PVD and BOR
• Dedicated USB power embedding a 3.3 V
internal regulator to supply the internal PHYs
• Embedded regulator (LDO) to supply the digital
circuitry
• High power-efficiency SMPS step-down
converter regulator to directly supply V
and/or external circuitry
• Voltage scaling in Run and Stop mode (6
configurable ranges)
• Backup regulator (~0.9 V)
• Voltage reference for analog peripheral/V
• 1.2 to 3.6 V V
BAT
supply
• Low-power modes: Sleep, Stop, Standby and
V
supporting battery charging
BAT
CORE
REF+
Security
• ROP, PC-ROP, active tamper
Low-power consumption
• V
battery operating mode with charging
BAT
capability
General-purpose input/outputs
• Up to 168 I/O ports with interrupt capability
• CPU and domain power state monitoring pins
• 2.95 µA in Standby mode (Backup SRAM OFF,
RTC/LSE ON)
May 2019DS12930 Rev 11/242
This is information on a product in full production.
This document provides information on STM32H747xI/G microcontrollers, such as
description, functional overview, pin assignment and definition, electrical characteristics,
packaging, and ordering information.
This document should be read in conjunction
with the STM32H747xI/G reference manual
(RM0399), available from the STMicroelectronics website www.st.com.
For information on the Arm
the Cortex
®
-M7 Technical Reference Manual, available from the http://www.arm.com
®(a)
Cortex®-M7 core and Arm® Cortex®-M4 core, please refer to
website.
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
DS12930 Rev 13/242
46
DescriptionSTM32H747xI/G
2 Description
STM32H747xI/G devices are based on the high-performance Arm® Cortex®-M7 and
®
Cortex
Cortex
supports Arm
(IEEE 754 compliant), including a full set of DSP instructions and a memory protection unit
(MPU) to enhance application security.
STM32H747xI/G devices incorporate high-speed embedded memories with a dual-bank
Flash memory of up to 2
up to 864
range of enhanced I/Os and peripherals connected to APB buses, AHB buses, 2x32-bit
multi-AHB bus matrix and a multi layer AXI interconnect supporting internal and external
memory access.
All the devices offer three ADCs, two DACs, two ultra-low power comparators, a low-power
RTC, a high-resolution timer, 12 general-purpose 16-bit timers, two PWM timers for motor
control, five low-power timers, a true random number generator (RNG). The devices support
four digital filters for external sigma-delta modulators (DFSDM). They also feature standard
and advanced communication interfaces.
•Standard peripherals
•Advanced peripherals including
-M4 32-bit RISC cores. The Cortex®-M7 core operates at up to 480 MHz and the
®
-M4 core at up to 240 MHz. Both cores feature a floating point unit (FPU) which
®
single- and double-precision (Cortex®-M7 core) operations and conversions
Mbytes, up to 1 Mbyte of RAM (including 192 Kbytes of TCM RAM,
Kbytes of user SRAM and 4 Kbytes of backup SRAM), as well as an extensive
–Four I
2
Cs
–Four USARTs, four UARTs and one LPUART
–Six SPIs, three I
2
Ss in Half-duplex mode. To achieve audio class accuracy, the I2S
peripherals can be clocked by a dedicated internal audio PLL or by an external
clock to allow synchronization.
–A USB OTG full-speed and a USB OTG high-speed interface with full-speed
capability (with the ULPI)
–One FDCAN plus one TT-FDCAN interface
–An Ethernet interface
–Chrom-ART Accelerator
™
–HDMI-CEC
–A flexible memory control (FMC) interface
–A Quad-SPI Flash memory interface
–A camera interface for CMOS sensors
–An LCD-TFT display controller
–A JPEG hardware compressor/decompressor
–A DSI Host interface.
4/242DS12930 Rev 1
STM32H747xI/GDescription
Refer to Tab le 1: STM32H747xI/G features and peripheral counts for the list of peripherals
available on each part number.
STM32H747xI/G devices operate in the –40 to +85 °C temperature range from a 1.62 to
3.6
V power supply. The supply voltage can drop down to 1.62 V by using an external power
supervisor (see
Section 3.5.2: Power supply supervisor) and connecting the PDR_ON pin to
VSS. Otherwise the supply voltage must stay above 1.71 V with the embedded power
voltage detector enabled.
Dedicated supply inputs for USB (OTG_FS and OTG_HS) are available on all packages to
allow a greater power supply choice.
A comprehensive set of power-saving modes allows the design of low-power applications.
STM32H747xI/G devices are offered in 5 packages ranging from 156 pins to 240 pins/balls.
The set of included peripherals changes with the device chosen.
These features make STM32H747xI/G microcontrollers suitable for a wide range of
applications:
STM32H747xI/G devices are not pin-to-pin compatible with STM32H7x3 devices (single
core line):
•The TFBGA240+25 ballout is compatible with STM32H7x3 devices, except for a few
I/O balls as shown in Figure 2.
•LQFP208 and LQFP176 pinouts, as well as UFBGA176+25 ballout are not compatible
with STM32H7x3 devices.
Figure 2. TFBGA240+25 ball assignment differences
1. The balls highlighted in gray correspond to different signals on STM32H747xI/G and STM32H7x3 devices.
10/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3 Functional overview
3.1 Dual Arm
The dual-core MIPI-DSI STM32H747xI/G devices embed two Arm® cores, a Cortex®-M7
and a Cortex
while the Cortex
The two cores belong to separate power domains. This allows designing gradual highpower efficiency solutions in combination with the low-power modes already available on all
STM32 microcontrollers.
®
Cortex
®
-M4. The Cortex®-M4 offers optimal performance for real-time applications
®
®
cores
-M7 core can execute high-performance tasks in parallel.
3.1.1 Arm® Cortex®-M7 with FPU
The Arm® Cortex®-M7 with double-precision FPU processor is the latest generation of Arm
processors for embedded systems. It was developed to provide a low-cost platform that
meets the needs of MCU implementation, with a reduced pin count and optimized power
consumption, while delivering outstanding computational performance and low interrupt
latency.
The Cortex®-M7 processor is a highly efficient high-performance featuring:
•Six-stage dual-issue pipeline
•Dynamic branch prediction
•Harvard architecture with L1 caches (16 Kbytes of I-cache and 16 Kbytes of D-cache)
•64-bit AXI interface
•64-bit ITCM interface
•2x32-bit DTCM interfaces
The following memory interfaces are supported:
•Separate Instruction and Data buses (Harvard Architecture) to optimize CPU latency
•Tightly Coupled Memory (TCM) interface designed for fast and deterministic SRAM
accesses
•AXI Bus interface to optimize Burst transfers
•Dedicated low-latency AHB-Lite peripheral bus (AHBP) to connect to peripherals.
The processor supports a set of DSP instructions which allow efficient signal processing and
complex algorithm execution.
It also supports single and double precision FPU (floating point unit) speeds up software
development by using metalanguage development tools, while avoiding saturation.
Figure 1 shows the general block diagram of the STM32H747xI/G family.
Note:Cortex®-M7 with FPU core is binary compatible with the Cortex®-M4 core.
DS12930 Rev 111/242
46
Functional overviewSTM32H747xI/G
3.1.2 Arm® Cortex®-M4 with FPU
The Arm® Cortex®-M4 processor is a high-performance embedded processor which
supports DSP instructions. It was developed to provide an optimized power consumption
MCU, while delivering outstanding computational performance and low interrupt latency.
The Arm® Cortex®-M4 processor is a highly efficient MCU featuring:
•3-stage pipeline with branch prediction
•Harvard architecture
•32-bit System (S-BUS) interface
•32-bit I-BUS interface
•32-bit D-BUS interface
The Arm® Cortex®-M4 processor also features a dedicated hardware adaptive real-time
accelerator (ART Accelerator
four 256-bit lines, a 256-bit cache buffer connected to the 64-bit AXI interface and a 32-bit
interface for non-cacheable accesses.
™
). This is an instruction cache memory composed of sixty-
3.2 Memory protection unit (MPU)
The devices feature two memory protection units. Each MPU manages the CPU access
rights and the attributes of the system resources. It has to be programmed and enabled
before use. Its main purposes are to prevent an untrusted user program to accidentally
corrupt data used by the OS and/or by a privileged task, but also to protect data processes
or read-protect memory regions.
The MPU defines access rules for privileged accesses and user program accesses. It
allows defining up to 16 protected regions that can in turn be divided into up to 8
independent subregions, where region address, size, and attributes can be configured. The
protection area ranges from 32 bytes to 4
When an unauthorized access is performed, a memory management exception is
generated.
Gbytes of addressable memory.
12/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.3 Memories
3.3.1 Embedded Flash memory
The STM32H747xI/G devices embed up to 2 Mbytes of Flash memory that can be used for
storing programs and data.
The Flash memory is organized as 266-bit Flash words memory that can be used for storing
both code and data constants. Each word consists of:
•One Flash word (8 words, 32 bytes or 256 bits)
•10 ECC bits.
The Flash memory is divided into two independent banks. Each bank is organized as
follows:
•A user Flash memory block of 512 Kbytes (STM32H7xxxG) or 1-Mbyte (STM32H7xxxI)
containing eight user sectors of 128 Kbytes (4 K Flash memory words)
•128 Kbytes of System Flash memory from which the device can boot
•2 Kbytes (64 Flash words) of user option bytes for user configuration
3.3.2 Embedded SRAM
All devices feature around 1 Mbyte of RAM with hardware ECC. The RAM is divided as
follows:
•512 Kbytes of AXI-SRAM mapped onto AXI bus on D1 domain.
•SRAM1 mapped on D2 domain: 128 Kbytes
•SRAM2 mapped on D2 domain: 128 Kbytes
•SRAM3 mapped on D2 domain: 32 Kbytes
•SRAM4 mapped on D3 domain: 64 Kbytes
•4 Kbytes of backup SRAM
The content of this area is protected against possible unwanted write accesses,
and is retained in Standby or V
•RAM mapped to TCM interface (ITCM and DTCM):
Both ITCM and DTCM RAMs are 0 wait state memories. They can be accessed either
from the Arm
AHB slave of the Cortex
®
Cortex®-M7 CPU or the MDMA (even in Sleep mode) through a specific
®
-M7(AHBS):
–64 Kbytes of ITCM-RAM (instruction RAM)
This RAM is connected to ITCM 64-bit interface designed for execution of critical
real-times routines by the Cortex
–128 Kbytes of DTCM-RAM (2x 64-Kbyte DTCM-RAMs on 2x32-bit DTCM ports)
The DTCM-RAM could be used for critical real-time data, such as interrupt service
routines or stack/heap memory. Both DTCM-RAMs can be used in parallel (for
load/store operations) thanks to the Cortex
The MDMA can be used to load code or data in ITCM or DTCM RAMs.
BAT
mode.
®
-M7.
®
-M7 dual issue capability.
DS12930 Rev 113/242
46
Functional overviewSTM32H747xI/G
Error code correction (ECC)
Over the product lifetime, and/or due to external events such as radiations, invalid bits in
memories may occur. They can be detected and corrected by ECC. This is an expected
behavior that has to be managed at final-application software level in order to ensure data
integrity through ECC algorithms implementation.
SRAM data are protected by ECC:
•7 ECC bits are added per 32-bit word.
•8 ECC bits are added per 64-bit word for AXI-SRAM and ITCM-RAM.
The ECC mechanism is based on the SECDED algorithm. It supports single-error correction
and double-error detection.
3.3.3 ART™ accelerator
The ART™ (adaptive real-time) accelerator block speeds up instruction fetch accesses of
the Cortex
®
-M4 core from D1-domain internal memories (Flash memory bank 1, Flash
memory bank 2, AXI SRAM) and from D1-domain external memories attached via QuadSPI controller and Flexible memory controller (FMC).
The ART™ accelerator is a 256-bit cache line using 64-bit WRAP4 accesses from the 64-bit
AXI D1 domain. The acceleration is achieved by loading selected code into an embedded
cache and making it instantly available to Cortex
®
-M4 core, thus avoiding latency due to
memory wait states.
Figure 3. shows the block schematic and the environment of the ART accelerator.
14/242DS12930 Rev 1
STM32H747xI/GFunctional overview
MSv39757V2
64-bit AXI bus matrix
Flash bank 1
Flash bank 2
AXI SRAM
QSPI
FMC
AHB from D2 domain
32-bit bus
64-bit bus
Bus multiplexer
Legend
Master interface
Slave interface
AXI AHB
ART accelerator
AHB switch
Non-cacheable
access path
Cacheable
access path
AXI access
AHB access
D1 domain
Control
control
Cache memory
64 x 256-bit
Cache memory
64 x 256-bit
Cache buffer
1 x 256-bit
Cache
non-
cacheable
access
Detect of
write to cacheable page
instruction
fetch
cache
hit
cache
miss
cache
refill
Cache
manager
Figure 3. ART™ accelerator schematic and environment
3.4 Boot modes
By default, the boot codes are executed simultaneously by both cores. However, by
programming the appropriate Flash user option byte, it is possible to boot from one core
while clock-gating the other core.
At startup, the boot memory space is selected by the BOOT pin and BOOT_ADDx option
bytes, allowing to program any boot memory address from 0x0000 0000 to 0x3FFF FFFF
which includes:
•All Flash address space
•Flash memory and SRAMs (except for ITCM /DTCM RAMs which cannot be accessed
by the Cortex
®
-M4 core)
DS12930 Rev 115/242
46
Functional overviewSTM32H747xI/G
The bootloader is located in non-user System memory. It is used to reprogram the Flash
memory through a serial interface (USART, I2C, SPI, USB-DFU). Refer to STM32 microcontroller System memory Boot mode application note (AN2606) for details.
3.5 Power supply management
3.5.1 Power supply scheme
STM32H747xI/G power supply voltages are the following:
•V
= 1.62 to 3.6 V: external power supply for I/Os, provided externally through V
DD
pins.
•V
•V
= 1.62 to 3.6 V: supply voltage for the internal regulator supplying V
DDLDO
= 1.62 to 3.6 V: external analog power supplies for ADC, DAC, COMP and
DDA
CORE
OPAMP.
•V
DD33USB and VDD50USB
V
DD50USB
can be supplied through the USB cable to generate the V
USB internal regulator. This allows supporting a V
The USB regulator can be bypassed to supply directly V
•V
•V
= 1.2 to 3.6 V: power supply for the VSW domain when VDD is not present.
BAT
CAP
: V
supply voltage, which values depend on voltage scaling (1.0 V, 1.1 V,
CORE
:
supply different from 3.3 V.
DD
DD33USB
DD33USB
if VDD = 3.3 V.
via the
1.2 V or 1.35 V). They are configured through VOS bits in PWR_D3CR register and
ODEN bit in the SYSCFG_PWRCR register. The V
domain is split into the
CORE
following power domains that can be independently switch off.
–D1 domain containing some peripherals and the Cortex
–D2 domain containing a large part of the peripherals and the Cortex
®
-M7 core.
®
-M4 core.
–D3 domain containing some peripherals and the system control.
•V
•V
•V
DDSMPS
V
DDSMPS
LXSMPS
FBSMPS
= 1.62 V to 3.6 V: SMPS step-down converter power supply
must be kept at the same voltage level as VDD.
= SMPS step-down converter output coupled to an inductor.
= V
, 1.8 V or 2.5 V external SMPS step-down converter feedback
CORE
voltage sense input.
•V
•V
•V
= 1.62 to 3.6 V: supply voltage for the DSI internal regulator
DDDSI
DD12DSI
CAPDSI
= 1.15 to 1.3 V: optional supply voltage for the DSI PHY (DSI regulator off)
: DSI regulator supply output
During power-up and power-down phases, the following power sequence requirements
must be respected (see
•When VDD is below 1 V, other power supplies (V
must remain below V
•When V
is above 1 V, all power supplies are independent (except for V
DD
which must remain at the same level as V
Figure 4):
+ 300 mV.
DD
DD
).
DDA
, V
DD33USB
, V
DD50USB
, V
DDDSI
DDSMPS
During the power-down phase, VDD can temporarily become lower than other supplies only
if the energy provided to the microcontroller remains below 1
mJ. This allows external
decoupling capacitors to be discharged with different time constants during the power-down
transient phase.
DD
,
)
16/242DS12930 Rev 1
STM32H747xI/GFunctional overview
MSv47490V1
0.3
1
V
BOR0
3.6
Operating modePower-onPower-downtime
V
V
DDX
(1)
V
DD
Invalid supply areaV
DDX
< V
DD
+ 300 mV
V
DDX
independent from V
DD
Figure 4. Power-up/power-down sequence
1. V
2. V
refers to any power supply among V
DDx
DD
and V
must be wired together into order to follow the same voltage sequence.
DDSMPS
3.5.2 Power supply supervisor
The devices have an integrated power-on reset (POR)/ power-down reset (PDR) circuitry
coupled with a Brownout reset (BOR) circuitry:
•Power-on reset (POR)
The POR supervisor monitors V
The devices remain in Reset mode when V
•Power-down reset (PDR)
The PDR supervisor monitors V
below a fixed threshold.
The PDR supervisor can be enabled/disabled through PDR_ON pin.
•Brownout reset (BOR)
The BOR supervisor monitors V
2.7 V) can be configured through option bytes. A reset is generated when V
below this threshold.
, V
DDA
power supply and compares it to a fixed threshold.
DD
power supply. A reset is generated when V
DD
power supply. Three BOR thresholds (from 2.1 to
DD
DD33USB
, V
DD50USB
is below this threshold,
DD
and V
DDDSI
.
DD
DD
drops
drops
DS12930 Rev 117/242
46
Functional overviewSTM32H747xI/G
3.5.3 Voltage regulator (SMPS step-down converter and LDO)
The same voltage regulator supplies the 3 power domains (D1, D2 and D3). D1 and D2 can
be independently switched off.
Voltage regulator output can be adjusted according to application needs through 6 power
supply levels:
•Run mode (VOS0 to VOS3)
–Scale 0: boosted performance (available only with LDO regulator)
–Scale 1: high performance
–Scale 2: medium performance and consumption
–Scale 3: optimized performance and low-power consumption
Note:For STM32H7x7xIT3 sales types (industrial temperature range) the voltage regulator output
can be set only to VOS2 or VOS3 in Run mode (VOS1 is not available for industrial
temperature range).
•Stop mode (SVOS3 to SVOS5)
–Scale 3: peripheral with wakeup from Stop mode capabilities (UART, SPI, I2C,
LPTIM) are operational
–Scale 4 and 5 where the peripheral with wakeup from Stop mode is disabled
The peripheral functionality is disabled but wakeup from Stop mode is possible
through GPIO or asynchronous interrupt
.
3.5.4 SMPS step-down converter
The built-in SMPS step-down converter is a highly power-efficient DC/DC non-linear
switching regulator that provides lower power consumption than a conventional voltage
regulator (LDO).
18/242DS12930 Rev 1
STM32H747xI/GFunctional overview
The SMPS step-down converter can be used for the following purposes:
•Direct supply of the V
CORE
domain
–the SMPS step-down converter operating modes follow the device system
operating modes (Run, Stop, Standby).
–the SMPS step-down converter output voltage are set according to the selected
VOS and SVOS bits (voltage scaling)
•Delivery of an intermediate voltage level to supply the internal voltage regulator (LDO)
–SMPS step-down converter operating modes
When the SDEXTHP bit is equal to 0 in the PWR_CR3 register, the SMPS stepdown converter follows the device system operating modes (Run, Stop and
Standby).
When the SDEXTHP bit is equal to 1 in PWR_CR3, the SMPS step-down
converter is forced to High-performance mode and does not follow the device
system operating modes (Run, Stop and Standby).
–The SMPS step-down converter output equals 1.8 V or 2.5 V according to the
selected SD level
•Delivery of an external supply
–The SMPS step-down converter is forced to High-performance mode (provided
SDEXTHP bit is equal to 1 in PWR_CR3)
–The SMPS step-down converter output equals 1.8 V or 2.5 V according to the
selected SD level
3.6 Low-power strategy
There are several ways to reduce power consumption on STM32H747xI/G:
•Select the SMPS step-down converter as V
enhance power efficiency.
•Select the adequate voltage scaling
•Decrease the dynamic power consumption by slowing down the system clocks even in
Run mode, and by individually clock gating the peripherals that are not used.
•Save power consumption when one or both CPUs are idle, by selecting among the
available low-power mode according to the user application needs. This allows
achieving the best compromise between short startup time, low-power consumption, as
well as available wakeup sources.
The devices feature several low-power modes:
•CSleep (CPU clock stopped)
•CStop (CPU sub-system clock stopped)
•DStop (Domain bus matrix clock stopped)
•Stop (System clock stopped)
•DStandby (Domain powered down)
•Standby (System powered down)
CSleep and CStop low-power modes are entered by the MCU when executing the WFI
(Wait for Interrupt) or WFE (Wait for Event) instructions, or when the SLEEPONEXIT bit of
the Cortex
®
-Mx core is set after returning from an interrupt service routine.
supply voltage source, as it allows to
CORE
DS12930 Rev 119/242
46
Functional overviewSTM32H747xI/G
A domain can enter low-power mode (DStop or DStandby) when the processor, its
subsystem and the peripherals allocated in the domain enter low-power mode. For instance
D1 or D2 domain enters DStop/DStandby mode when the CPU of the domain is in CStop
mode AND the other CPU has no peripheral allocated in that domain, or if it is in CStop
mode too. D3 domain can enter DStop/DStandby mode if both core subsystems do not have
active peripherals in D3 domain, and D3 is not forced in Run mode.
If part of the domain is not in low-power mode, the domain remains in the current mode.
Finally the system can enter Stop or Standby when all EXTI wakeup sources are cleared
and the power domains are in DStop or DStandby mode.
The clock system can be re-initialize by a master CPU (either the Cortex®-M4 or -M7) after
exiting Stop mode while the slave CPU is held in low-power mode. Once the master CPU
has re-initialized the system, the slave CPU can receive a wakeup interrupt and proceed
with the interrupt service routine.
Table 2. System vs domain low-power mode
System power mode
RunDRun/DStop/DStandby DRun/DStop/DStandbyDRun
StopDStop/DStandbyDStop/DStandbyDStop
StandbyDStandbyDStandbyDStandby
D1 domain power
mode
3.7 Reset and clock controller (RCC)
The clock and reset controller is located in D3 domain. The RCC manages the generation of
all the clocks, as well as the clock gating and the control of the system and peripheral
resets. It provides a high flexibility in the choice of clock sources and allows to apply clock
ratios to improve the power consumption. In addition, on some communication peripherals
that are capable to work with two different clock domains (either a bus interface clock or a
kernel peripheral clock), the system frequency can be changed without modifying the
baudrate.
3.7.1 Clock management
The devices embed four internal oscillators, two oscillators with external crystal or
resonator, two internal oscillators with fast startup time and three PLLs.
The RCC receives the following clock source inputs:
•Internal oscillators:
–64 MHz HSI clock
–48 MHz RC oscillator
–4 MHz CSI clock
–32 kHz LSI clock
•External oscillators:
–HSE clock: 4-50 MHz (generated from an external source) or 4-48 MHz(generated
from a crystal/ceramic resonator)
–LSE clock: 32.768 kHz
D2 domain power
mode
D3 domain power
mode
20/242DS12930 Rev 1
STM32H747xI/GFunctional overview
The RCC provides three PLLs: one for system clock, two for kernel clocks.
The system starts on the HSI clock. The user application can then select the clock
configuration.
3.7.2 System reset sources
Power-on reset initializes all registers while system reset reinitializes the system except for
the debug, part of the RCC and power controller status registers, as well as the backup
power domain.
A system reset is generated in the following cases:
•Power-on reset (pwr_por_rst)
•Brownout reset
•Low level on NRST pin (external reset)
•Independent watchdog 1 (from D1 domain)
•Independent watchdog 2 (from D2 domain)
•Window watchdog 1 (from D1 domain)
•Window watchdog 2 (from D2 domain)
•Software reset
•Low-power mode security reset
•Exit from Standby
3.8 General-purpose input/outputs (GPIOs)
Each of the GPIO pins can be configured by software as output (push-pull or open-drain,
with or without pull-up or pull-down), as input (floating, 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 and have speed selection to better
manage internal noise, power consumption and electromagnetic emission.
After reset, all GPIOs (except debug pins) are in Analog mode to reduce power
consumption (refer to GPIOs register reset values in the device reference manual).
The I/O configuration can be locked if needed by following a specific sequence in order to
avoid spurious writing to the I/Os registers.
3.9 Bus-interconnect matrix
The devices feature an AXI bus matrix, two AHB bus matrices and bus bridges that allow
interconnecting bus masters with bus slaves (see
Figure 5).
DS12930 Rev 121/242
46
22/242DS12930 Rev 1
MSv39740V3
AXIM
DMA2
Ethernet
MAC
SDMMC2DMA1USBHS1 USBHS2
Cortex-M4
APB1
ARTSDMMC1 MDMADMA2DLTDC
BDMA
APB4
Cortex-M7
I$
16KBD$16KB
AHBP
DMA1_MEM
DMA1_PERIPH
DMA2_MEM
DMA2_PERIPH
S-bus
D-bus
I-bus
APB3
32-bit AHB bus matrix
D2 domain
64-bit AXI bus matrix
D1 domain
32-bit AHB bus matrix
D3 domain
DTCM
128 Kbyte
ITCM
64 Kbyte
Flash A
Up to 1 Mbyte
Flash B
Up to 1 Mbyte
AXI SRAM
512 Kbyte
QSPI
FMC
SRAM1 128
Kbyte
SRAM2 128
Kbyte
SRAM3
32 Kbyte
AHB1
AHB2
AHB4
SRAM4
64 Kbyte
Backup
SRAM
4 Kbyte
AHBS
CPU
CPU
D2-to-D1 AHB
D2-to-D3 AHB
D1-to-D2 AHB
D1-to-D3 AHB
32-bit bus
64-bit bus
Bus multiplexer
Legend
Master interface
1
2
3
Slave interface
AHB3
AXI
AHB
APB
APB2
TCM
7
5
4
6
Figure 5. STM32H747xI/G bus matrix
Functional overviewSTM32H747xI/G
STM32H747xI/GFunctional overview
3.10 DMA controllers
The devices feature four DMA instances to unload CPU activity:
•A master direct memory access (MDMA)
The MDMA is a high-speed DMA controller, which is in charge of all types of memory
transfers (peripheral to memory, memory to memory, memory to peripheral), without
any CPU action. It features a master AXI interface and a dedicated AHB interface to
access Cortex
The MDMA is located in D1 domain. It is able to interface with the other DMA
controllers located in D2 domain to extend the standard DMA capabilities, or can
manage peripheral DMA requests directly.
Each of the 16 channels can perform single block transfers, repeated block transfers
and linked list transfers.
•Two dual-port DMAs (DMA1, DMA2) located in D2 domain, with FIFO and request
router capabilities.
•One basic DMA (BDMA) located in D3 domain, with request router capabilities.
The DMA request router could be considered as an extension of the DMA controller. It
routes the DMA peripheral requests to the DMA controller itself. This allowing managing the
DMA requests with a high flexibility, maximizing the number of DMA requests that run
concurrently, as well as generating DMA requests from peripheral output trigger or DMA
event.
®
-M7 TCM memories.
3.11 Chrom-ART Accelerator™ (DMA2D)
The Chrom-Art Accelerator™ (DMA2D) is a graphical accelerator which offers advanced bit
blitting, row data copy and pixel format conversion. It supports the following functions:
•Rectangle filling with a fixed color
•Rectangle copy
•Rectangle copy with pixel format conversion
•Rectangle composition with blending and pixel format conversion
Various image format coding are supported, from indirect 4bpp color mode up to 32bpp
direct color. It embeds dedicated memory to store color lookup tables. The DMA2D also
supports block based YCbCr to handle JPEG decoder output.
An interrupt can be generated when an operation is complete or at a programmed
watermark.
All the operations are fully automatized and are running independently from the CPU or the
DMAs.
DS12930 Rev 123/242
46
Functional overviewSTM32H747xI/G
3.12 Nested vectored interrupt controller (NVIC)
Both Cortex®-M7 (CPU1) and Cortex®-M4 (CPU2) cores have their own nested vector
interrupt controller (respectively NVIC1 and NVIC2). Each NVIC instance is able to manage
16 priority levels, and handle up to 150 maskable interrupt channels plus the 16 interrupt
lines of the Cortex
•Interrupt entry vector table address passed directly to the core
•Allows early processing of interrupts
•Processing of late arriving, higher-priority interrupts
•Support tail chaining
•Processor context automatically saved on interrupt entry, and restored on interrupt exit
with no instruction overhead
This hardware block provides flexible interrupt management features with minimum interrupt
latency.
®
-M7 with FPU core.
3.13 Extended interrupt and event controller (EXTI)
The EXTI controller performs interrupt and event management. In addition, it can wake up
the processors, power domains and/or D3 domain from Stop mode.
The EXTI handles up to 89 independent event/interrupt lines split as 28 configurable events
and 61 direct events (including two interrupt lines for inter-core management).
Configurable events have dedicated pending flags, active edge selection, and software
trigger capable.
Direct events provide interrupts or events from peripherals having a status flag.
3.14 Cyclic redundancy check calculation unit (CRC)
The CRC (cyclic redundancy check) calculation unit is used to get a CRC code using a
programmable 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 calculation unit helps compute a signature of
the software during runtime, to be compared with a reference signature generated at linktime and stored at a given memory location.
24/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.15 Flexible memory controller (FMC)
The FMC controller main features are the following:
•Interface with static-memory mapped devices including:
–Static random access memory (SRAM)
–NOR Flash memory/OneNAND Flash memory
–PSRAM (4 memory banks)
–NAND Flash memory with ECC hardware to check up to 8 Kbytes of data
•Interface with synchronous DRAM (SDRAM/Mobile LPSDR SDRAM) memories
•8-,16-,32-bit data bus width
•Independent Chip Select control for each memory bank
•Independent configuration for each memory bank
•Write FIFO
•Read FIFO for SDRAM controller
•The maximum FMC_CLK/FMC_SDCLK frequency for synchronous accesses is the
FMC kernel clock divided by 2.
3.16 Quad-SPI memory interface (QUADSPI)
All devices embed a Quad-SPI memory interface, which is a specialized communication
interface targeting Single, Dual or Quad-SPI Flash memories. It supports both single and
double datarate operations.
It can operate in any of the following modes:
•Direct mode through registers
•External Flash status register polling mode
•Memory mapped mode.
Up to 256 Mbytes of external Flash memory can be mapped, and 8-, 16- and 32-bit data
accesses are supported as well as code execution.
The opcode and the frame format are fully programmable.
3.17 Analog-to-digital converters (ADCs)
The STM32H747xI/G devices embed three analog-to-digital converters, which resolution
can be configured to 16, 14, 12, 10 or 8 bits.
Each ADC shares up to 20 external channels, performing conversions in the Single-shot or
Scan mode. 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
The ADC can be served by the DMA controller, thus allowing to automatically transfer ADC
converted values to a destination location without any software action.
DS12930 Rev 125/242
46
Functional overviewSTM32H747xI/G
In addition, an analog watchdog feature can accurately monitor the converted voltage of
one, some or all selected channels. An interrupt is generated when the converted voltage is
outside the programmed thresholds.
To synchronize A/D conversion and timers, the ADCs could be triggered by any of TIM1,
TIM2, TIM3, TIM4, TIM6, TIM8, TIM15, HRTIM1 and LPTIM1 timer.
3.18 Temperature sensor
STM32H747xI/G devices embed a temperature sensor that generates a voltage (VTS) that
varies linearly with the temperature. This temperature sensor is internally connected to
ADC3_IN18. The conversion range is between 1.7 V and 3.6 V. It can measure the device
junction temperature ranging from − 40 up to +125 °C.
The temperature sensor have a good linearity, but it has to be calibrated to obtain a good
overall accuracy of the temperature measurement. As the temperature sensor offset varies
from chip to chip due to process variation, the uncalibrated internal temperature sensor is
suitable for applications that detect temperature changes only. To improve the accuracy of
the temperature sensor measurement, each device is individually factory-calibrated by ST.
The temperature sensor factory calibration data are stored by ST in the System memory
area, which is accessible in Read-only mode.
3.19 V
The V
operation
BAT
power domain contains the RTC, the backup registers and the backup SRAM.
BAT
To optimize battery duration, this power domain is supplied by VDD when available or by the
voltage applied on VBAT pin (when V
when the PDR detects that V
dropped below the PDR level.
DD
supply is not present). V
DD
The voltage on the VBAT pin could be provided by an external battery, a supercapacitor or
directly by V
V
operation is activated when VDD is not present.
BAT
The V
BAT
, in which case, the V
DD
mode is not functional.
BAT
pin supplies the RTC, the backup registers and the backup SRAM.
Note:When the microcontroller is supplied from V
do not exit it from V
operation.
BAT
When PDR_ON pin is connected to VSS (Internal Reset OFF), the V
more available and V
pin should be connected to VDD.
BAT
power is switched
BAT
, external interrupts and RTC alarm/events
BAT
functionality is no
BAT
26/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.20 Digital-to-analog converters (DAC)
The two 12-bit buffered DAC channels can be used to convert two digital signals into two
analog voltage signal outputs.
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 including DMA underrun error detection
•external triggers for conversion
•input voltage reference V
The DAC channels are triggered through the timer update outputs that are also connected
to different DMA streams.
or internal VREFBUF reference.
REF+
3.21 Ultra-low-power comparators (COMP)
STM32H747xI/G devices embed two rail-to-rail comparators (COMP1 and COMP2). They
feature programmable reference voltage (internal or external), hysteresis and speed (low
speed for low-power) as well as selectable output polarity.
The reference voltage can be one of the following:
•An external I/O
•A DAC output channel
•An internal reference voltage or submultiple (1/4, 1/2, 3/4).
All comparators can wake up from Stop mode, generate interrupts and breaks for the timers,
and be combined into a window comparator.
3.22 Operational amplifiers (OPAMP)
STM32H747xI/G devices embed two rail-to-rail operational amplifiers (OPAMP1 and
OPAMP2) with external or internal follower routing and PGA capability.
The operational amplifier main features are:
•PGA with a non-inverting gain ranging of 2, 4, 8 or 16 or inverting gain ranging of -1, -3,
-7 or -15
•One positive input connected to DAC
•Output connected to internal ADC
•Low input bias current down to 1 nA
•Low input offset voltage down to 1.5 mV
•Gain bandwidth up to 7.3 MHz
DS12930 Rev 127/242
46
Functional overviewSTM32H747xI/G
The devices embeds two operational amplifiers (OPAMP1 and OPAMP2) with two inputs
and one output each. These three I/Os can be connected to the external pins, thus enabling
any type of external interconnections. The operational amplifiers can be configured
internally as a follower, as an amplifier with a non-inverting gain ranging from 2 to 16 or with
inverting gain ranging from -1 to -15.
3.23 Digital filter for sigma-delta modulators (DFSDM)
The devices embed one DFSDM with 4 digital filters modules and 8 external input serial
channels (transceivers) or alternately 8 internal parallel inputs support.
The DFSDM peripheral is dedicated to interface the external modulators to
microcontroller and then to perform digital filtering of the received data streams (which
represent analog value on modulators inputs). DFSDM can also interface PDM (Pulse
Density Modulation) microphones and perform PDM to PCM conversion and filtering in
hardware. DFSDM features optional parallel data stream inputs from internal ADC
peripherals or microcontroller memory (through DMA/CPU transfers into DFSDM).
DFSDM transceivers support several serial interface formats (to support various
modulators). DFSDM digital filter modules perform digital processing according user
selected filter parameters with up to 24-bit final ADC resolution.
The DFSDM peripheral supports:
•8 multiplexed input digital serial channels:
–configurable SPI interface to connect various SD modulator(s)
–configurable Manchester coded 1 wire interface support
–PDM (Pulse Density Modulation) microphone input support
–maximum input clock frequency up to 20 MHz (10 MHz for Manchester coding)
–clock output for SD modulator(s): 0..20 MHz
•alternative inputs from 8 internal digital parallel channels (up to 16 bit input resolution):
–internal sources: ADC data or memory data streams (DMA)
•4 digital filter modules with adjustable digital signal processing:
–Sinc
–integrator: oversampling ratio (1..256)
•up to 24-bit output data resolution, signed output data format
•automatic data offset correction (offset stored in register by user)
•continuous or single conversion
•start-of-conversion triggered by:
–software trigger
–internal timers
–external events
–start-of-conversion synchronously with first digital filter module (DFSDM0)
•analog watchdog feature:
–low value and high value data threshold registers
–dedicated configurable Sincx digital filter (order = 1..3, oversampling ratio = 1..32)
–input from final output data or from selected input digital serial channels
–continuous monitoring independently from standard conversion
x
filter: filter order/type (1..5), oversampling ratio (up to 1..1024)
28/242DS12930 Rev 1
STM32H747xI/GFunctional overview
•short circuit detector to detect saturated analog input values (bottom and top range):
–up to 8-bit counter to detect 1..256 consecutive 0’s or 1’s on serial data stream
–monitoring continuously each input serial channel
•break signal generation on analog watchdog event or on short circuit detector event
•extremes detector:
–storage of minimum and maximum values of final conversion data
–refreshed by software
•DMA capability to read the final conversion data
•interrupts: end of conversion, overrun, analog watchdog, short circuit, input serial
channel clock absence
•“regular” or “injected” conversions:
–“regular” conversions can be requested at any time or even in Continuous mode
without having any impact on the timing of “injected” conversions
–“injected” conversions for precise timing and with high conversion priority
DFSDM featuresDFSDM1
Number of filters4
Number of input
transceivers/channels
Table 3. DFSDM implementation
8
Internal ADC parallel input X
Number of external triggers16
Regular channel information in
identification register
3.24 Digital camera interface (DCMI)
The devices embed a camera interface that can connect with camera modules and CMOS
sensors through an 8-bit to 14-bit parallel interface, to receive video data. The camera
interface can achieve a data transfer rate up to 140
features:
•Programmable polarity for the input pixel clock and synchronization signals
•Parallel data communication can be 8-, 10-, 12- or 14-bit
•Supports 8-bit progressive video monochrome or raw bayer format, YCbCr 4:2:2
progressive video, RGB 565 progressive video or compressed data (like JPEG)
•Supports Continuous mode or Snapshot (a single frame) mode
•Capability to automatically crop the image
X
Mbyte/s using a 80 MHz pixel clock. It
DS12930 Rev 129/242
46
Functional overviewSTM32H747xI/G
3.25 LCD-TFT controller
The LCD-TFT display controller provides a 24-bit parallel digital RGB (Red, Green, Blue)
and delivers all signals to interface directly to a broad range of LCD and TFT panels up to
XGA (1024x768) resolution with the following features:
•2 display layers with dedicated FIFO (64x64-bit)
•Color Look-Up table (CLUT) up to 256 colors (256x24-bit) per layer
•Up to 8 input color formats selectable per layer
•Flexible blending between two layers using alpha value (per pixel or constant)
•Flexible programmable parameters for each layer
•Color keying (transparency color)
•Up to 4 programmable interrupt events
•AXI master interface with burst of 16 words
3.26 DSI Host (DSI)
The DSI Host is a dedicated peripheral for interfacing with MIPI® DSI compliant displays. It
includes a dedicated video interface internally connected to the LTDC, a generic APB
interface that can be used to transmit information to the display, and Video mode pattern
generator:
•LTDC interface
It is used to transmit information in Video mode, in which the transfers from the host
processor to the peripheral take the form of a real-time pixel stream (DPI).
This interface can also be used to transmit information in full bandwidth in the Adapted
Command mode (DBI).
•APB slave interface
The APB slave interface allows transmitting generic information in Command mode
though a proprietary register interface. It can operate concurrently with the LTDC
interface either in Video or Adapted Command mode.
•The Video mode pattern generator allows transmitting horizontal/vertical color bar and
D-PHY BER testing pattern without any kind of stimuli.
The DSI Host main features are the following:
•Compliance with MIPI® Alliance standards
•Interface with MIPI
•Support for all commands defined in the MIPI
–Transmission of all Command mode packets through the APB interface
–Transmission of commands in low-power and high-speed during Video mode
•Support for up to two D-PHY data lanes
•Bidirectional communication and Escape mode support through data lane 0
•Support for non-continuous clock in D-PHY clock lane for additional power saving
•Support for Ultra Low-Power mode with PLL disabled
•ECC and Checksum capabilities
•Support for End of Transmission Packet (EoTp)
•Fault recovery schemes
30/242DS12930 Rev 1
®
D-PHY
®
Alliance specification for DCS:
STM32H747xI/GFunctional overview
•3D transmission support
•Configurable selection of system interfaces
–AMBA APB for control and optional support for Generic and DCS commands
–Video mode interface through LTDC
–Adapted Command mode interface through LTDC
–Independently programmable Virtual Channel ID in Video, Adapted Command or
APB Slave mode
•Video mode interfaces features
–LTDC interface color coding mappings into 24-bit interface:
16-bit RGB, configurations 1, 2, and 3
18-bit RGB, configurations 1 and 2
24-bit RGB
–Programmable polarity of all LTDC interface signals
–Extended resolutions beyond the DPI standard maximum resolution of 800x480
pixels; the maximum resolution is limited by the available DSI physical link
bandwidth:
Number of lanes: 2
Maximum speed per lane: 1 Gbps
•Adapted interface features
–Support for sending large amounts of data through the memory_write_start (WMS)
and memory_write_continue (WMC) DCS commands
–LTDC interface color coding mappings into 24-bit interface:
16-bit RGB, configurations 1, 2, and 3
18-bit RGB, configurations 1 and 2
24-bit RGB
•Video mode pattern generator
–Vertical and horizontal color bar generation without LTDC stimuli
–BER pattern without LTDC stimuli
3.27 JPEG Codec (JPEG)
The JPEG Codec can encode and decode a JPEG stream as defined in the ISO/IEC 109181 specification. It provides an fast and simple hardware compressor and decompressor of
JPEG images with full management of JPEG headers.
DS12930 Rev 131/242
46
Functional overviewSTM32H747xI/G
The JPEG codec main features are as follows:
•8-bit/channel pixel depths
•Single clock per pixel encoding and decoding
•Support for JPEG header generation and parsing
•Up to four programmable quantization tables
•Fully programmable Huffman tables (two AC and two DC)
•Fully programmable minimum coded unit (MCU)
•Encode/decode support (non simultaneous)
•Single clock Huffman coding and decoding
•Two-channel interface: Pixel/Compress In, Pixel/Compressed Out
•Support for single greyscale component
•Ability to enable/disable header processing
•Fully synchronous design
•Configuration for High-speed decode mode
3.28 Random number generator (RNG)
All devices embed an RNG that delivers 32-bit random numbers generated by an integrated
analog circuit.
3.29 Timers and watchdogs
The devices include one high-resolution timer, two advanced-control timers, ten generalpurpose timers, two basic timers, five low-power timers, two watchdogs and a SysTick timer.
All timer counters can be frozen in Debug mode.
Tabl e 4 compares the features of the advanced-control, general-purpose and basic timers.
Timer
type
High-
resolution
timer
Advanced
-control
Timer
HRTIM116-bitUp
TIM1,
TIM8
Counter
resolution
16-bit
Table 4. Timer feature comparison
Counter
type
Up,
Down,
Up/down
Prescaler
factor
/1 /2 /4
(x2 x4 x8
x16 x32,
with DLL)
Any
integer
between 1
and
65536
DMA
request
generation
Yes10Yes480480
Yes4Yes120240
Capture/
compare
channels
Comple-
mentary
output
Max
interface
clock
(MHz)
Max
timer
clock
(MHz)
(1)
32/242DS12930 Rev 1
STM32H747xI/GFunctional overview
Table 4. Timer feature comparison (continued)
Timer
type
General
purpose
Timer
TIM2,
TIM5
TIM3,
TIM4
Counter
resolution
32-bit
16-bit
Counter
type
Up,
Down,
Up/down
Up,
Down,
Up/down
TIM1216-bitUp
TIM13,
TIM14
16-bitUp
Prescaler
factor
Any
integer
between 1
and
65536
Any
integer
between 1
and
65536
Any
integer
between 1
and
65536
Any
integer
between 1
and
65536
DMA
request
generation
Capture/
compare
channels
Comple-
mentary
output
Max
interface
clock
(MHz)
Yes4No120240
Yes4No120240
No2No120240
No1No120240
Max
timer
clock
(MHz)
(1)
Any
integer
TIM1516-bitUp
between 1
Yes21120240
and
65536
Any
TIM16,
TIM17
16-bitUp
integer
between 1
and
Yes11120240
65536
Any
integer
between 1
and
Yes0No120240
Basic
TIM6,
TIM7
16-bitUp
65536
LPTIM1,
Low-
power
timer
LPTIM2,
LPTIM3,
LPTIM4,
16-bitUp
1, 2, 4, 8,
16, 32, 64,
128
No0No120240
LPTIM5
1. The maximum timer clock is up to 480 MHz depending on TIMPRE bit in the RCC_CFGR register and D2PRE1/2 bits in
RCC_D2CFGR register.
DS12930 Rev 133/242
46
Functional overviewSTM32H747xI/G
3.29.1 High-resolution timer (HRTIM1)
The high-resolution timer (HRTIM1) allows generating digital signals with high-accuracy
timings, such as PWM or phase-shifted pulses.
It consists of 6 timers, 1 master and 5 slaves, totaling 10 high-resolution outputs, which can
be coupled by pairs for deadtime insertion. It also features 5 fault inputs for protection
purposes and 10 inputs to handle external events such as current limitation, zero voltage or
zero current switching.
The HRTIM1 timer is made of a digital kernel clocked at 480 MHz The high-resolution is
available on the 10 outputs in all operating modes: variable duty cycle, variable frequency,
and constant ON time.
The slave timers can be combined to control multiswitch complex converters or operate
independently to manage multiple independent converters.
The waveforms are defined by a combination of user-defined timings and external events
such as analog or digital feedbacks signals.
HRTIM1 timer includes options for blanking and filtering out spurious events or faults. It also
offers specific modes and features to offload the CPU: DMA requests, Burst mode
controller, Push-pull and Resonant mode.
It supports many topologies including LLC, Full bridge phase shifted, buck or boost
converters, either in voltage or current mode, as well as lighting application (fluorescent or
LED). It can also be used as a general purpose timer, for instance to achieve high-resolution
PWM-emulated DAC.
34/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.29.2 Advanced-control timers (TIM1, TIM8)
The advanced-control timers (TIM1, TIM8) can be seen as three-phase PWM generators
multiplexed on 6 channels. They have complementary PWM outputs with programmable
inserted dead times. They can also be considered as complete general-purpose timers.
Their 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 standard 16-bit timers, they have the same features as the general-purpose
TIMx timers. If configured as 16-bit PWM generators, they have full modulation capability (0100%).
The advanced-control timer can work together with the TIMx timers via the Timer Link
feature for synchronization or event chaining.
TIM1 and TIM8 support independent DMA request generation.
3.29.3 General-purpose timers (TIMx)
There are ten synchronizable general-purpose timers embedded in the STM32H747xI/G
devices (see
•TIM2, TIM3, TIM4, TIM5
The devices include 4 full-featured general-purpose timers: TIM2, TIM3, TIM4 and
TIM5. TIM2 and TIM5 are based on a 32-bit auto-reload up/downcounter and a 16-bit
prescaler while TIM3 and TIM4 are based on a 16-bit auto-reload up/downcounter and
a 16-bit prescaler. All timers feature 4 independent channels for input capture/output
compare, PWM or One-pulse mode output. This gives up to 16 input capture/output
compare/PWMs on the largest packages.
TIM2, TIM3, TIM4 and TIM5 general-purpose timers can work together, or with the
other general-purpose timers and the advanced-control timers TIM1 and TIM8 via the
Timer Link feature for synchronization or event chaining.
Any of these general-purpose timers can be used to generate PWM outputs.
TIM2, TIM3, TIM4, TIM5 all have independent DMA request generation. They are
capable of handling quadrature (incremental) encoder signals and the digital outputs
from 1 to 4 hall-effect sensors.
•TIM12, TIM13, TIM14, TIM15, TIM16, TIM17
These timers are based on a 16-bit auto-reload upcounter and a 16-bit prescaler.
TIM13, TIM14, TIM16 and TIM17 feature one independent channel, whereas TIM12
and TIM15 have 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 or used as simple timebases.
Table 4 for differences).
DS12930 Rev 135/242
46
Functional overviewSTM32H747xI/G
3.29.4 Basic timers TIM6 and TIM7
These timers are mainly used for DAC trigger and waveform generation. They can also be
used as a generic 16-bit time base.
TIM6 and TIM7 support independent DMA request generation.
The low-power timers have an independent clock and is running also in Stop mode if it is
clocked by LSE, LSI or an external clock. It is able to wakeup the devices from Stop mode.
This low-power timer supports the following features:
•16-bit up counter with 16-bit autoreload register
•16-bit compare register
•Configurable output: pulse, PWM
•Continuous / One-shot mode
•Selectable software / hardware input trigger
•Selectable clock source:
•Internal clock source: LSE, LSI, HSI or APB clock
•External clock source over LPTIM input (working even with no internal clock source
running, used by the Pulse Counter Application)
•Programmable digital glitch filter
•Encoder mode
3.29.6 Independent watchdogs
There are two independent watchdogs, one per domain. Each independent watchdog is
based on a 12-bit downcounter and 8-bit prescaler. It is clocked from an independent 32
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.
3.29.7 Window watchdogs
There are two window watchdogs, one per domain. Each window watchdog is based on a 7bit downcounter that can be set as free-running. It can be used as a watchdog to reset the
device or each respective domain (configurable in the RCC register), when a problem
occurs. It is clocked from the main clock. It has an early warning interrupt capability and the
counter can be frozen in Debug mode.
3.29.8 SysTick timer
The devices feature two SysTick timers, one per CPU. These timers are dedicated to realtime operating systems, but could also be used as a standard downcounter. It features:
•A 24-bit downcounter
•Autoreload capability
•Maskable system interrupt generation when the counter reaches 0
•Programmable clock source.
36/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.30 Real-time clock (RTC), backup SRAM and backup registers
The RTC is an independent BCD timer/counter. It supports the following features:
•Calendar with subsecond, seconds, minutes, hours (12 or 24 format), week day, date,
month, year, in BCD (binary-coded decimal) format.
•Automatic correction for 28, 29 (leap year), 30, and 31 days of the month.
•Two programmable alarms.
•On-the-fly correction from 1 to 32767 RTC clock pulses. This can be used to
synchronize it with a master clock.
•Reference clock detection: a more precise second source clock (50 or 60 Hz) can be
used to enhance the calendar precision.
•Digital calibration circuit with 0.95 ppm resolution, to compensate for quartz crystal
inaccuracy.
•Three anti-tamper detection pins with programmable filter.
•Timestamp feature which can be used to save the calendar content. This function can
be triggered by an event on the timestamp pin, or by a tamper event, or by a switch to
V
mode.
BAT
•17-bit auto-reload wakeup timer (WUT) for periodic events with programmable
resolution and period.
The RTC and the 32 backup registers are supplied through a switch that takes power either
from the V
supply when present or from the V
DD
BAT
pin.
The backup registers are 32-bit registers used to store 128 bytes of user application data
when V
DD power is not present. They are not reset by a system or power reset, or when the
device wakes up from Standby mode.
The RTC clock sources can be:
•A 32.768 kHz external crystal (LSE)
•An external resonator or oscillator (LSE)
•The internal low-power RC oscillator (LSI, with typical frequency of 32 kHz)
•The high-speed external clock (HSE) divided by 32.
The RTC is functional in V
LSE. When clocked by the LSI, the RTC is not functional in V
mode and in all low-power modes when it is clocked by the
BAT
mode, but is functional in
BAT
all low-power modes.
All RTC events (Alarm, Wakeup Timer, Timestamp or Tamper) can generate an interrupt and
wakeup the device from the low-power modes.
DS12930 Rev 137/242
46
Functional overviewSTM32H747xI/G
3.31 Inter-integrated circuit interface (I2C)
STM32H747xI/G devices embed four I2C interfaces.
The I2C bus interface handles communications between the microcontroller and the serial
2
I
C bus. It controls all I2C bus-specific sequencing, protocol, arbitration and timing.
The I2C peripheral supports:
•I2C-bus specification and user manual rev. 5 compatibility:
–Slave and Master modes, multimaster capability
–Standard-mode (Sm), with a bitrate up to 100 kbit/s
–Fast-mode (Fm), with a bitrate up to 400 kbit/s
–Fast-mode Plus (Fm+), with a bitrate up to 1 Mbit/s and 20 mA output drive I/Os
–7-bit and 10-bit addressing mode, multiple 7-bit slave addresses
–Programmable setup and hold times
–Optional clock stretching
•System Management Bus (SMBus) specification rev 2.0 compatibility:
–Hardware PEC (Packet Error Checking) generation and verification with ACK
control
–Address resolution protocol (ARP) support
–SMBus alert
•Power System Management Protocol (PMBus
•Independent clock: a choice of independent clock sources allowing the I2C
communication speed to be independent from the PCLK reprogramming.
STM32H747xI/G devices have four embedded universal synchronous receiver transmitters
(USART1, USART2, USART3 and USART6) and four universal asynchronous receiver
transmitters (UART4, UART5, UART7 and UART8). Refer to
USARTx and UARTx features.
These interfaces provide asynchronous communication, IrDA SIR ENDEC support,
multiprocessor communication mode, single-wire Half-duplex communication mode and
have LIN Master/Slave capability. They provide hardware management of the CTS and RTS
signals, and RS485 Driver Enable. They are able to communicate at speeds of up to
12.5
Mbit/s.
USART1, USART2, USART3 and USART6 also provide Smartcard mode (ISO 7816
compliant) and SPI-like communication capability.
The USARTs embed a Transmit FIFO (TXFIFO) and a Receive FIFO (RXFIFO). FIFO mode
is enabled by software and is disabled by default.
38/242DS12930 Rev 1
Table 5 for a summary of
STM32H747xI/GFunctional overview
All USART have a clock domain independent from the CPU clock, allowing the USARTx to
wake up the MCU from Stop mode.The wakeup from Stop mode is programmable and can
be done on:
•Start bit detection
•Any received data frame
•A specific programmed data frame
•Specific TXFIFO/RXFIFO status when FIFO mode is enabled.
All USART interfaces can be served by the DMA controller.
USART modes/features
Hardware flow control for modemXX
Continuous communication using DMAXX
Multiprocessor communicationXX
Synchronous mode (Master/Slave)X-
Smartcard modeX-
Single-wire Half-duplex communicationXX
Table 5. USART features
(1)
USART1/2/3/6UART4/5/7/8
IrDA SIR ENDEC blockXX
LIN modeXX
Dual clock domain and wakeup from low power modeXX
The device embeds one Low-Power UART (LPUART1). The LPUART supports
asynchronous serial communication with minimum power consumption. It supports half
duplex single wire communication and modem operations (CTS/RTS). It allows
multiprocessor communication.
The LPUARTs embed a Transmit FIFO (TXFIFO) and a Receive FIFO (RXFIFO). FIFO
mode is enabled by software and is disabled by default.
DS12930 Rev 139/242
46
Functional overviewSTM32H747xI/G
The LPUART has a clock domain independent from the CPU clock, and can wakeup the
system from Stop mode. The wakeup from Stop mode are programmable and can be done
on:
•Start bit detection
•Any received data frame
•A specific programmed data frame
•Specific TXFIFO/RXFIFO status when FIFO mode is enabled.
Only a 32.768 kHz clock (LSE) is needed to allow LPUART communication up to
9600
baud. Therefore, even in Stop mode, the LPUART can wait for an incoming frame
while having an extremely low energy consumption. Higher speed clock can be used to
reach higher baudrates.
LPUART interface can be served by the DMA controller.
3.34 Serial peripheral interface (SPI)/inter- integrated sound
interfaces (I2S)
The devices feature up to six SPIs (SPI2S1, SPI2S2, SPI2S3, SPI4, SPI5 and SPI6) that
allow communicating up to 150
duplex and Simplex modes. The 3-bit prescaler gives 8 master mode frequencies and the
frame is configurable from 4 to 16 bits. All SPI interfaces support NSS pulse mode, TI mode,
Hardware CRC calculation and 8x 8-bit embedded Rx and Tx FIFOs with DMA capability.
Mbits/s in Master and Slave modes, in Half-duplex, Full-
Three standard I2S interfaces (multiplexed with SPI1, SPI2 and SPI3) are available. They
can be operated in Master or Slave mode, in Simplex communication modes, and can be
configured to operate with a 16-/32-bit resolution as an input or output channel. Audio
sampling frequencies from 8
2
I
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. All I
bit embedded Rx and Tx FIFOs with DMA capability.
kHz up to 192 kHz are supported. When either or both of the
3.35 Serial audio interfaces (SAI)
The devices embed 4 SAIs (SAI1, SAI2, SAI3 and SAI4) that allow designing many stereo
or mono audio protocols such as I2S, LSB or MSB-justified, PCM/DSP, TDM or AC’97. An
SPDIF output is available when the audio block is configured as a transmitter. To bring this
level of flexibility and reconfigurability, the SAI contains two independent audio sub-blocks.
Each block has it own clock generator and I/O line controller.
Audio sampling frequencies up to 192 kHz are supported.
In addition, up to 8 microphones can be supported thanks to an embedded PDM interface.
The SAI can work in master or slave configuration. The audio sub-blocks can be either
receiver or transmitter and can work synchronously or asynchronously (with respect to the
other one). The SAI can be connected with other SAIs to work synchronously.
2
S interfaces support 16x 8-
40/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.36 SPDIFRX Receiver Interface (SPDIFRX)
The SPDIFRX peripheral is designed to receive an S/PDIF flow compliant with IEC-60958
and IEC-61937. These standards support simple stereo streams up to high sample rate,
and compressed multi-channel surround sound, such as those defined by Dolby or DTS (up
to 5.1).
The main SPDIFRX features are the following:
•Up to 4 inputs available
•Automatic symbol rate detection
•Maximum symbol rate: 12.288 MHz
•Stereo stream from 32 to 192 kHz supported
•Supports Audio IEC-60958 and IEC-61937, consumer applications
•Parity bit management
•Communication using DMA for audio samples
•Communication using DMA for control and user channel information
•Interrupt capabilities
The SPDIFRX receiver provides all the necessary features to detect the symbol rate, and
decode the incoming data stream. The user can select the wanted SPDIF input, and when a
valid signal will be available, the SPDIFRX will re-sample the incoming signal, decode the
Manchester stream, recognize frames, sub-frames and blocks elements. It delivers to the
CPU decoded data, and associated status flags.
The SPDIFRX also offers a signal named spdif_frame_sync, which toggles at the S/PDIF
sub-frame rate that will be used to compute the exact sample rate for clock drift algorithms.
3.37 Single wire protocol master interface (SWPMI)
The Single wire protocol master interface (SWPMI) is the master interface corresponding to
the Contactless Frontend (CLF) defined in the ETSI TS 102 613 technical specification. The
main features are:
•Full-duplex communication mode
•automatic SWP bus state management (active, suspend, resume)
•configurable bitrate up to 2 Mbit/s
•automatic SOF, EOF and CRC handling
SWPMI can be served by the DMA controller.
DS12930 Rev 141/242
46
Functional overviewSTM32H747xI/G
3.38 Management Data Input/Output (MDIO) slaves
The devices embed an MDIO slave interface it includes the following features:
•32 MDIO Registers addresses, each of which is managed using separate input and
output data registers:
–32 x 16-bit firmware read/write, MDIO read-only output data registers
–32 x 16-bit firmware read-only, MDIO write-only input data registers
•Configurable slave (port) address
•Independently maskable interrupts/events:
–MDIO Register write
–MDIO Register read
–MDIO protocol error
•Able to operate in and wake up from Stop mode
3.39 SD/SDIO/MMC card host interfaces (SDMMC)
Two SDMMC host interfaces are available. They support MultiMediaCard System
Specification Version 4.51 in three different databus modes: 1 bit (default), 4 bits and 8 bits.
Both interfaces support the SD memory card specifications version 4.1. and the SDIO card
specification version 4.0. in two different databus modes: 1 bit (default) and 4 bits.
Each SDMMC host interface supports only one SD/SDIO/MMC card at any one time and a
stack of MMC Version 4.51 or previous.
The SDMMC host interface embeds a dedicated DMA controller allowing high-speed
transfers between the interface and the SRAM.
3.40 Controller area network (FDCAN1, FDCAN2)
The controller area network (CAN) subsystem consists of two CAN modules, a shared
message RAM memory and a clock calibration unit.
Both CAN modules (FDCAN1 and FDCAN2) are compliant with ISO 11898-1 (CAN protocol
specification version 2.0 part A, B) and CAN FD protocol specification version 1.0.
FDCAN1 supports time triggered CAN (TT-FDCAN) specified in ISO 11898-4, including
event synchronized time-triggered communication, global system time, and clock drift
compensation. The FDCAN1 contains additional registers, specific to the time triggered
feature. The CAN FD option can be used together with event-triggered and time-triggered
CAN communication.
A 10-Kbyte message RAM memory implements filters, receive FIFOs, receive buffers,
transmit event FIFOs, transmit buffers (and triggers for TT-FDCAN). This message RAM is
shared between the two FDCAN1 and FDCAN2 modules.
The common clock calibration unit is optional. It can be used to generate a calibrated clock
for both FDCAN1 and FDCAN2 from the HSI internal RC oscillator and the PLL, by
evaluating CAN messages received by the FDCAN1.
42/242DS12930 Rev 1
STM32H747xI/GFunctional overview
3.41 Universal serial bus on-the-go high-speed (OTG_HS)
The devices embed two USB OTG high-speed (up to 480 Mbit/s) device/host/OTG
peripheral. OTG-HS1 supports both full-speed and high-speed operations, while OTG-HS2
supports only full-speed operations. They both integrate the transceivers for full-speed
operation (12
features a UTMI low-pin interface (ULPI) for high-speed operation (480
the USB OTG-HS1 in HS mode, an external PHY device connected to the ULPI is required.
The USB OTG HS peripherals are compliant with the USB 2.0 specification and with the
OTG 2.0 specification. They have software-configurable endpoint setting and supports
suspend/resume. The USB OTG controllers require a dedicated 48
generated by a PLL connected to the HSE oscillator.
The main features are:
•Combined Rx and Tx FIFO size of 4 Kbytes with dynamic FIFO sizing
•Supports the session request protocol (SRP) and host negotiation protocol (HNP)
•9 bidirectional endpoints (including EP0)
•16 host channels with periodic OUT support
•Software configurable to OTG1.3 and OTG2.0 modes of operation
•USB 2.0 LPM (Link Power Management) support
•Battery Charging Specification Revision 1.2 support
•Internal FS OTG PHY support
•External HS or HS OTG operation supporting ULPI in SDR mode (OTG_HS1 only)
The OTG PHY is connected to the microcontroller ULPI port through 12 signals. It can
be clocked using the 60 MHz output.
•Internal USB DMA
•HNP/SNP/IP inside (no need for any external resistor)
•For OTG/Host modes, a power switch is needed in case bus-powered devices are
connected
Mbit/s) and are able to operate from the internal HSI48 oscillator. OTG-HS1
Mbit/s). When using
MHz clock that is
3.42 Ethernet MAC interface with dedicated DMA controller (ETH)
The devices provide an IEEE-802.3-2002-compliant media access controller (MAC) for
ethernet LAN communications through an industry-standard medium-independent interface
(MII) or a reduced medium-independent interface (RMII). The microcontroller requires an
external physical interface device (PHY) to connect to the physical LAN bus (twisted-pair,
fiber, etc.). The PHY is connected to the device MII port using 17 signals for MII or 9 signals
for RMII, and can be clocked using the 25
DS12930 Rev 143/242
MHz (MII) from the microcontroller.
46
Functional overviewSTM32H747xI/G
The devices include the following features:
•Supports 10 and 100 Mbit/s rates
•Dedicated DMA controller allowing high-speed transfers between the dedicated SRAM
and the descriptors
•Tagged MAC frame support (VLAN support)
•Half-duplex (CSMA/CD) and full-duplex operation
•MAC control sublayer (control frames) support
•32-bit CRC generation and removal
•Several address filtering modes for physical and multicast address (multicast and
group addresses)
•32-bit status code for each transmitted or received frame
•Internal FIFOs to buffer transmit and receive frames. The transmit FIFO and the
receive FIFO are both 2 Kbytes.
•Supports hardware PTP (precision time protocol) in accordance with IEEE 1588 2008
(PTP V2) with the time stamp comparator connected to the TIM2 input
•Triggers interrupt when system time becomes greater than target time
3.43 High-definition multimedia interface (HDMI)
- consumer electronics control (CEC)
The devices embed a HDMI-CEC controller that provides hardware support for the
Consumer Electronics Control (CEC) protocol (Supplement 1 to the HDMI standard).
This protocol provides high-level control functions between all audiovisual products in an
environment. It is specified to operate at low speeds with minimum processing and memory
overhead. It has a clock domain independent from the CPU clock, allowing the HDMI-CEC
controller to wakeup the MCU from Stop mode on data reception.
3.44 Debug infrastructure
The devices offer a comprehensive set of debug and trace features on both cores to support
software development and system integration.
•Breakpoint debugging
•Code execution tracing
•Software instrumentation
•JTAG debug port
•Serial-wire debug port
•Trigger input and output
•Serial-wire trace port
•Trace port
•Arm
®
CoreSight™ debug and trace components
The debug can be controlled via a JTAG/Serial-wire debug access port, using industry
standard debugging tools. The debug infrastructure allows debugging one core at a time, or
both cores in parallel.
The trace port performs data capture for logging and analysis.
44/242DS12930 Rev 1
STM32H747xI/GFunctional overview
A 4-Kbyte embedded trace FIFO (ETF) allows recording data and sending them to any com
port. In Trace mode, the trace is transferred by DMA to system RAM or to a high-speed
interface (such as SPI or USB). It can even be monitored by a software running on one of
the cores. Unlike hardware FIFO mode, this mode is invasive since it uses system
resources which are shared by the processors.
DS12930 Rev 145/242
46
Memory mappingSTM32H747xI/G
4 Memory mapping
Refer to the product line reference manual for details on the memory mapping as well as the
boundary addresses for all peripherals.
46/242DS12930 Rev 1
STM32H747xI/GPin descriptions
MSv43741V5
A
DNC
(1)
VDDLDOVCAPPB8VDDPB4PG15VDDPD4PD0PA15VDDLDOVSS
B
VBATPE4VDDPE0VSSPB5
PB3
VSSPD3PC12VDDVCAPPA12
C
PC14-
OSC32_IN
PE5VSSPB9PB7PB6PD6PC11VSS
PA13
PA10PA11
D
VDD
VSS
SMPS
VSSPE3PE2PE1BOOT0PD7PC10PA9PA8PC9PC8
E
VDD
SMPS
VLX
SMPS
VFB
SMPS
PF0PC13PE6PDR_ONPD2
PA14
PC7
VDD50
USB
VDD
VDD33
USB
F
PF3PF2PF4PF5PF1PF11PD5PD1PC6PG4VSSPG8PG5
G
VDDVSSPC0PC1PA6PF12PE10PE11PD8PG3PG2
DSI_
D1P
DSI_
D1N
H
PH1-
OSC_OUT
PH0-
OSC_IN
NRSTPA5PB1PF13PE7PB10PB13PD14VSSDSI
DSI_
CKP
DSI_
CKN
J
VSSAVREF+VDDAPA3PA7PF15PE8PE12PB12PD11PD15
DSI_
D0P
DSI_
D0N
K
PC2_CPC3_CPA2PA4PB0PF14PE9PE13PB11PD9PD13VDD
VCAP
DSI
L
PA0PA1VSSPC5VSSPG0VSSPE15VSSVDDLDOPD10PD12VSS
M
VSSVDDPC4PB2VDDPG1VDDPE14VCAPVDDPB14PB15VSS
PC15-
OSC32_OUT
13121110987654321
5 Pin descriptions
Figure 6. WLCSP156 ballout
1. The DNC ball must neither be connected to GND nor to VDD.
1. When this pin/ball was previously configured as an oscillator, the oscillator function is kept during and after a reset. This is
valid for all resets except for power-on reset.
2. Pxy_C and Pxy pins/balls are two separate pads (analog switch open). The analog switch is configured through a SYSCFG
register. Refer to the product reference manual for a detailed description of the switch configuration bits.
3. There is a direct path between Pxy_C and Pxy pins/balls, through an analog switch. Pxy alternate functions are available on
Pxy_C when the analog switch is closed. The analog switch is configured through a SYSCFG register. Refer to the product
reference manual for a detailed description of the switch configuration bits.