Application: This document describes how to use GPIO to emulate SPI function.
BSP Version: M480 Series BSP CMSIS v3.03.000
Hardware: NuMaker-ETM-M487 v1.1
This example code uses GPIO to emulate SPI function that reading SPI Flash ID. GPIO port D0/D1/D2/D3 plays the role as CS/CLK/DO/DI of SPI respectively. Hence, please connect GPIO port D0/D1/D2/D3 to CS/CLK/DO/DI pins of SPI Flash while running this example code.