I'm working on a new project on the ATmega 328PB, where I need to use a second UART.
Using UART1 in addition to the SPI0 port, which also is the programming port, might cause problems,
as they use the same pins (MISO0 = RXD1 ; MOSI0 = TXD1).
Or am I wrong?
Changing the configuration registers on the fly to use either UART1 or SPI0 (e.g. spi display) should be possible.
But what about the hardware?
UART1 of the 328PB e.g. connected to a second ATmega's UART would cause problems for any components connected to SPI0.
Does anyone have an idea how to get this working?