background image

AURIX™ TC2xx Microcontroller Training
V1.0.0

SPI_CPU_1

SPI communication via QSPI

Please read the Important Notice and Warnings at the end of this document

Summary of Contents for SPI CPU 1

Page 1: ...AURIX TC2xx Microcontroller Training V1 0 0 SPI_CPU_1 SPI communication via QSPI Please read the Important Notice and Warnings at the end of this document...

Page 2: ...SPI2 is configured in master mode and used to send five bytes to QSPI3 configured in slave mode The received data is read by the CPU and compared against the transmitted data Port pin 13 3 to which LE...

Page 3: ...serial communication with external devices based on the standardized SPI bus signals clock data in data out and slave select The QSPI works in full duplex mode either as Master or Slave with up to 50...

Page 4: ...Hardware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC Step 4 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved...

Page 5: ...3 32 SCLKO P02 4 17 SLSI_A P15 2 31 SLSO_0 P02 5 18 MRST P15 4 33 MRST_A P02 6 19 MTSR_A P15 5 34 MTSR KIT_AURIX_TC297_TFT_BC Step Use the stencils as illustrated Connect following pins as described...

Page 6: ...ture The structure is filled with default values by the function IfxQspi_SpiSlave_initModuleConfig Afterwards the pins and the protocol dataWidth are modified due to the fact that the default data wid...

Page 7: ...hich are individually programmable In this example the function initQSPI2MasterChannel initializes the channel zero using an instance of the structure IfxQspi_SpiMaster_ChannelConfig Afterwards the sl...

Page 8: ...ion transferData triggers the data transfer between the SPI Master and SPI Slave Additionally LED D110 connected to port pin 13 3 is used to signal if the transmission was successful 8 2019 10 17 Copy...

Page 9: ...n the demo project and check if the LED D110 1 is on Data transmitted without errors The spiMasterTxBuffer and spiSlaveRxBuffer now should show the same transmitted and received data Remove a cable e...

Page 10: ...www infineon com aurix expert training AURIX Development Studio is available online https www infineon com aurixdevelopmentstudio Use the Import function to get access to more code examples For questi...

Page 11: ...y of the product for the intended application and the completeness of the product information given in this document with respect to such application For further information on the product technology...

Reviews: