QSPI using Infineon Aurix Board for temperature sensing MAX6675

3 次查看(过去 30 天)
Hello,
I am using the MAX6675 for temperature sensing with the QSPI of an Infineon Aurix board. I created a simple example where a constant (uint16) is input to a QSPI controller transmit and receive block, and I take this as the output. I have ensured the connections for VCC, GND, Chip Select, MISO, and SCLK are correct. However, upon building, deploying, and starting the project (or using external mode), no errors are thrown, but the output consistently shows as 0.
Note: I am using module 0 in hardware mapping.
How can I correct this?

回答(1 个)

Abhinav Aravindan
Abhinav Aravindan 2024-8-13
Hi Dhruv
It appears that you are working with the QSPI Controller block using ‘SPI Transmit and Receive’ Transfer mode from the Infineon AURIX TC4x Support package in ‘External Mode’ and encountering an issue with the output always showing as 0. Here are a few troubleshooting steps you can try to resolve the problem:
  1. Verify that you are utilizing the supported hardware as mentioned in the documentation here: https://www.mathworks.com/help/ecoder/infineonaurix/ug/supported-hardware-and-required-software.html
  2. Ensure that the selected ‘SDO and SDI pins in ‘Hardware Mapping’ are connected in the board, to obtain the outputs provided at SDO port to be visible at SDI port in “Simulink.
  3. The ‘Data bits’ parameter must be between 9 to 16 when the datatype is set as ‘uint16’.
I hope this helps resolve your issue!
For more details, you can refer to the documentation for the “QSPI Controller block” of the “Infineon AURIX TC4x Support package” here:

产品


版本

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by