- Discrete LEDs
- Dot/Bar LEDs
- Matrix LEDs
- 7-Seg LEDs
- Serial -- Software
- Serial -- Hardware
- RS-232 via the MAX3232
- I2C -- EEPROM
- I2C -- DS1307 Real Time Clock
- 1-Wire -- DS18B20, Powered, Single-Drop
- 1-Wire -- DS18B20, Powered, Multi-Drop
- 1-Wire -- DS18B20, Parasitic, Multi-Drop
- TI Link Protocol -- Calculator Demo
- Infrared Communication
- MIDI -- Output Demo
- MIDI -- Input Demo
- MIDI to Analog Synth
Text LCD -- Homebrew Code
Here's an alternative approach to driving a text type LCD with homebrew code. In the previous exercise, we saw how to use PMP's built-in unit which has the advantage of operating at a higher level. That is, you can use many of the Pascal printing commands, data types and formatting controls that you already know. The disadvantage lies in the amount of program space consumed.
But in this new tack, everything is accessible at a lower (and more powerful) level. Even better is that the code decreases in size dramatically, by a factor of two or three.
The circuit arrangement is the same as before:
Be sure to study the source code carefully. I've commented the hell out of it for your learning experience. You'll note that every LCD command is available, things like scrolling, blinking, cursor control, print direction, etc. The program demonstrates all of these.
Click to get the source code.
Click to get the schematic PDF.
Next Project: Text LCD -- Two Wire