command-tab / ch341eeprom

A libusb based programming tool for 24Cxx serial EEPROMs using the WinChipHead CH341A IC
GNU General Public License v3.0
149 stars 58 forks source link

Adds the --chip-select feature to specify the part of the I2C address… #19

Closed Juul closed 5 months ago

Juul commented 5 months ago

… modified by the EEPROM chip select pins

Juul commented 5 months ago

This is important if you're trying to communicate with an EEPROM in-circuit that has its chip select pins set to something other than all zeroes. I've tested that this works for both reading and writing with a Microchip 24LC256.

Juul commented 5 months ago

Alright, I realized I broke functionality for EEPROMS that don't use exactly one or two bytes of addressing. Unfortunately I don't have any of these EEPROMs sitting around to test with but I read the datasheet for a 24C16 and a 24C1024 and I think I fixed the issue.