This is a simple example that utilizes mikroSDK 2.0 SPI driver library. In this demo, we use SRAM click to write 20 bytes of data and read them back. Written and read data is printed out on the Standard output - Application output or UART, determined by the chosen setup.
- Authors : MIKROE
- Version : 3.0.0
- Date : ${COPYRIGHT_YEAR}.
- Place SRAM click in mikroBUS 1
- Place Tester click in mikroBUS 2
- Note: You can also use a logic analyzer to see signals and data.
We provide code for demonstrating the usage of functions contained in SPI driver library. To run this example, follow these steps:
- Install the package from Package manager.
- Open example.
- It will take you to setups, so make one for your hardware.
- Choose adequate setup and the project will open.
- Program it by clicking on Flash.
- If transfer completes successfully, INT pin on the Tester click will light up.
Transferred data can also be seen on the Application output or UART terminal, depending on the chosen setup.