如何通过C#和rs232(com1)端口进入i2c eeprom [英] How do I get into i2c eeprom via C# and rs232 (com1) port
本文介绍了如何通过C#和rs232(com1)端口进入i2c eeprom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试读取和写入芯片,这取决于i2c协议
它的传真页面计数器的e eromrom我很少尝试使用ponyprog和芯片重新设计,但我也无法想象任何解决方案
我的尝试:
c#
i2c驱动程序
microsoft.spot.hardware;
解决方案
我会使用微控制器(MCU
)。那是(虚拟的,通过USB
)串行通信(UART
)PC
和MCU
然后I2C
MCU之间的通信
和EEPROM
。
使用Arduino
,会非常简单(参见,实例读取和写入串行EEPROM - learn.sparkfun.com [除了解决方案1,您还可以使用PC I2C接口。它们非常便宜并且具有USB接口,通常作为虚拟COM端口访问。这样的接口应该提供一个带有库的SDK,当使用PInvoke时也可以与C#一起使用。
如果你只是想在不使用你的情况下读/写EEPROM自己的代码,您可以使用PonyProg,但您需要I2C接口硬件,如 PonyProg - 串行设备编程器 [ ^ ]这需要一个并行的LPT端口,该端口不再出现在最近的PC系统中。
i'm trying to read and write in chip thats depends on i2c protocol
its un eeprom for fax page counter i tryed hardly with ponyprog and chip resestter but also i can't fegure out any solution
What I have tried:
c#
i2c driver
microsoft.spot.hardware ;解决方案I would use a microcontroller (MCU
) for that. That is (virtual, viaUSB
) serial communication (UART
) betweenPC
andMCU
and thenI2C
communication betweenMCU
andEEPROM
.
UsingArduino
, would make that very simple (see, for instance Reading and Writing Serial EEPROMs - learn.sparkfun.com[^]).
In addition to solution 1 you can also use a PC I2C interface. These are quite cheap and have an USB interface which is usually accessed as virtual COM port. Such interfaces should provide an SDK with a library which can be also used with C# when using PInvoke.
If you just want to read / write to the EEPROM without using your own code, you can use PonyProg but you need the I2C interface hardware as described at PonyProg - Serial device programmer[^] which requires a parallel LPT port which is no longer present with recent PC systems.
这篇关于如何通过C#和rs232(com1)端口进入i2c eeprom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文