Jump to content

federicopy

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by federicopy

  1. Hi. Thanks for ask to me artvvb. I think you do no understand well. I do not want example code of Pmod RF2. I need the driver same has PmodACL, PmodAD1, PmodBT, etc. See picture. Without driver is imposible to use Pmod RF2. best regards FF
  2. Hi. I want to use PmodRF2 with Nexys 4 and vivado 2019.1, but I can not find the driver. ¿Can somebody help me?. Thanks
  3. Hi. I try to use four gpio on microblaze mcs. Two for imput and two por output. I can only read one input/output port. This is the verilog code. module TopMod( input sys_clk, input reset, input [7:0] sw, output [7:0] leds, input [7:0] sw1, output [7:0] leds1 ); microblaze_mcs_0 mcs_0 ( .Clk(sys_clk), .Reset(reset), .GPIO1_tri_i(sw), .GPIO1_tri_o(leds), .GPIO2_tri_i(sw1), .GPIO2_tri_o(leds1) ); endmodule and this is the sdk/ lenguaje c code #include <stdio.h> #include "platform.h" #include "xil_printf.h" #include "xparameters.h" #include "xiomodule.h" int main() { init_platform(); u32 data1; u32 data2; XIOModule gpi; XIOModule gpo; XIOModule gpi_1; XIOModule gpo_1; data1 = XIOModule_Initialize(&gpi, XPAR_IOMODULE_0_DEVICE_ID); data1 = XIOModule_Start(&gpi); data1 = XIOModule_Initialize(&gpo, XPAR_IOMODULE_0_DEVICE_ID); data1 = XIOModule_Start(&gpo); data2 = XIOModule_Initialize(&gpi_1, XPAR_IOMODULE_0_DEVICE_ID); data2 = XIOModule_Start(&gpi_1); data2 = XIOModule_Initialize(&gpo_1, XPAR_IOMODULE_0_DEVICE_ID); data2 = XIOModule_Start(&gpo_1); while (1) { data1 = XIOModule_DiscreteRead(&gpi, 1); // read switches (channel 1) XIOModule_DiscreteWrite(&gpo, 1, data1); // turn on LEDs (channel 1) data2 = XIOModule_DiscreteRead(&gpi_1, 1); // read switches (channel 2) XIOModule_DiscreteWrite(&gpo_1, 1, data2); // turn on LEDs (channel 2) } cleanup_platform(); return 0; } Can say to me whats is the problem? Thanks FF
  4. Hi. I need some tutorial or book about how to exchange data between two or more microblaze controllers. I use Nexys 4 and Vivado 2018.2

    Thanks 

     

    1. vicentiu

      vicentiu

      Please create a post in the forum so your question will have better visibility.

×
×
  • Create New...