# PYNQ-Z2 SPI clock frequency

**URL:** <https://discuss.pynq.io/t/pynq-z2-spi-clock-frequency/5748>\
**Category:** Support\
**Created:** [June 27, 2023, 11:17am UTC](https://discuss.pynq.io/t/pynq-z2-spi-clock-frequency/5748 "2023-06-27T11:17:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Henk\_Chang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/henk_chang/32/3841_2.png) [@Henk\_Chang](https://discuss.pynq.io/u/Henk_Chang)\
**Post date:** [July 9, 2023, 5:18pm UTC](https://discuss.pynq.io/t/pynq-z2-spi-clock-frequency/5748/9 "2023-07-09T17:18:18Z")

</div>

Thanks again for the replies, it really helps me a lot. I still have some questions.

1. PL SPI:

When I try to change the origin frequencies, some of the frequencies seem to be unavailable or not possible, as in the following figure.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/326ff69d0a8add57ba33611cd50dc77ba7c2d501.png)

Also, I’ve tried to use the command you gave, but I didn’t get information about the frequencies, perhaps I did it wrong?

By the way, since I’m using SPI as slave, does it still matter what the SPI frequency is?  
And do I need to modify the origin connections/designs for the SPI IP?

1. PS SPI:

An error appears, as the following figure, when I try to set SPI frequency 60MHz

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/d/d56534d4df01156272e3c28a05e1f58b5f0ab522.png)

I use the default frequency setting (166.66666MHz; will lower it when I know how) and the block design below to create a bitstream successfully.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/1/18ed7dd97f34c901e0a57aeacd3632edd65f9298.png)

And I’m stuck now, I don’t know how to continue SPI with Jupyter!  
What I used to do with PL SPI is according to the post:

> [@Spi on PYNQ-Z2 Pmod](https://discuss.pynq.io/t/spi-on-pynq-z2-pmod/4633):
>
> Hi all, I am currrently using Vivado 2022.1 to set the IP of SPI on PYNQ-Z2’s PMOD ports. Fig. 1 is the block design I built and the attached files are generated by Vivado. Fig. 2 is the Python code on Jupyter so far. However, I am new in this area, so I don’t quite know how to proceed. Please help me with this SPI program. [spi.zip](https://discuss.pynq.io/uploads/short-url/59fyjf9r1t1qVVEB6ZjRTAwZlEc.zip) (278.0 KB)

I don’t think they work the same way, do they?  
I’ve seen some posts using MicroBlaze or spidev, but I can’t figure out how exactly they put it into practice.

---

_[View the full topic](https://discuss.pynq.io/t/pynq-z2-spi-clock-frequency/5748)._
