2024-08-07 10:41 PM - edited 2024-08-07 10:53 PM
Hello, everyone this is my first post here.
I'm starting to learn Embedded Programming and I choose STM32F103C8T6 using Blue Pill development board. I'm trying to understand SPI communication, my goal is to read multiple input using 74HC165 IC. I'm able to read that successfully when I set SPI1 to use Full-Duplex Master. But since I just want to receive, I thought why not use the Receive Only Master to save 1 pin(SPI_MOSI) since it won't be used anyway, but the problem is somehow when I use Receive Only Master the clock pulse is not generated for SPI_SCK pin. Can anyone help me understand what is going on and what I miss? I also attached the spi and main file.
Please let me know in case I need to provide more information and thank you in advance everyone!