element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General What GPIO for LED9
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 355 subscribers
  • Views 480 views
  • Users 0 members are here
Related

What GPIO for LED9

Former Member
Former Member over 13 years ago

The LED next to the oled display, conveniently labeled "led9" and "MI07" is supposedly connected to the CPU via GPIO, and does not need programmable logic like the other leds.

This makes it ideal for a kernel status LED, but I cannot find what GPIO line it is attached to. Anyone know this?

The buttons next to that led are GPIO 50 and 51, they work fine without PL.

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 13 years ago

    Hi milosoftware,

    The LED LD9 is connected to MIO pin 7 that's why you see the label MIO7 so it should end up getting mapped to GPIO7.

    According to the Digilent OOB Demo Documentation: "LD9 is used to indicate read/write activity on the SD card."  As a result, you may not be able to use GPIO7 as a regular GPIO from the OOB Linux Demo.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago

    LD9 is just always ON. No relation to SD card activity.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago

    It looks like this question is about accessing the LED from Linux, so I'm not sure how much this will help...

    Here is how I was able to access the LED (and the two PS pushbuttons) with a standalone application.

    #include <xgpiops.h>

    XGpioPs_Config * ConfigPtr = XGpioPs_LookupConfig(XPAR_PS7_GPIO_0_DEVICE_ID);
    XGpioPs_CfgInitialize(&Gpio, ConfigPtr, ConfigPtr->BaseAddr);

    XGpioPs_SetDirectionPin(&Gpio, 7, 1);

    // Enable LED
    XGpioPs_WritePin(&Gpio, 7, 0x01);

    // Disable LED
    XGpioPs_WritePin(&Gpio, 7, 0x00);

    // Read status of the PS side buttons
    int pushButton50 = XGpioPs_ReadPin(&Gpio,50);
    int pushButton51 = XGpioPs_ReadPin(&Gpio,51);

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    matto, you forgot:
    tXGpioPs_SetOutputEnablePin(&Gpio, LED, 1);

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hello
    How do I determine the offset for gpio
    What gpioxx should be used for the 8 leds.  I am using ZedBoard_Linux_Design for generation of system.bit After using fpga.bin that was built using cf_adv7511_zed 
    The slides switches work with the following files
    #!/bin/bash
    #This appears to work with fpga.bin loaded
    echo "++ Exporting switches "
    for i in 0 1 2 3 4 5 6 7;
    do
            sw=$(($i+65));
            echo $sw > /sys/class/gpio/export;
    done;
    and
    #!/bin/sh
    value=0;
    for i in 0 1 2 3 4 5 6 7;
    do
            sw=$((72-$i));
            sw_tmp=`cat /sys/class/gpio/gpio$sw/value`;
            value=$(($value*2));
            value=$(($value+$sw_tmp));
    done;
    printf "0x%x %d
    " $value $value;
    The following is in system.ucf
    NET processing_system7_0_GPIO_pin[11]tLOC = F22  | IOSTANDARD="LVCMOS25";  # "SW0"
    NET processing_system7_0_GPIO_pin[12]tLOC = G22  | IOSTANDARD="LVCMOS25";  # "SW1"
    NET processing_system7_0_GPIO_pin[13]tLOC = H22  | IOSTANDARD="LVCMOS25";  # "SW2"
    NET processing_system7_0_GPIO_pin[14]tLOC = F21  | IOSTANDARD="LVCMOS25";  # "SW3"
    NET processing_system7_0_GPIO_pin[15]tLOC = H19  | IOSTANDARD="LVCMOS25";  # "SW4"
    NET processing_system7_0_GPIO_pin[16]tLOC = H18  | IOSTANDARD="LVCMOS25";  # "SW5"
    NET processing_system7_0_GPIO_pin[17]tLOC = H17  | IOSTANDARD="LVCMOS25";  # "SW6"
    NET processing_system7_0_GPIO_pin[18]tLOC = M15  | IOSTANDARD="LVCMOS25";  # "SW7"

    NET processing_system7_0_GPIO_pin[19]tLOC = T22  | IOSTANDARD="LVCMOS33";  # "LD0"
    NET processing_system7_0_GPIO_pin[20]tLOC = T21  | IOSTANDARD="LVCMOS33";  # "LD1"
    NET processing_system7_0_GPIO_pin[21]tLOC = U22  | IOSTANDARD="LVCMOS33";  # "LD2"
    NET processing_system7_0_GPIO_pin[22]tLOC = U21  | IOSTANDARD="LVCMOS33";  # "LD3"
    NET processing_system7_0_GPIO_pin[23]tLOC = V22  | IOSTANDARD="LVCMOS33";  # "LD4"
    NET processing_system7_0_GPIO_pin[24]tLOC = W22  | IOSTANDARD="LVCMOS33";  # "LD5"
    NET processing_system7_0_GPIO_pin[25]tLOC = U19  | IOSTANDARD="LVCMOS33";  # "LD6"
    NET processing_system7_0_GPIO_pin[26]tLOC = U14  | IOSTANDARD="LVCMOS33";  # "LD7"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi,
    I want create two IPs ( master and slave) and i want send a data from master to slave , by using axi bus.
    i want programme on C. Same one have one exemple for this ? thx a lot

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi,
    I want create two IP ( master and slave) and i want send a data from master to slave , by using axi bus.
    i want programme on C. Same one have one exemple for this ?I want work on the Zynq zeadbord 7zc702.
    SAme one can help me please.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube