Skip to main content
Sandeep singh
Associate II
May 25, 2018
Question

want to send 16 bit data using by spi using cubemx

  • May 25, 2018
  • 1 reply
  • 683 views
Posted on May 25, 2018 at 08:56

I m  totally new to stm32 , I am using stm32f0rb nucleo board ,now I want to connect ic using SPI and send 16 bit data to ic can anyone guid in proper way , I want to generate code using stmcubemx.

    This topic has been closed for replies.

    1 reply

    ST Technical Moderator
    May 25, 2018
    Posted on May 25, 2018 at 14:11

    Hello

    sandy.sandy

    ,

    Have a look to the

    in section SPI (from page 187) it can help you onhow to configure SPI using STM32CubeMX .

    You may refer to theSPI

    example within STM32CubeF0 v1.9.0 firmware package:

    STM32Cube_FW_F0_V1.9.0\Projects\STM32F070RB-Nucleo\Examples\SPI

    The

    http://www.st.com/content/ccc/resource/technical/document/user_manual/2f/77/25/0f/5c/38/48/80/DM00122pdf/files/DM00122pdf/jcr:content/translations/en.DM00122pdf

    U

    ser manual Description of STM32F0 HAL and low-layer drivers, will helps youto understand the purpose of HAL functions and toknow how the structures are defined.

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks