3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Converting Attiny45 to a Atmel168?

Has anyone replaced an ATTiny45 with an Atmega168 in order to have addtional I'O's?

1 answer
May 14, 2009. 12:38 PMgmoon says:
No, I haven't tried it.

Do you have the source code for the ATtiny? If so, can you substitute a different AVR for the ATtiny45? It's very likely you can... with caveats.

If you don't have the source, the object code will NOT work.

Frankly, the ATtiny and ATmega series have quite a few differences internally. Not enough to prevent attempting the substitution, but the default clock, internal registers and such vary.

But why would you use a 16K chip to replace a 4K chip, if the # of I/O lines were the only issue? Why not use a cheaper ATmega48 or ATmega88?

That's like saying: "Can I replace my MiniCooper with a Cadillac Escalade?" The answer is maybe--if you can afford the extra expense, and if it's not too big for the job, physically.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!