GithubHelp home page GithubHelp logo

crmaykish / at28c-eeprom-programmer-arduino Goto Github PK

View Code? Open in Web Editor NEW
41.0 3.0 10.0 391 KB

Programming the AT28C64B or AT28C256 EEPROM chip with an Arduino Mega

License: MIT License

C++ 51.93% Python 48.07%
arduino eeprom-programmer eeprom

at28c-eeprom-programmer-arduino's People

Contributors

crmaykish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

at28c-eeprom-programmer-arduino's Issues

Not using -l and -o in the python tool throws TypeError: 'NoneType' object is not subscriptable

Hello!

Those -l and -o options, are not optional!

File "/home/esalgado/Downloads/AT28C-EEPROM-Programmer-Arduino/at28c_programmer.py", line 84, in main str(addr - args.offset[0]) + " / " + str(len(contents))) TypeError: 'NoneType' object is not subscriptable

I needed to add the -l with the file size (-l 6374 ) and -o 0 for it to write data. It wrote the data perfectly.

Otherwise, excellent tool! I wanted to extend this to program AT29 chips, maybe it is as easy as adding some extra pins!! :)

Writing to EEPROM after every Arduino startup (even when reading or power up)

The code for the programmer for the Arduino contains a serious bug that may cause random EEPROM writes every time it starts communicating with the board. Even when reading from the EEPROM .
In a typical Mega Arduino board, every time the at28c_programmer.py command is run and communication begins, the Arduino is reset and the setup function is executed.
Unfortunatelly the initialization sequence of control signals begins with setting the OE, WE, CS lines as output, and only later are they set to a high state.

Execution of functions

pinMode(OUTPUT_ENABLE, OUTPUT);
pinMode(WRITE_ENABLE, OUTPUT);
pinMode(CHIP_ENABLE, OUTPUT);

causes the outputs of the Arduino to go LOW value for a while, which can cause random EEPROM writes.
On my chips, mostly random values appear in the first memory cells.

In order to prevent this situation, I changed the code to

pinMode(CHIP_ENABLE, OUTPUT);
digitalWrite(CHIP_ENABLE, HIGH);
pinMode(OUTPUT_ENABLE, OUTPUT);
digitalWrite(OUTPUT_ENABLE, HIGH);  
pinMode(WRITE_ENABLE, OUTPUT);
digitalWrite(WRITE_ENABLE, HIGH);

It prevented accidental writes.
These writes occurred every time the Arduino was reset, such as when the power was turned on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.