单片机端口设置有问题,单片机输出低电平后没有释放总线。当单片机口不输出时,将口设为高阻态。
参考下面的话。
Each device (master or slave) interfaces to the
data line via an open-drain or 3-state port. This allows each device to “release” the data line when the
device is not transmitting data so the bus is available for use by another device.
|