User Tools

Site Tools


introduction_to_gpio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

introduction_to_gpio [2019/04/08 20:11] (current)
Line 1: Line 1:
 +==== This reading assignment will help you to understand the GPIO block, one of the peripherals you will use extensively in this class. ====
 +
 +Read the hardware documentation for the {{::​ds744_axi_gpio.pdf|Logicore IP AXI GPIO}} and then answer these questions. Also, examine the related device driver files in the Board Support Package (BSP) that is located in the project directory you created when you went through the first tutorial. If you named your BSP, ''​330_bsp'',​ then the interesting files will be found under:
 +  330_bsp/​ps7_cortexa9_0/​libsrc/​gpio_v3_00_a/​src
 +  ​
 +=== Study Questions ===
 +  - What functions does the AXI GPIO block provide?
 +  - What is the purpose of the GPIO_DATA register shown in Figure 2 of the GPIO documentation?​
 +  - What is the purpose of the GPIO_REG_IN register in the same figure?
 +  - What is the purpose of the GPIO2_DATA register?
 +  - What is the purpose of the GPIO2_TRI register?
 +  - What is C_BASEADDR (not its value, but its purpose)?
 +  - How do you write data to the GPIO_DATA register (don't rely on the device driver, just state what functionally needs to be done from the processor point of view)?
 +  - How do you read data from the GPIO_REG_IN register (don't rely on the device driver, just state what functionally needs to be done from the processor point of view)?
 +  ​
  
introduction_to_gpio.txt ยท Last modified: 2019/04/08 20:11 (external edit)