Tool/software:
I want to operate using UART3 as SPI1.
Is it possible?
Can I refer to utils_mcspi.c as an example of SPI1?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
I want to operate using UART3 as SPI1.
Is it possible?
Can I refer to utils_mcspi.c as an example of SPI1?
Hi,
I want to operate using UART3 as SPI1.
Is it possible?
Yes, UART3 and SPI1 pins are multiplexed. You can choose either of functionality from pins.
Can I refer to utils_mcspi.c as an example of SPI1?
or any examples to reference?
Yes please refer to this existing example and see if it matches with your requirement.
Regards,
Brijesh
Hi
Looking at the utils_mcspi.c file, it looks like there is no SPI1 MUX part.
Is this an example created under the assumption that MUX is basically there?
Regards,
Kim
Hi Kim,
Pinmux registers are typically part of the control module, so it is not included in the driver file. I think PDK drivers has board module, which used to set default pinmux. If you cannot find it, you could refer to control module in the TRM, figure out the registers for the pins an then set the pinmux directly in the application, by writing mode value in the pinmux register.
Regards,
Brijesh