Main Content

QSPI Controller Peripheral Configuration

R2026b

Map QSPI controller peripherals in the Infineon AURIX model to peripheral registers in the MCU

Since R2024a

Description

Add-On Required: This feature requires the Embedded Coder Support Package for Infineon AURIX TC3x Microcontrollers add-on.

View and edit the map of peripherals in the Infineon® AURIX™ model to the hardware peripherals.

Using the Hardware Mapping tool, you can:

  • View and edit configuration parameters for QSPI controller block.

  • Configure the global parameters. To set the group peripheral, select peripheral in Browser > Peripherals > QSPI Controller . For more, see Map Tasks and Peripherals Using Hardware Mapping.

  • Check for any conflicts between the peripherals.

QSPI controller mapping browser

Open the QSPI Controller Peripheral Configuration

In the Simulink® toolstrip, go to Hardware tab and click Hardware Mapping.

Hardware Mapping icon

Parameters

expand all

Global parameters > Module # > Events

Select to enable the QSPI transmit FIFO interrupt.

Note

When you enable this parameter, the block handles data through interrupts. Therefore, you must use the QSPI Controller block with Transfer mode set to SPI Transmit or SPI Receive.

This parameter is read-only.

Select one of these operation modes for transmit FIFO buffer:

  • Single Move — Select this mode to generate an interrupt to refill the transmit buffer as soon as there is a free element.

  • Batch Move — Select this mode to generate an interrupt if the FIFO level of transmit data exceeds above Tx FIFO threshold value.

Dependencies

To enable this parameter, select the Enable Tx FIFO event parameter.

Specify FIFO level for the Tx FIFO event.

Dependencies

To enable this parameter, select the Enable Tx FIFO event parameter.

Select to enable the QSPI receive FIFO interrupt.

Note

When you enable this parameter, the block handles data through interrupts. Therefore, you must use the QSPI Controller block with Transfer mode set to SPI Transmit or SPI Receive.

This parameter is read-only.

Select one of these operation modes for the receive buffer:

  • Single Move — Select this mode to generate an interrupt to fetch the received element as soon as possible.

  • Batch Move — Select this mode to generate an interrupt if the filling level rises above Rx FIFO threshold value.

Dependencies

To enable this parameter, select the RxFifo event parameter.

Specify FIFO level for Rx FIFO event.

Dependencies

To enable this parameter, select the Enable Rx FIFO event parameter.

Select to enables the QSPI error interrupt.

Note

When you enable this parameter, the block handles data through interrupts. Therefore, you must use the QSPI Controller block with Transfer mode set to SPI Transmit or SPI Receive.

Global parameters > Module # > Pin selection

Select the pin number for the serial clock. The available pin numbers vary based on the module selected.

The QSPI Controller block outputs the clock signal, which all connected QSPI peripheral devices use as the primary timing source.

Select the pin number for the serial data to be transmitted to QSPI peripheral devices. The available pin numbers vary based on the module selected.

Select the pin number for the serial data to be received from QSPI peripheral devices. The available pin numbers vary based on the module selected.

Global parameters > Module # > Common pin properties

Select the configuration mode of QSPI input pin.

Select the configuration mode of QSPI output pin.

Select the pin speed for QSPI pins.

Select voltage level of the QSPI pins.

Module

Select the controller module for QSPI communication.

Tx mode

Select one of these transmission modes.

  • Continuous — Transmits all data elements in a single uninterrupted frame. The QSPI controller block keeps the chip select signal active for the entire duration of the data transfer.

  • Single-transfer — Transmits each data element as an individual transfer frame. The QSPI controller block deactivates the chip select signal after each data element is transferred.

Clock

Specifies the rate of data communication between the QSPI Controller and QSPI the Peripheral blocks.

Select the QSPI data heading in binary numbers.

  • LSB first — SDO pin outputs the least significant bit (LSB) first, then transmits the remaining bits from right to left.

  • MSB first — SDO pin transmits the most significant bit (MSB) first, then transmits the remaining bits from left to right.

Specify idle level of the serial clock signal generated by the QSPI Controller.

Specify clock edge for QSPI communication.

Select to enables the QSPI clock parity.

Specify the QSPI clock parity.

Dependencies

To enable Parity parameter, select the Enable parity parameter.

Enable to configure the QSPI Controller block to transmit data continuously.

Dependencies

To enable this parameter, set the Transfer mode parameter to SPI Transmit in the QSPI Controller block in the Simulink model.

Chip Select (CS)

Select the chip select output pin for the QSPI peripheral devices.

Select the chip select logic level to enable or disable the QSPI peripheral devices.

CS timing parameters in clock ticks

Specify the delay between the CS pin's active edge and the first shift clock edge.

Specify the delay between the data block’s shift clock period and the deactivating edge of the CS pin. If you set Tx mode to Continuous, this parameter can also represent delay between the data block’s shift clock period and the start of a new data block.

Specifies the delay inserted after the end of the last trailing phase of a QSPI data frame.

Version History

Introduced in R2024a