Download Print this page

Debug Mode - ST STM32F413 Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F413:

Advertisement

RM0430
NBYTES counter. Refer to

In slave mode:
For instances supporting SMBus: the PEC transfer is managed with NBYTES counter.
Refer to
page
Note:
If DMA is used for transmission, the TXIE bit does not need to be enabled.
Reception using DMA
DMA (Direct Memory Access) can be enabled for reception by setting the RXDMAEN bit in
the FMPI2C_CR1 register. Data is loaded from the FMPI2C_RXDR register to an SRAM
area configured using the DMA peripheral (refer to ) whenever the RXNE bit is set. Only the
data (including PEC) are transferred with DMA.
In master mode, the initialization, the slave address, direction, number of bytes and
START bit are programmed by software. When all data are transferred using DMA, the
DMA must be initialized before setting the START bit. The end of transfer is managed
with the NBYTES counter.
In slave mode with NOSTRETCH=0, when all data are transferred using DMA, the
DMA must be initialized before the address match event, or in the ADDR interrupt
subroutine, before clearing the ADDR flag.
If SMBus is supported (see
managed with the NBYTES counter. Refer to
SMBus Master receiver on page
Note:
If DMA is used for reception, the RXIE bit does not need to be enabled.
26.4.16

Debug mode

When the microcontroller enters debug mode (core halted), the SMBus timeout either
continues to work normally or stops, depending on the DBG_I2Cx_ configuration bits in the
DBG module.
26.5
FMPI2C low-power modes
Mode
Sleep
Stop
Standby The FMPI2C peripheral is powered down and must be reinitialized after exiting Standby.
Fast-mode Plus Inter-integrated circuit (FMPI2C) interface
With NOSTRETCH=0, when all data are transferred using DMA, the DMA must be
initialized before the address match event, or in ADDR interrupt subroutine, before
clearing ADDR.
With NOSTRETCH=1, the DMA must be initialized before the address match
event.
SMBus Slave transmitter on page 792
795.
Table 136. low-power modes
No effect
FMPI2C interrupts cause the device to exit the Sleep mode.
The contents of FMPI2C registers are kept.
DocID029473 Rev 3
Master transmitter on page
and
Section 26.3: FMPI2C
SMBus Slave receiver on page 793
797.
Description
778.
SMBus Master transmitter on
implementation): the PEC transfer is
and
801/1284
819

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F413 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f423