ZYLL

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. ZYLL

    Ask for help about Pmod I/O

    @D@n @Notarobot @Ciprian, I actually have very limited experience on how to program in PL. My purpose is just simple GPIO control so I know it might be really good to just use PL. The question is all of the tutorials about zedboard I can find is use Vivado and SDK and use C to control everything. Would you like to give some example or tutorial about how to do so? For my purpose, I need to switch the GPIO signal with frequency at least 1MHz, so at this level use PS and C is somehow sufficient. But of course the higher frequency I can get, the better the project is. BTW, I already make it work; I just wonder can I make it better so don't worry too much about a deadline. Hopefully learning how to use PL would not cost me too much time, say several months or more.
  2. ZYLL

    Ask for help about Pmod I/O

    Hi, I would like to run part of the c code only after the trigger signal is received. The signal works as a switch that turns on my code.
  3. ZYLL

    Ask for help about Pmod I/O

    Thank you Cipi, Yes I know that the switching rate is limited without writing GPIO core myself. Fortunately 2-3 MHz is somehow okay for my purpose. The trigger signal to interrupt is shown everywhere, but the trigger signal to start is not that easy. For example, in Vivado I can add interrupt in the AXI_GPIO IP but not a sudden start. I think the principle is similar but I tried some approaches but all failed.
  4. ZYLL

    Ask for help about Pmod I/O

    Hi, I need help about Pmod I/O. I have a Zedboard and I use GPIO to control some pmod pins to output voltage signal. I use SDK and c language to achieve it, but it seems like that the each time I use "XGpio_DiscreteWrite" it cost me more than 0.1 microsecond, i.e., it changes voltage with frequency much less than 10MHz. This is really slow comparing to its clock frequency. I have noticed that in the embed topic there are arguments about PS, PL side but I have totally no idea about how to improve the performance. On the other hand, I also need to use another pmod pin to "trigger" my board, i.e., when I send a high voltage to the pmod pin, the program started to work. It's really similar to the interrupt example in the tutorial, but I still cannot achieve it. Thanks for your help!