Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

why 3-wire spi have 4-prot ??

Dear ALL

I want to use the spi in sopc builder . but I find it have 4 paort . i can connect it to my extern device . I want to know how to do it . thanks!

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by iztok.jeras@Dec 22 2006, 01:52 PM

    spi flash devices like the epcs are a good spi slave for a demo of your spi master. in your demo you may access a spi flash (read its id, read data, write data). another good slave for a demo would be a spi thermometer.

    izi

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20186)

    --- quote end ---

    --- Quote End ---

    Thanks for replying.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

    we have just started working on nios so the question which i am going to post may look stupid but will be great help for us if u reply soon.

    once i design spi slave on the nios development board do i need to specify the spi logic in nios ide software like do i need to specify the instructions for spi registers the command for read and write data or these protocol directly becomes the part of system as soon as we define it.

    if we have to define the logic for spi slave in ide then can u suggest where we can find a working code for demonstration and can we simulate the design in quartus before downloading it on board

    thanks in advance

    ashish
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In SOPC i use SPI ( 3wire serial ) to read data from sdcard..some body help me to edit module : SPI clock (SCLK) rate , Actual clock rate, target delay, Actual delay, Width, Shift direction, Clock polarity, Clock phase, Thanks so much.. clock system i use: 50MHz