Syncronous/Asyncronous SPI??
Posted: Tue Aug 07, 2012 8:39 pm
Dear all,
I'm a little bit confused about the SPI API. Reading the documentation there are some function used for a syncronous communication and others for asyncronous one.
I know that that the SPI protocol has a dedicate clock line so it is intrinsically syncronous.
So, what does it means ASYNCRONOUS in this case?
I'm trying to establish a monodirectional communication between two microcontrollers (STM32F103RBT6) using spi. This is my idea: the first one (master) generates the clock while the second one (the slave) use this clock to read the data. The two MOSI pins should be connected together (the clock pins as well).
Is it correct?
Which api functions should I use in this case in both micro?
Thanks in advance
Roberto
I'm a little bit confused about the SPI API. Reading the documentation there are some function used for a syncronous communication and others for asyncronous one.
I know that that the SPI protocol has a dedicate clock line so it is intrinsically syncronous.
So, what does it means ASYNCRONOUS in this case?
I'm trying to establish a monodirectional communication between two microcontrollers (STM32F103RBT6) using spi. This is my idea: the first one (master) generates the clock while the second one (the slave) use this clock to read the data. The two MOSI pins should be connected together (the clock pins as well).
Is it correct?
Which api functions should I use in this case in both micro?
Thanks in advance
Roberto