Sparse SPI interface IP

Source: Internet
Author: User

Reference http://www.fpga4fun.com/SPI2.html

 

CLK is a 50 m crystal oscillator of FPGA

To use the four-wire SPI mode, the SSEL signal must be available. 8-bit data mode, polarity = 0, phase = 1.

 

Send data:

Send the data to byte_data_tosent, and byte_sent_request provides a rising edge, so that byte_sent_int also gives the DSP a rising edge, triggering dsp spi reading.

 

Receive data:

When byte_received generates a rising edge, it indicates that the byte_data_received data is valid and can be read.

 

 

Simulation waveform:

The sent data is 0xf1, And the received data is 0xfa.

 

: Http://download.csdn.net/source/2352199

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.