3.4 Modifying the Port Configuration
A software-based workaround to address the MISO issue involves modifying the SPI port properties. This must occur before the desired SPI communication. The concept is to set the Data Direction Register (DDR) to ‘input’ if there is no need to transfer data with the chip. This enables communication with the other client devices. If communication with the transceiver/receiver needs to be restarted, it is not mandatory to restore the DDR register. Only restore it if the host needs to acquire information from the Microchip device. In that case, change the DDR register before the actual communication.