# how can I command IBxCR and setup memory banks?

**URL:** <https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985>\
**Category:** Rabbit\
**Tags:** banks, ibxcr, memory\
**Created:** [September 26, 2013, 8:52am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985 "2013-09-26T08:52:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [September 26, 2013, 8:52am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985/1 "2013-09-26T08:52:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![cpigilam](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cpigilam](https://forums.digi.com/u/cpigilam)\
**Post date:** [September 27, 2013, 2:42am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985/2 "2013-09-27T02:42:07Z")

</div>

Hello, It seems like you want to use external interface on the module through the Auxiliary I/O Bus?

By using WrPortI() you can set the internal registers.  
For more information on this please check Dynamic C function reference manual.

And also check processor reference manual to know more about what are the steps you need to follow to use Auxiliary I/O Bus.

Thanks.

---

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [September 27, 2013, 10:02am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985/3 "2013-09-27T10:02:03Z")

</div>

Is the following command correct?  
WrPortI(IB2CR,&IB2CRShadow,0x82);  
—for setting up I/O bank 2?

---

<div class="post-metadata">

**Author:** ![cpigilam](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cpigilam](https://forums.digi.com/u/cpigilam)\
**Post date:** [October 1, 2013, 2:25am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985/4 "2013-10-01T02:25:49Z")

</div>

Actually this register is ,to set wait state and read or write strobe.  
Please check the processor’s reference manual page 263 for more info on the IB2CR bits.  
[http://ftp1.digi.com/support/documentation/019-0152\_N.pdf](http://ftp1.digi.com/support/documentation/019-0152_N.pdf)

Thanks.

---

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [October 3, 2013, 8:42am UTC](https://forums.digi.com/t/how-can-i-command-ibxcr-and-setup-memory-banks/11985/5 "2013-10-03T08:42:59Z")

</div>

can you provide me the commands to interface an fpga to RCM4000?  
What should I do for this?  
I have set SPCR register.after that what should I do to read data from external I/O?  
pls provide sample programs…
