A Novel Approach to Optimal Implementation of UART-SPI Interface in SOC