ATTiny2313 controlling a HD44780 LCD via AVR-GCC

in AVR, code, LCD by the machinegeek | 1 comment

We came across Scott Harden’s brief article describing how to control an HD44780 LCD using an Attiny2313. After a number of unsuccessful attempts with other code he found this LCD library written by Martin Thomas for use with AVR-GCC. With a few mods to the code Scott produced the above results controlling his 2×20 LCD in 4-bit mode. The code provides for scrolling and wrapping and can even display Japanese characters. A handy tip for ATTiny2313 users.

This entry was posted in AVR, code, LCD and tagged , , .

Comments

  1. Bill Morrison says:

    Can anybody correctly compile this code? I’ve tried and tried and I get way too many errors. I’d like to get the hex file for an ATtiny2313 so I can play around with this.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.