Skip to content

I/O port and SD card reading and writing experiment (do not hot-swap)

Experimental goal

(1) After the wujian100 SoC is deployed on the FPGA, set the I/O pin of the SoC to high or low level, observe the on and off of the LED, and learn to use the I/O of the E902.
(2) Learn to use the E902 processor to read and write SD cards, which requires SD cards and SD card expansion boards.
Note: SD card related functions require Pref's SD card expansion board, and the sockets are as follows. The program of the SD card and the program of the LED are together, so they can be tested together.

Experimental procedure

1. Connect the computer and wujian100

Clink and PMOD connection:

The corresponding relationship is as follows:

2. Connect the USB-to-serial downloader and develop

3. Compile and debug

The next step can be performed only when E902 is displayed. If it is not displayed, you can check whether the connection between PMOD and CLINK is wrong, or not connected.

4. CDK's serial port window

5. Download the program

Or use these two:

6. After reset, the correct phenomenon is that the light flashes, and

Indicates that the SD card is read correctly, and you can view the specific value in the register on the Debug interface.