- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I'm using TC397 to control an external DAC via SPI. I don't need the MISO signal, because the DAC is not sending anything.
/* Select the port pins for communication */
const IfxQspi_SpiMaster_Pins qspi0MasterPins = {
&IfxQspi0_SCLK_P22_8_OUT, IfxPort_OutputMode_pushPull, // SCLK Pin
&IfxQspi0_MTSR_P22_10_OUT, IfxPort_OutputMode_pushPull,// MOSI Pin
NULL_PTR, IfxPort_OutputMode_none, //MISO pin not defined. Is this correct?
IfxPort_PadDriver_cmosAutomotiveSpeed3 // Pad driver mode
};
spiMasterConfig.pins = &qspi0MasterPins; // Assign the Master's port pins
Is this "NULL_PTR, IfxPort_OutputMode_none" the correct way to do this?
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you - I was trying to find out how to define the MISO pin in the IfxQspi_SpiMaster_Pins struct if the pin is not needed. I guess NULL_PTR is the answer, I saw it used in other peripheral examples. (like UART).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you refer to the below thread?
https://community.infineon.com/t5/AURIX/TC399-How-to-handle-unused-pins/td-p/395160
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the fast reply Nambi, unfortunately the link in the thread post you mention doesn't work , even though I have myicp access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Looks like the hyperlink was different from the text. I have updated the link in your response.
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you - I was trying to find out how to define the MISO pin in the IfxQspi_SpiMaster_Pins struct if the pin is not needed. I guess NULL_PTR is the answer, I saw it used in other peripheral examples. (like UART).