摘要
介绍了用C51软件模拟实现I2C通讯接口的方法。分析了I2C通讯的工作原理及时序要求,并介绍了程序核心代码。此方法应用到停车场门禁系统中,在51单片机与E2PROM芯片AT24C128和语音模块XF-S4240的通讯中,取得了满意的效果。该方法也适用于其他MCU模拟扩展I2C接口的场合。
The method using C51 software imitate to realize the I2C communication interface is presented. I2C communication operating principle and time sequence is analysed,as well as the core program is introduced. Using this method on entrance guard system in parking lot, communication results achived satisfactory in MCS51, E2PROM AT24C128 and Speech module XF-S4240. This method is also applicable to other I2C interface to MCU expansion of the occasion.
出处
《自动化与仪器仪表》
2014年第3期74-75,78,共3页
Automation & Instrumentation