DS15136 · DatasheetArm® Cortex®-M33 32-bit MCU with FPU, at 144 MHz, 593 CoreMark®, up to 1 Mbyte flash memory, 256-Kbyte RAM, I3C
Download .pdfOpen in the full document

Cyclic redundancy check calculation unit (CRC)

Cyclic redundancy check calculation unit (CRC)

The cyclic redundancy check calculation unit (CRC) calculation unit is used to get a CRC code from 8‑, 16‑, or 32‑bit data word and a generator polynomial.

Among other applications, CRC‑based techniques are used to verify data transmission or storage integrity. In the scope of the functional safety standards, 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 link time and stored at a given memory location.

Extended-SPI interface (XSPI)

The XSPI supports most external serial memories such as serial PSRAMs, serial NAND, and serial NOR flash memories, HyperRAM™ and HyperFlash™ memories, with the following functional modes:

  • Indirect mode: All the operations are performed using the XSPI registers to preset commands, addresses, data, and transfer parameters.
  • Automatic status-polling mode: The external memory status register is periodically read, and an interrupt can be generated in case of flag setting. This feature is only available in regular‑command protocol.
  • Memory-mapped mode: The external memory is memory mapped and is seen by the system as if it were an internal memory, supporting both read and write operations.

The XSPI supports the following protocols with associated frame formats:

  • The regular-command frame format with the command, address, alternate byte, dummy cycles, and data phase
  • The HyperBus™ frame format

The XSPI main features are:

  • Functional modes: indirect, automatic status-polling, and memory-mapped
  • Read and write support in memory-mapped mode
  • External (P)SRAM memory support
  • Support for single, dual, quad, and octal communication
  • Dual-memory configuration, where eight bits can be sent/received simultaneously by accessing two quad memories in parallel
  • SDR (single-data rate) and DTR (double-transfer rate) support
  • Data strobe support
  • Fully programmable opcode
  • Fully programmable frame format
  • Support for wrapped-type access to memory in the read direction
  • HyperBus support
  • Integrated FIFO for reception and transmission
  • Asynchronous bus clock versus kernel clock support
  • 8-, 16-, and 32-bit data accesses allowed
  • DMA protocol support
  • DMA channel for indirect mode operations
  • Interrupt generation on FIFO threshold, timeout, operation complete, and access error
  • XSPI interface with transaction acceptance limited to one: The interface accepts the next transfer on the AHB bus only once the previous is completed on the memory side.
  • Dual chip select support (NCS1 and NCS2)
  • Extended external memory support: If two same-size external memories (extmem1 and extmem2) are connected to the same I/O port, contiguously in the memory map and driven by a single XSPI, this XSPI automatically switches CS to extmem1 or extmem2 according to the address on the interconnect side.
  • Possibility to disable the automatic prefetch

Delay block (DLYB)

The delay block (DLYB) is used to generate an output clock that is dephased from the input clock. The phase of the output clock must be programmed by the user application. The output clock is then used to clock the data received by another peripheral such as an XSPI interface. The delay is voltage- and temperature-dependent, which may require the application to reconfigure and recenter the output clock phase with the received data.

The delay block has the following features:
  • Input clock frequency ranging from 25 MHz to the maximum frequency supported by the communication interface
  • Up to 12 oversampling phases

Analog-to-digital converter (ADC)

The devices embed up to two analog-to-digital converters (ADC).
  • ADC1 and ADC2 are tightly coupled and can operate in dual mode (ADC1 is the master).
  • ADC3 is controlled independently.

Each ADC consists of one 12-bit successive approximation analog-to-digital converter. Each ADC has up to 14 multiplexed channels. A/D conversion of the various channels can be performed in single, continuous, scan, or discontinuous mode. The result of the ADC is stored in a left‑aligned or right‑aligned (default configuration) 32‑bit data register.

The ADCs are mapped on the AHB bus to allow fast data handling. The analog watchdog features allow the application to detect if the input voltage goes outside the user‑defined high or low thresholds.

A built-in hardware oversampler improves analog performance while off‑loading the related computational burden from the CPU. An efficient low‑power mode is implemented to allow very low consumption at low frequency.

