User Manual Orange Pi Zero 3

  Features   |  Use   |  Linux   |  Linux SDK   |    Android     |  Android SRC   |

RU          EN  

Chapt 5. Android 12 TV system instructions
Страница:   134    135    136    137    138    139    140    141    142    143    144    145    146    147    148    149    150    151    152    153    154  


5.15.3. 26pin SPI test method

  • 1) The SPI that can be used in 26pin is SPI1, and the corresponding device node is /dev/spidev1.1

  • 2) Here is a demonstration to test the SPI1 interface through the w25q64 module, first connect the w25q64 module to the SPI1 interface p>

    It doesn’t matter if there is no w25q64 module, because there is a SPIFlash connected to SPI0 on the development board, and the configuration of SPI0 is also enabled by default in Android, so we can also directly use the onboard SPIFlash test.

  • 3) Then open the wiringOPAPP on the desktop


    Img 5.69

  • 4) Then click the SPI_TEST button to open the SPI test interface


    Img 5.70

  • 5) Then select the spi device node in the upper left corner. If you directly test the onboard SPIFlash, then keep the default /dev/spidev0.0. If you connect the w25q64 module to the 26pin spi 1, then please select /dev /dev/spidev1.1


    Img 5.71

  • 6) Then click the OPEN button to initialize the SPI


    Img 5.72

  • 7) Then fill in the bytes that need to be sent, such as reading the ID information of the onboard SPIFlash, fill in the address 0x9f in data[0], and then click the TRANSFER button


    Img 5.73

  • 8) Finally, the APP will display the read ID information of the onboard SPI Flash


    Img 5.74

  • 9) If it is to read the w25q64 module connected to 26pin SPI1, then the read ID information is shown in the figure below


    Img 5.75

  • 10) The MANUFACTURER ID of the w25q64 module is EFh, and the Device ID is 4017h, corresponding to the value read above (h stands for hexadecimal)


    Img 5.76

     <         > 


  • Страница:   134    135    136    137    138    139    140    141    142    143    144    145    146    147    148    149    150    151    152    153    154