Hi,
I need to use USART0 PI for both SPI and UART traffic. Of course not exactly the same time but once in a second I need to send some log data to UART and in turn it would need to be in SPI mode. There is a flash memory behind that SPI.
The problem is that whenever there is a SPI write to U0TXBUF register, the data will be echoed to UART as well even though USART PI is configured to SPI mode at that time. I've not checked but I'm afraid that UART data is also echoed to SPI line.
Any way it's not acceptable that SPI data is transferred to UART pins through that buffer. Have I done something wrong or is it impossible to use USART0 in turn for UART and SPI?