Skip to main content
amitwadje
Associate
June 3, 2014
Question

SPI communication basic STM32F103ZE

  • June 3, 2014
  • 3 replies
  • 778 views
Posted on June 03, 2014 at 09:24

Hello,

This is my first time I am working on STM, previously I successfully work on PIC32.

I want really basic information about SPI communication in STM32F103ZE.

my questions are,

1. How to set the SPI mode, which register ? (STM datasheets are so different than PIC, i didn't find clear info)

 2. What library file? can you please specify any SPI libraries ?  

Thank you.

   
    This topic has been closed for replies.

    3 replies

    chen
    Associate II
    June 3, 2014
    Posted on June 03, 2014 at 10:45

    Hi

    '' 2. What library file? can you please specify any SPI libraries ?''

    ST provide a whole library for all the peripherals in the processor, they call it the Standard Peripheral Libray.

    It can be download here :

    http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257890

    If it is like the library for the STM32F4 parts, the library file contains examples for all the peripherals (including the SPI).

    In addition, all the software samples for this device are here :

    http://www.st.com/stonline/stappl/productcatalog/app?page=partNumberSearchPage&levelid=LN1565&parentid=1743&resourcetype=SW

    amitwadje
    amitwadjeAuthor
    Associate
    June 4, 2014
    Posted on June 04, 2014 at 02:18

    Thank you for reply..

    Can you tell me how to initialize the SPI ?

    Thank you 

    Tesla DeLorean
    Guru
    June 4, 2014
    Posted on June 04, 2014 at 03:17

    STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\SPI\SPI_FLASH

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..