According to the control logic of the IIC-bus serial interface in S3C2410X and the principle of communication between master and slave device, an approach was proposed to simulate the IlC-bus interface. Using the FSM to model the control process of E-2PROM, the reading and writing process of E2PROM in S3C2410X was simulated. After running the U-Boot on the simulator and calling the commands of I2CC to read and write the E2PROM, the correctness of the approach proposed was verified.%根据S3C2410X处理器内I2C总线接口的控制逻辑和I2C总线主从设备的通讯原理,提出了一种仿真I2C总线接口的方法,实现嵌入式仿真器中I2C模块的仿真.利用FSM建模方法对E2PROM芯片的控制过程进行建模,根据此模型仿真了S3C2410X对E2PROM的读写过程.根据U-Boot在仿真器上的运行,通过调用U-Boot中I2C总线控制命令,完成对E2PROM的读写,验证所实现I2C仿真模块的正确性.
展开▼