The ADC main features are:

  • High-performance features:
    • Up to two ADCs which can operate in dual mode
      • ADC1 is connected to 12 external channels and two internal channels.
      • ADC2 is connected to 14 external channels.
      • ADC3 is connected to 14 external channels.
    • 12, 10, 8, or 6-bit configurable resolution
    • ADC conversion time independent from the AHB bus clock frequency
    • Faster conversion time by lowering resolution
    • AHB slave bus interface to allow fast data handling
    • Channel-wise programmable sampling time
    • Flexible sampling time control
    • Fixed latency for a trigger to start of sampling
    • Up to four injected channels (analog inputs assignment to regular or injected channels is fully configurable)
    • Data alignment with in-built data coherency
    • Data can be managed by DMA for regular channel conversions
    • Four dedicated data registers for the injected channels
  • Low-power features:
    • Speed adaptive low-power mode to reduce ADC consumption when operating at low frequency
    • Allows slow bus frequency application while keeping optimum ADC performance
    • Provides automatic control to avoid ADC overrun in low AHB bus clock frequency application (autodelayed mode)
  • Oversampler:
    • 32-bit data register
    • Oversampling ratio adjustable from 2 to 1024
    • Programmable data right and left shifts
  • Data preconditioning:
    • Gain compensation
    • Offset compensation
  • Analog input channels:
    • External analog inputs (per ADC): up to 14 GPIO pads
    • One channel for the internal reference voltage (VREFINT)
    • One channel for the internal temperature sensor (VSENSE)
  • Start-of-conversion can be initiated:
    • By software for both regular and injected conversions
    • By hardware triggers with configurable polarity (internal timer events or GPIO input events) for both regular and injected conversions
  • Conversion modes:
    • Each ADC can convert a single channel or can scan a sequence of channels
    • Single mode converts selected inputs once per trigger
    • Continuous mode converts selected inputs continuously
    • Discontinuous mode
  • Interrupt generation at ADC ready, the end of sampling, the end of conversion (regular or injected), end of sequence conversion (regular or injected), analog watchdog 1, 2, or 3, or overrun events
  • Three analog watchdogs per ADC
  • ADC input range: VSSA ≤ VIN ≤ VREF+
Table 4. ADC features
ADC modes/featuresADC1ADC2ADC3
Resolution12 bits
Maximum sampling-speed2 Msps
Hardware-offset calibrationX
Single-ended inputsX
Injected channel conversionX
Oversamplingup to x1024
Data register32 bits
DMA supportX
Offset compensationX
Gain compensationX
Number of analog watchdogs3

Analog temperature sensor

The STM32C59xxx embed an analog temperature sensor that generates a voltage VSENSE that varies linearly with temperature. The temperature sensor is internally connected to the ADC input channel that is used to convert the sensor output voltage into a digital value.

The sensor provides good linearity but it must be calibrated to obtain a good accuracy of the temperature measurement. As the offset of the temperature sensor 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 STMicroelectronics. The temperature sensor factory calibration data are stored by STMicroelectronics in the system memory area, accessible in read‑only mode.

Internal voltage reference (VREFINT)

The VREFINT provides a stable (bandgap) voltage output for the ADC and the comparator. It is internally connected to ADC input channel.

The precise voltage of VREFINT is individually measured for each part by STMicroelectronics during production test and stored in the system memory area. It is accessible in read‑only mode.

Digital to analog converter (DAC)

The DAC module is a 12‑bit, voltage output digital‑to‑analog converter. The DAC can be configured in 8‑ or 12‑bit mode and can be used in conjunction with the DMA controller. In 12‑bit mode, the data may be left‑aligned or right‑aligned.

An input reference pin, VREF+ (shared with others analog peripherals) is available for better resolution.

The DAC_OUTx pin can be used as general-purpose input/output (GPIO) when the DAC output is disconnected from the output pad and connected to the on chip peripheral. The DAC output buffer can be optionally enabled to allow a high drive output current. An individual calibration can be applied DAC output channel. The DAC output channels support a low-power mode, the sample and hold mode.

The DAC main features are::
  • One DAC interface, two output channels
  • Left or right data alignment in 12-bit mode
  • Synchronized update capability
  • Noise-wave and triangular-wave generation
  • DMA capability for each channel including DMA underrun error detection
  • Double-data DMA capability to reduce the bus activity
  • External triggers for conversion
  • DAC output-channel buffered/unbuffered modes
  • Buffer offset calibration
  • DAC output can be disconnected from the DAC_OUTx output pin
  • DAC output connection to on chip peripherals
  • Sample and hold mode for low-power operation in Stop mode
  • Voltage reference input from VREF+ pin