|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
motorala spi总线协议中提到,在SPIF或SPTEF,有效的情况下,如果要自动清零,必须先要读取SPISR(SPI STATUS REGISTER),为什么这里非要这么一步?求高手指点。。
SPTEF — SPI Transmit Empty Interrupt Flag
If set, this bit indicates that the transmit data register is empty. To clear this bit and place data into the
transmit data register, SPISR has to be read with SPTEF=1, followed by a write to SPIDR. Any write
to the SPI Data Register without reading SPTEF=1, is effectively ignored. |
|