Master-Slave implementation between a GB60 and a GT16 MCU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Master-Slave implementation between a GB60 and a GT16 MCU

1,798件の閲覧回数
jccastaneda
Contributor I
We would like to implement a Master-Slave system between a GB60 and a GT16 MCU;  what would be the best serial channel (SPI or SCI)?
 
Thanks.
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

782件の閲覧回数
peg
Senior Contributor IV
Hi jccastaneda,
 
That would depend a lot on what you are trying to do... But the biggest problem with SPI is that the slave cannot initiate a message on its own.
 
0 件の賞賛
返信

782件の閲覧回数
bigmac
Specialist III
Hello,
 
The main advantage that SPI has, compared with SCI, is that generally the data transfer will be much faster.  But this assumes that the two MCU are typically located on the same board, or perhaps on different boards within the same equipment.
 
The primary advantage of SCI is that it will usually consume less pins on the MCU, and transmission distances can be much greater with the use of buffers (RS232 or RS485).
 
As Peg explained, the SPI slave cannot initiate a data transfer, so you might require an additional handshake connection between the two devices (in addition to slave select SS), for the slave to signal the master that it has data to send.
 
Another approach is to use a dual SPI master arrangement.  Here, each end of the link would default to being a slave device, to be able to receive any data sent (and return response data).  However, operation would revert to master operation when either end requires to initiate the sending of data.
 
Whether you use SPI or SCI you will likely need a basic communications protocol.  This would be devised to suit the type of data being transferred.
 
Regards,
Mac
 
0 件の賞賛
返信