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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,251 次查看
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,194 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

Yes SS resets the status of the slave.

Best regards, Ladislav

1,161 次查看
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,097 次查看
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,206 次查看
asdf_gone
Contributor I

Any help would be greatly appreciated, thanks

0 项奖励
回复