My question is somehow connected to hardware side of SPI(M) peripheral implementation.
When using SPIM, I am observing 3 types of situation:
-
WhenSCK pin is defined to unused, floating pin, SPI seems to be working OK(END event received)
-
When SCK pin is defined to be connected to chip (ex. external ADC), and the chip is powered on, SPI seems to be working OK (END event received).
-
When SCK pin is defined to be connected to chip (ex. external ADC), and the chip is NOT powered, I don't receive END event and my code is stuck waiting for it.
What kind of detection causes problem in situation 3? Is the current flowing from the SCK pin measured somehow? If so, why it works in situation 1? I know I can make some timeout to not be stuck in while waiting for END event, but I am just curious how that works.
best,
Wojtek
edit. Also, I observed that when I set SCK to H0H1 drive, situation 3 also works, code runs ok. Why is that so?