C Code Example, Including PRINTF to the LCD.
This SDCC-based LCD demo code includes a collection of "driver"
functions to access the LCD, and an example of using a custom
putchar() to route printf output to either the LCD or serial port
so you can use printf's nice number and string formatting features
on the LCD. The included "lcd_driver.c" and "lcd_driver.h" files
are intended to easily "drop into" your project, and both C-based
(easy to understand) and optimized assembly (faster) versions of
the driver are provided.
Assembly Language Example with Simple Routines
(also as a ZIP File)
- A simple program that echos whatever you type onto the display.
Includes assembly routines to print a character, print a string, move
cursor to X/Y position, clear screen, etc.
8051 Development System Circuit Board, Paul Stoffregen
http://www.pjrc.com/tech/8051/board5/lcd_example.html
Last updated: February 7, 2004
Status: work in progress, more info to come
Suggestions, comments, criticisms:
<paul@pjrc.com>