DESIGN AND FPGA PROTOTYPING OF AN EMBEDDED SYSTEM FEATURING A PROGRAMMABLE I2C/SPI INTERFACE ON APB AMBA BUS