牛卧堂MCU技术交流

标题: [N76E003] Use GPIO to Access SPI Flash [打印本页]

作者: admin    时间: 2022-6-27 15:36
标题: [N76E003] Use GPIO to Access SPI Flash
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






欢迎光临 牛卧堂MCU技术交流 (http://www.nuvoton-mcu.com/) Powered by Discuz! X3.2