I'm using an ATTINY20-XU that uses I2C to communicate with an RTC chip and I want to use SPI to program the microcontroller when it's on the board.
However, both the I2C and SPI peripherals share the same pins on the microcontroller. My question is if it's possible to use both protocols in this scenario. If so how?