serial interface with 2X16 LCD display

  
The 040904C version of the code has a larger UART receive buffer and supports two pushbuttons that send either and ASCII `R` ($52) or an ASCII carriage Something to keep in mind when using AVR controllers that support 16 bit addressing(specifically, the ATTINY2313/AT90S2313 only has an 8 bit stack pointer, while some others have 16 bit stack pointers) found by Rafael A. Alcocer has been taken into account in version ATTINY2313AT90S2313 version 030929A as well as being incorporated into the ATMEGA8515/AT90S8515 version. This code should be able to run on the ATTINY2313 without modifications, as well as the other AVR controllers with appropriate modifications for things such as clock speed and I/O port assignments.
serial interface with 2X16 LCD display - schematic

The Truly MTC-C162DPLY-2N-LCD is an inexpensive two line LCD display and seems to be ideal as a display for some of my projects that have serial data outputs. Before building this interface, I used to either have a computer on the workbench to serve as a terminal or run an RS-232 cable from the desk with the computer on it to the workbench. When I saw the backlit version of displays being offered for less than US$6.00, I thought "Why not?". The Truly display uses the Samsung KS0070B controller, which is (reportedly) compatible with the Hitachi HD44780 controller. I found a set of initialization and control routines that were written and placed on the on the web by Richard Hosking which only required a minor adjustment to get the Truly display working. Mr. Hosking's code was used in the assembler code that was originally posted and is in the ATMega8515 version. Mr. Hosking's code served as a model for the .include file driver that is used in the current AT90S2313 version. The main minor adjustment I mentioned in the paragraph above was the addition of a second "Function Set" command that was needed to get the Truly displays to work. Mr. Peter Coppens has reported that he had to remove the second "Function Set" operation in the initialization routine in the Truly LCD Include file. This is noted in the include file by labeling the two lines with the comment "(OMIT FOR HITACHI)". the affected code fragment is shown...



Leave Comment

characters left:

New Circuits

.