|Online Development Notebook > Index > U4x1 Application Notes > App3: LCD|
App3: LCD Application
Provide a program that initializes and writes information to an LCD.
This program initializes all of the I⁄O lines of the U4x1 that are used with the LCD.
The application will initialize the LCD display with a series of commands when the Init LCD button is pressed. The application can write individual LCD commands and single bytes of display data.
If text is entered into the text box, the application will copy that text to the LCD.
The U4x1 has been interfaced to 1X16, 2X16, 2X40 (and etc.) displays. The flexibility of the commands for using any port for data and any pins for the "E", "R⁄W", and "RS" lines help to interface to any HD44780 device.
Example LCD connection to U4x1:
For the schematic above, use command #10 (InitLCD) to select the right port and pins. The raw command 10-10-12-00-00-00-00-00 will select port B for the data lines to the LCD, D1 for the RW line, D0 for the RS line, and D2 for the E line.
Download all application files: (all application files)
Using the DLL for communication, rather than the raw commands, would employ calls to USBm_InitLCD, USBm_LCDCmd and USBm_LCDData (as well as port direction commands).
|Hardware: U401 USB Interface U421 USB Interface U451 USB Interface|
Programming: USBm DLL Programming Download Files
Application Notes: U4x1 Application Notes Misc Applications and Information FAQ
While every effort has been made to make sure that the information posted on this site is correct, the author can not be held liable for any damages whatsoever for losses as a result of the application of this information. Use this information at your own risk.
USBmicro can design your custom and semi-custom USB product. Email about USB design can be directed to " Robert " at usbmicro.com.
Copyright © USBmicro, L.L.C., 2002-2010