- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
CY8CMBR3108を使用して近接センサを1個実装しています。
データシート(文書番号: 001-92218 Rev. *C)の32頁「読み出し動作」について教えて下さい。
最終読み出しデータに対し、ホストはNAKを返すように記載がありますが、
NAKを返さない場合(ACK応答)は何が起きますか?
解決済! 解決策の投稿を見る。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Hi,
While Master is reading the data from the slave, at the end of every byte of data, the master sends an ACK to the slave, letting the slave know that it is ready for more data. When the master has received the number of bytes it is expecting, it sends a NACK, signaling to the slave to halt communications and release the bus. The master follows this up with a STOP condition.
So the host should send NACK as per the I2C protocol. Else the protocol is violated and the slave may result in going to undetermined state.
Thanks
Ganesh
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Hi,
While Master is reading the data from the slave, at the end of every byte of data, the master sends an ACK to the slave, letting the slave know that it is ready for more data. When the master has received the number of bytes it is expecting, it sends a NACK, signaling to the slave to halt communications and release the bus. The master follows this up with a STOP condition.
So the host should send NACK as per the I2C protocol. Else the protocol is violated and the slave may result in going to undetermined state.
Thanks
Ganesh
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- Permalink
- 印刷
- 不適切なコンテンツを報告
Thank you.
I understand.