Mode Fault<br />If the SSEL signal goes active, when the SPI block is a master, this indicates another<br />master has selected the device to be a slave. This condition is known as a mode fault.<br />When a mode fault is detected, the mode fault (MODF) bit in the status register will be<br />activated, the SPI signal drivers will be de-activated, and the SPI mode will be changed to<br />be a slave.<br />If the Px.y/SSEL/... pin is assigned the SSEL function in Pin Function Select Register 0,<br />the SSEL signal must always be inactive when the SPI controller is a master.<br /><br />((以上是LPC23XX中的一段,可否这样理解:master时,SSEL同时为输入输出口,如果数据传输没有激活时(SSEL没有输入低电平),被外部拉低了,则数据传输时发生模式错误,被迫进入slave模式。如果为master时,数据传输时ssel作为slave选择信号(或者帧同步信号)输出低电平,此时SSEL为低,数据传输不会发生模式错误。<br /><br />因为在SPI数据传输时,SSEL总是在传输前变为低,传输之后变为高。如果SPI挂接只能为SLAVE的片子的时候,MASTER的SSEL是不可能被拉低而被迫变为SLAVE的。这样理解对不对?<br />其实可以不使用这个引脚,只想同步下数据帧。))<br /><br />次问题作废,又好好看了下,SSEL只是对作为从机的一方来说的,master根本不用考虑 |
|