2017-07-19 01:46 AM
In STM32L4 SPI 1 i am use in Receive only master mode and hardware NSS signal in output mode.In that project how to control the NSS pin (chip selection pin),I am use only one slave MCU is master ex.ADC is slave.i am configure MISO,NSS,SCK only. send any example code for
Receive only master and
what are the configuration for this.
2017-07-19 02:10 AM
Start easy by using SPI as Master 4 wire interface. Control NSS as general GPIO (by SW) and don't activate MOSI pin (the output of the internal SPI will just go nowhere). Then SPI Master general example from STM32 Cube can be modified to get the functionality implemented simply.
2017-07-19 02:41 AM
Hi
Reddy.Rajesh
,You can find under the STM32CubeL4 packagea set of SPI exampleswhich can help you as an implementation example.
For STM32L4 refer to
«STM32Cube firmware examples for STM32L4 Series'that illustrates the existing SPI examples.Have a look the reference manual related to your device for more details on section 'Slave select (NSS) pin management'
With Regards
Imen