RS-232 or SPI

Discussion in 'VHDL' started by Ardni, Nov 11, 2009.

  1. Ardni

    Ardni

    Joined:
    Jul 8, 2008
    Messages:
    23
    Hi,
    I need to interface an FPGA to a microcontroller located on a seperate board.
    The microcontroller has an SPI interface and a couple of UARTS to implement the normal normal RS232 interface.

    Anyway some people are suggesting that I use the RS232 interface and I just wated to know which would be better. I was hoping to use the SPI interface based on the reason that when in the FPGA I receive data, I will have no idea of how my internal clock used to latch the serial data stream actually relates to it. So conceivably I could be latching very close to the data edge and possibly latch an incorrect value.

    With teh SPI I would not have this problem as a clock is transmitted and along with the chip select line it seems easier.

    Can anyone tell me if this would be sufficient reason to change from RS232 to SPI? and also how do people normally implement an RS232 interface on FPGA, from the point of view of latching the data? how do people allow for any differences in the clock used to transmit the data and that used to receive it?

    Many thanks for the help.
     
    Ardni, Nov 11, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bob
    Replies:
    1
    Views:
    4,390
    Tim Hubberstey
    Feb 15, 2005
  2. Fizzy

    SPI Problem

    Fizzy, Apr 12, 2006, in forum: VHDL
    Replies:
    4
    Views:
    3,580
    Andrew FPGA
    Apr 12, 2006
  3. jacksuyu@gmail.com

    How is SPI (Service Provider Interface) works?

    jacksuyu@gmail.com, Apr 19, 2006, in forum: Java
    Replies:
    4
    Views:
    6,999
    jacksuyu@gmail.com
    Apr 20, 2006
  4. bob
    Replies:
    3
    Views:
    5,146
    Victor Bazarov
    Mar 1, 2005
  5. Marcin Lewandowski

    Problem with Opera & OGG Vorbis SPI

    Marcin Lewandowski, Jun 24, 2006, in forum: Java
    Replies:
    0
    Views:
    407
    Marcin Lewandowski
    Jun 24, 2006
Loading...

Share This Page