# AXi Quad SPI dual mode

**URL:** <https://discuss.pynq.io/t/axi-quad-spi-dual-mode/3687>\
**Category:** Support\
**Created:** [February 15, 2022, 1:45pm UTC](https://discuss.pynq.io/t/axi-quad-spi-dual-mode/3687 "2022-02-15T13:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://discuss.pynq.io/u/Alex)\
**Post date:** [February 15, 2022, 1:45pm UTC](https://discuss.pynq.io/t/axi-quad-spi-dual-mode/3687/1 "2022-02-15T13:45:35Z")

</div>

Hi Guys can anybody share an python example in which a AXI Quad SPI interface in dual mode is used?

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [February 21, 2022, 7:22am UTC](https://discuss.pynq.io/t/axi-quad-spi-dual-mode/3687/2 "2022-02-21T07:22:46Z")

</div>

If you want to write the Python code for this yourself, you can do this with the PYNQ MMIO class.  
I’d recommend you check this [MMIO video example](https://www.youtube.com/watch?v=zbumITJQ2Z8) and this [Register Map example](https://youtu.be/vK1cEEdKAds)

You can do this in Python. Depending on your driver you may want to port some or all of the underlining code to C++ or another efficient language and wrap it in a Python API.

[Interactive C++](https://discuss.pynq.io/t/interactive-c-on-the-kria-som-in-jupyter-lab/3667)

Cathal
