26pin's SPI test

From Wiki-Orange Pi
Jump to: navigation, search

1) From the schematic diagram of the 26pin interface, the SPI available for Orange Pi 5 is spi4

Pi-5-details2-pic55.png

2) Here is the w25q64 module to test the SPI interface, and first access the w25q64 device at the SPI4 interface.

Pi-5-details2-pic56.png

3) Then click the WiringOP icon to open the WiringOP APP

Pi-5-details2-pic57.png

4) The main interface of the WiringOP APP shows as shown in the figure below, click the SPI_TEST button to open the SPI test interface

Pi-5-details2-pic58.png

5) Then click the OPEN button to initialize SPI

Pi-5-details2-pic59.png

6) Then fill in bytes that need to be sent, such as reading the ID information of W25Q64, fill in the address 0x9F in data [0], and then click the TRANSFER button

Pi-5-details2-pic60.png

7) The last app will display the ID information read

Pi-5-details2-pic61.png

8) The MANUFACTURER ID of the w25q64 module is EFh, the Device ID is 4017h, and the value read above is corresponding (H represents hexadecimal)

Pi-5-details2-pic62.png