• Content Count

  • Joined

  • Last visited

  1. liwerfm

    Input pins GPIO

    Hello, I am trying to drive GPIO's 19 to 0, and trying to turn on the leds when a 3.3 voltage is applied in any of this pins, but it doesn't work u32 btn, led; XGpio gpio; XGpio_Initialize(&gpio, 0); init_platform(); XGpio_SetDataDirection(&gpio, 2, 0x0); //output leds XGpio_SetDataDirection(&gpio, 1, 0xFFFFFFFF); //input pins print("Start test\n\r"); while(1){ btn = XGpio_DiscreteRead(&gpio, 1); putnum(btn); print("\n\r"); if (btn!=0) // turn all LEDs on when a
  2. liwerfm

    Microblaze inputs

    Hi, I'm new in FPGA. I have a design with vivado ipi and i don't know how to interact with an input hardware signal at the microblaze. I know that if the signal is external of the hardware, i can use GPIO module, but i don't have any idea of how do it with internal signals