Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Looking for a sample VHDL code for SPI in FPGA

Status
Not open for further replies.

ombadei

Member level 3
Joined
Sep 1, 2008
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,754
Hi, i am new to vhdl. I am provided with a spartan3 fpga. After sourcing for an ADC(10 bit), i have selected the microchip (MCP3002) which requires SPI.

I am a bit confused on how to start. I've tried reading vhdl code but it doesnt make sense to me. On the ADC datasheets, i know that i need SCK,CS,Din,Dout. What confuses me is on the clock frequency required for SCK? Based on the timing diagrams, it seems to be varying.

Can someone help me on this or if possible, provide any sample VHDL code on SPI so that i can figure it out.

Really appreciate it.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top