Jump to content

Question

Hi there! 

I'm an electrical engineering student and my group has been thrown in cold water:

We have to do an SPI Project where we connect a PMOD-Mic3 to our Basys3 Board and measure the frequencies of sounds by giving the Mic signal out to the onboard LEDs. A lot of LEDs have to light up when the frequency is high (over 500 Hz) and less when the frequency gets lower. [We have to create a Vivado VHDL Project.]

We have huge problems understanding the core of the exercise. So far, after hours of research, we were not succesful with anything but especially:

  • Establishing SPI-Communication (Master-Slave)
  • Creating working shift-registers

Our question is: has anyone done anything like that and can provide us with tipps/tricks or even a working examplary code? We value copyright and would never copy your work, we just need an idea as we have never dealt with FPGAs, VHDL or SPI before.

We would appreciate every answer, thank you all a lot in advance!

Your ElectricalEngStudent :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @ElectricalEngStudent,

Welcome to the Forum!

There are a number of different places where you can learn about using an FPGA, including but not limited to Digilent's Learn site, nandland, and fpga4fun. From there you will be able to find a number of different guides that you may find useful such as the shift register one here and some more detail on SPI here.

Let me know if you have any questions.

Thanks,
JColvin

Link to comment
Share on other sites

  • 0

SPI is a particularly simple protocol. Designing an HDL SPI master is an excellent beginners exercise - study the a/d data sheet, it should have everything you need to get started. Can I help any more than that? No. VHDL gives me a headache. I like the clarity & simplicity of Verilog. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...