Download Print this page

Infineon SPI CPU 1 Manual

Spi communication via qspi, aurix tc2xx microcontroller training

Advertisement

Quick Links

SPI_CPU_1
SPI communication via QSPI
AURIX™ TC2xx Microcontroller Training
V1.0.0
Please read the Important Notice and Warnings at the end of this document

Advertisement

loading

Summary of Contents for Infineon SPI CPU 1

  • Page 1 SPI_CPU_1 SPI communication via QSPI AURIX™ TC2xx Microcontroller Training V1.0.0 Please read the Important Notice and Warnings at the end of this document...
  • Page 2: Scope Of Work

    The received data is read by the CPU and compared against the transmitted data. Port pin 13.3, to which LED D110 is connected, indicates the successful transfer. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 3 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 MBit/s. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 4: Hardware Setup

    Hardware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC-Step. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 5 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 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 6 The function IfxQspi_SpiSlave_initModule() is used to initialize the QSPI slave module. › Additionally, the buffers used by the QSPI slave are initialized. The above functions can be found in the iLLD header IfxQspi_SpiSlave.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 7 The function IfxQspi_SpiMaster_initChannel() is used to initialize the QSPI master channel. › Additionally, the buffers used by the QSPI master are initialized. The above functions can be found in the iLLD header IfxQspi_SpiMaster.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 8 The function 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. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 9 Remove a cable (e.g. SCLKx), perform a Reset and re-run the application to see that the data transmission is interrupted and the LED D110 (1) is off (Data transmission blocked) . 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 10 More code examples can be found on the GIT repository: › https://github.com/Infineon/AURIX_code_examples › For additional trainings, visit our webpage: › https://www.infineon.com/aurix-expert-training › For questions and support, use the AURIX™ Forum: › https://www.infineonforums.com/forums/13-Aurix-Forum 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 11 Infineon Technologies in in personal injury. customer’s applications. The data contained in this document is exclusively intended for technically trained staff.