Jump to content

dpaul

Members
  • Posts

    28
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dpaul's Achievements

  1. The problem is solved. I used the XGpio_Discrete*() and it worked.
  2. I don't know the communication b/w the Pmod ESP32 and the smartphone. But driving the Pmod from Zybo z720 should be straightforward. You have to implement the SPI master core (you have Xilinx IP cores free to use) on the FPGA side which should be able to read/write to the SPA slave, i.e Pmod ESP32.
  3. You are not specific regarding the type of "implementation " you mean here - Make own implementation in Micorcontroller Part of SoC; Make own implementation in PL Part or FPGA 1. Signal gen can also be done using look-up tables. Depending on the nature of signal to be generated, the "look-up" table method is supposed to be efficient. The savings in processing time can be significant, because retrieving a value from memory (where loop-up table values are stored) is often faster than carrying out an "expensive" computation or input/output operation. 2. That is your homework, search out and compare!
  4. Hello, I have a Z7-10 board. I am writing software for the Zynq, which will access 8 GPIO pins via the PL (using the AXI GPIO IP). These will be 4 each on-board LEDs LD0-LD3 (to be configured as output) and DIP switches SW0-SW3(to be configured as input). The BD is shown below. The offset and high address are shown below in the SS. My target is to read the status of the 4x slide switches and write those values back to the LEDs in order. So to achieve that, after initializing the GPIO, I have also set the direction of the bits as shown in the following 2 lines. Status = XGpio_CfgInitialize(&my_Gpio, GPIO_Config, GPIO_Config -> BaseAddress); XGpio_SetDataDirection(&my_Gpio, 1, 15); // Only the 4 LSB bits are inputs(4x slide switches), so 1's Now all I have to do is to read the switch status and write them back to the LEDs inside a while loop. However I am not sure how to use the XGpio_ReadReg() or XGpio_WriteReg(). SDK tells me the to use XGpio_*Reg(BaseAddress, RegOffset). But what would be my BaseAddress, RegOffset? Will it be as shown in the Address Editor, i.e. BaseAddress = 0x4120_0000 and RegOffset = 0x00000000?
×
×
  • Create New...