Listing 1 is the fully commented assembler source code for the LCD232 module; the main routine consists of the display of a 2?sec-delay “splash screen,” and then it enters an endless loop to wait for 1 byte as a command for the LCD, a maximum of 16 bytes as data for the LCD, and an ASCII zero. For test purposes wit
h an external PIC microcontroller embedded system, Listing 2 is a simple assembler source code, which sends another splash screen.
References
Raynus, Abel, “Squeeze extra outputs from a pin-limited microcontroller,” EDN, Aug 4, 2005, pg 96.
“Microcontroller provides low-cost analog-to-digital conversion, drives seven-segment displays,” EDN, May 10, 2007, pg 80.
Niven, Rex, “RC lowpass filter expands microcomputer’s output port,” EDN, June 21, 2007, pg 74.
英文原文地址:http://www.edn.com/article/CA6505569.html