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.

Interfacing of arm core M0 mcu with spartan 3e FPGA

Status
Not open for further replies.

Gautam Sadarangani

Newbie level 3
Joined
Mar 11, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Mumbai, Maharashtra, India, India
Activity points
27
I need to interface stm32f030 mcu with basys2 spartan 3e fpga.

I know of two methods which might work but Im not sure of :-
1) connecting using rs 232
2) connecting using spi protocol

if there is any other method let me know....

I need guidance on how to accomplish this interfacing, I dont need to program the fpga using the mcu, I will program each separately
 

The FPGA side can be viewed as infinitely versatile - allowing many implementation options for almost any communication protocol.
The MCU is more dependent on the available peripherals (if you want to stay efficient timing wise). If timing requirements aren't very tight - you can implement your protocol via GPIO "bit banging".

As long as you have the required physical layer on both sides - you have many options...

Do you have the schematics for the PCB with the STM32F030 on it?
 

From serial protocol candidates, SPI involves usually the lowest effort at the FPGA side. It's also the fastest protocol if supported by a hardware interface in the µP, which is the case with ARM.

Makes SPI is the obvious way.
 
Instead of choosing between "protocol names" - I suggest you learn the properties of the most common protocols and from that deduct the pros & cons when applied for your application.

For example:

SPI -

Good:
Allows faster speed.
Doesn't require synchronization logic on the slave side.

Bad:
Requires more wires (may be a deal breaker).

Good/Bad (depends on your application - you decide):
Full duplex - Tx and Rx happen at the same time.
Master - Slave protocol. Transactions are initiated by the Master.
 

Instead of choosing between "protocol names" - I suggest you learn the properties of the most common protocols and from that deduct the pros & cons when applied for your application.
Don't you think that the OP can perfectly learn about serial protocols by implementing one and experiencing the pro and cons?

Knowledge can remain quite abstract if you don't apply it to real problems.
 

Don't you think that the OP can perfectly learn about serial protocols
Sure - where did I say otherwise?

I doubt that the communication protocol is the essence of the OP's project - I think it's an (important) element in the bigger application.
In that case selecting one communication scheme over the other may come with problematic "features" that may dictate less then optimal design of the application.

I wanted to emphasize - that there's no "correct" answer.

The thing I find most problematic in having SPI interconnect 2 (big) systems is the inability of the slave to initiate transactions.
 

Sure - where did I say otherwise?

I doubt that the communication protocol is the essence of the OP's project - I think it's an (important) element in the bigger application.
In that case selecting one communication scheme over the other may come with problematic "features" that may dictate less then optimal design of the application.

I wanted to emphasize - that there's no "correct" answer.

The thing I find most problematic in having SPI interconnect 2 (big) systems is the inability of the slave to initiate transactions.

Thanks for bringing it to my attention , in my project the slave will need to initiate communication so
I will think about USART too and then decide
 

Presuming that the communication is regularly carried out by the ARM, an interrupt line would be the usual method to signal a service request from the FPGA. You can even use SPI MISO line for this purpose without losing another pin pair.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top