atiny13 to atiny25 FAQ

Mar 26, 2023 Last reply: 3 years ago 7 Replies

I'm in the process of shfiting a board using Atmel's atiny13 to the atiny25. The at25 is causing lots of trouble. First hassle was getting the at25 to accept the "program enable" command. There was no response. The data sheet states that an external clock signal is not required if the device is clocked by one of the internal oscillators. Presuming that the internal clock(s) was not connected, a 2mc signal was put on the clock input pin. Now the "program enable" command was accepted! The "write fuse" command looks proper and the at25 returns the anticipated data but the "read fuse" command returns a 0 - not matching what was written. The at25 appears to be fabricated by a different and newer process than the at13 which leaves lots of room for changes and errors. Anyone familar with the at25, or other devices made on the newer process, have any suggestions for getting this working?



Hul


One of the protection bits set so that you can't read the fuses. Never had any problems with AT25 several years ago..

I assume you are programming with 1-wire reset line. Never require external clock, but good clean programming clock/signal.

Yes, definitely try to clear the protection fuse.

but afaiu you can set the fuses so the internal clock is very slow and a programmer will only work when running very slow

Yes, a good slow programmer would be good enough. I did program some AVR with another slow AVR.

Along the lines you suggest, I put the "chiperase" command first after the program enable command and the write fuse commands worked after that. The at25 isn't being programmed properly yet but it looks like the normal detail adjustment thats needed.

Hul

TTman snipped-for-privacy@gmail.com wrote:

Ed, with your comment about a slow programmer in mind, I set a "go slow" option in this programmer. Just in case.

Hul

Ed Lee snipped-for-privacy@gmail.com wrote:

Also credit Lasse for pointing it out first.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required