Synchronous and Asynchronous(in hardware communication)
Synchronous: different hardwares must use the same clock signal. For example, SPI protocol require the Master and Slave have to use the same clock signal which comes from Master.
Asynchronous: different hardwares can use different clock signal( the baudrate should be the same). For example, UART transmits data with 8 bits which contains start bit and/or stop bit used to verify if the data transmit is correct because of the different clocks they use. Please refer to the artile on 1st April 2011.
Serial Interfaces
SPI(Serial Peripheral Interface) is a serial interface standard. Basically, SPI need four pins which are: cs, clk, so and si. And most of SPI use Master-Slave mode to work.
cs: used to select the Slave chip. There is nothing to say about this part.
so: used to output bit stream. It works with clk pin to output bit at the positive edge of clk signal.
si: used to get bit stream. It also works with clk pin to get bit at the negtive edge of clk signal.
clk: used to provide synchronous signal which is created by the master chip.
So SPI can send and receive data at the same clk.
Note: Remember what counters is mechanism, maybe different companies have different implementation (maybe capture send at negtive edge of clk, receive data at positive edge of clk). Another thing you need to notice is that SPI is a protocol.
Comments
Post a Comment