8,367
edits
Changes
→26pin 的 SPI 测试
[[Image:Pi-5-details2-pic47.png]]<br><br>
=== 26pin 的 's SPI 测试 test ===1) 由 From the schematic diagram of the 26pin 接口的原理图可知,Orange interface, the SPI available for Orange Pi 5B 可用的 spi 为 5 is spi4<br><br>
[[Image:Pi-5-details2-pic48.png]]<br><br>
2) 这里通过 Here is the w25q64 模块来测试 module to test the SPI 接口,首先在 interface, and first access the w25q64 device at the SPI4 接口接入 w25q64 设备interface.<br><br>
[[Image:Pi-5-details2-pic49.png]]<br><br>
3) 然后点击 wiringOP 图标打开 wiringOP Then click the WiringOP icon to open the WiringOP APP<br><br>
[[Image:Pi-5-details2-pic50.png]]<br><br>
4) wiringOP 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<br><br>
[[Image:Pi-5-details2-pic51.png]]<br><br>
5) 然后点击 '''Then click the OPEN''' 按钮初始化 button to initialize SPI<br><br>
[[Image:Pi-5-details2-pic52.png]]<br><br>
6) 然后填充需要发送的字节,比如读取 w25q64 的 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]中填入地址0x9f,然后点击 ''', and then click the TRANSFER''' 按钮button<br><br>
[[Image:Pi-5-details2-pic53.png]]<br><br>
7) 最后 APP 会显示读取到的 The last app will display the ID 信息information read<br><br>
[[Image:Pi-5-details2-pic54.png]]<br><br>
8) w25q64 模块的 The MANUFACTURER ID 为 EFh,Device of the w25q64 module is EFh, the Device ID 为 4017h,跟上面读取到的值是对应的(h 代表是 16 进制)is 4017h, and the value read above is corresponding (H represents hexadecimal)<br><br>
[[Image:Pi-5-details2-pic55.png]]<br><br>