This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430模拟I2C技巧



众所周知,实现I2C总线协议主要是控制SDASCL使其产生协议所规定各种时序。要控制P6.7P6.6产生I2C总线要求各种时序,就要频繁使用到输入、输出以及方向寄存器。而要减少代码量,简化接口控制,最直接方法就是减少有关寄存器操作次数。要实现这一想法需要软硬件结合,充分利用I/O口特点以及I2C总线协议特点。