Would someone please help me understand how to use the remap register properly.
The 128A3U processor has 2 USARTs and 1 SPI port on Port C.
USART0 on lower nibble
USART1 & SPIC on upper nibble.
If I enable SPIC and disable USART1 then set the SPI pin swap bit in the remap register:
MOSI/SCK (PC5/PC7) is now MOSI/SCK (PC7/PC5)?
If I disable SPIC and enable USART1in SPI master mode then set the SPI pin swap bit in the remap register:
XCK/TXD (PC5/PC7) is now TXD/XCK (PC7/PC5)?
or does the SPI bit swap have no effect for this senario?
The reason I ask is because I have existing hardware that is wired for the standard SPI pinout and want to
use the USART in SPI mode instead. I was hoping that I could use the pin swap bit to eliminate having to
change the wiring on the XCK and TXD lines.
Why do they actually have the XCK and TXD reversed from SCK and MOSI in the first place? Backwards compatibility?
Would someone please help me understand?