[N76E003] Use GPIO to Access SPI Flash

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

27 May 2020, 10:35

  • Application: This code uses GPIO as SPI Master to read or write SPI Flash.
  • BSP Version: N76E003 BSP Keil C51 v1.0.6
  • Hardware: NuTiny-SDK-N76E003 v2.0
This example is used MCU's GPIO to simulate the SPI host to read and write SPI flash. In the case that the hardware SPI of the MCU is insufficient, if you want to read and write SPI flash, you can use the software GPIO to simulate the SPI host. The speed of reading and writing SPI flash depends on the speed at which the CPU runs.

In this example, the test result is output with N76E003 serial port 0 (TX is P06), and the serial port baud rate is 9600.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1212182228
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests