Does SS clear MCU SPI FSM/shift counters in slave mode

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

Does SS clear MCU SPI FSM/shift counters in slave mode

1,299件の閲覧回数
asdf_gone
Contributor I

Hi all, I am wondering if setting SS high while SPI slv in these MCUs (MC9S12ZVMRM, MC68HC908GZ60) returning a read data would reset the SPI slv logics such as FSM and shift, so the next transaction could function correctly. 

In MC9S12ZVMRM, it didn't list that as an error case, but in MC68HC908GZ60, it treats that as an erronous situation, but the manual didn't quite explain what would happen to the SPI slv logics. 

My assumption is that SPI slv generally would reset its logics after CS is high, but I would like to make sure with yall. 

0 件の賞賛
返信
4 返答(返信)

1,242件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

Yes SS resets the status of the slave.

Best regards, Ladislav

1,209件の閲覧回数
asdf_gone
Contributor I
The status includes the shift register counter for the slave output, right? I know it is a bit silly to ask, but have you guys tested this error case?
0 件の賞賛
返信

1,145件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

yes there is a counter. The peripheral structure is an IP block and should be used as black box. Of course, the number of pulses must be calculated and action must be done if there is an issue.

Best regards,

Ladislav

0 件の賞賛
返信

1,254件の閲覧回数
asdf_gone
Contributor I

Any help would be greatly appreciated, thanks

0 件の賞賛
返信