Zynq Development (ii) Use of gpio Mio

Source: Internet
Author: User

Zynq Development (ii) Use of gpio Mio

I. Principles

Mio use can refer to the official development manual ug585-Zynq-7000-TRM, which has a more detailed description. Ipvq7000 series chips have 54 mio, which are allocated to bank0 and bank1 in the ps section, which are directly connected to PS. Note that the base address of the gpio operation is 0xe000_a000. The official manual provides the following:

 

In addition, the relevant register operation manual is also provided officially, so that we can directly perform register operations during programming and improve execution efficiency.

 

 

Ii. Procedure

1. Because the D29 LED light on the purchased Development Board is connected to the Mio 0-foot, the Mio can be operated to flash the LED D29.

2. Create a new project, add the zynq7 processing system, and crop the processor. Because you need to use the serial port output information and the Mio 0 foot of gpio, you can customize the two uart1 and Mio. The cropped processor is as follows:

 

 

3. Generate a bit file. After clicking the file, a series of steps are automatically taken, including hardware to the SDK;

4. Create an application in the SDK, select the hello World template, and modify the Hello world code. The habit is to use ue to edit the code and put it in the corresponding folder, right-click the area pointed by the arrow and select refresh. The file will be automatically updated to delete Hello world. c file.

 

5. The Mio control LED core code is as follows:

 

 

Iii. Software Use

1. display the row number, as shown in figure

 

 

 

Real-time records, allowing you to review your operations at any time.

 

Engineering documents: http://download.csdn.net/detail/xbx515626/9606144

 

 

By children who sell sweet potatoes

Hangzhou

 

Zynq Development (ii) Use of gpio Mio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.