This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

about memory mapped register

I/O space is used to acess the registers of the on-chip peripherals. so what is the defference of the memory mapped register and I/O space registers???

thank you for your time . I am just wondering.

  • Simply put it, IO space registers can be accessed early, say in GEL file, to setup the memory space for access afterward. Like thiese statements from GL file to config the SDRAM:

     *(short *)0x1c00@IO=0x2<<8;  // Select GPIO0 in I2S
     *(short *)0x1c06@IO=0x1; //Set GPIO0 as output
     *(short *)0x1c0A@IO=0x0; //Set GPIO0 = 1

    Hope this help.