home:mbhp:module:lcd
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | home:mbhp:module:lcd [2009/04/08 04:36] (current) – created /tilted/ | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== LCD Module ====== | ||
+ | |||
+ | An LCD module isn't an MBHP module, you buy the LCD screen with the PCB attached and driver chips on-board, and that is your LCD module. Here you can find information how to use an LCD with the Midibox MBHP Core module. | ||
+ | |||
+ | See also: [[Troubleshooting LCD Displays]] | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | ====== LCD Connection ====== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | **Jim Henry wrote [[http:// | ||
+ | |||
+ | ==== Additional hints ==== | ||
+ | |||
+ | * The soldered connections to the LCD are somewhat fragile. The one pictured in my guide broke after a few weeks of use. (I just have all the boards loose as I try different configurations so I am hard on the connections.) I suggest folding the ribbon cable back onto itself about 1/2" from the soldered connections and securing the ribbon cable to the LCD's PCB to provide some mechanical support for the soldered points. I just taped the ribbon cable to the opposite edge of the PCB. I'll update the guide once I get some hours accumulated on this additional step to verify that it protects the soldered connections. //Jim Henry// | ||
+ | * So long as the operating system (MIOS) hasn't been uploaded via MIDI, but the bootloader has been burned to the chip, the LCD won't be fully initialized, | ||
+ | * If you've connected a second LCD, it won't function until an application which supports this option (i.e. MIDIbox SEQ, MIDIbox LC) has been uploaded. | ||
+ | * A " | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Character LCDs ====== | ||
+ | or CLCDs | ||
+ | |||
+ | The basic LCD display for a Midibox project is a 2x16 character LCD based on the HD44780 industrial standard from Hitachi. You can use a larger LCD, like 2x20 or 4x20, and the standard Midibox projects will just use the 2x16 characters in the top left corner. | ||
+ | |||
+ | Availability: | ||
+ | |||
+ | Connectivity: | ||
+ | |||
+ | There is an LCD interconnection test available at the [[http:// | ||
+ | |||
+ | ==== MIOS LCD Offsets ==== | ||
+ | |||
+ | Some words by TK in response to [[http:// | ||
+ | \\ | ||
+ | |||
+ | The display offsets are handled by MIOS in a way which allows to use the same cursor positions on any kind of LCD. With MIOS_LCD_YAddressSet the LCD specific cursor offsets are mapped to the MIOS specific cursor offsets.\\ | ||
+ | \\ | ||
+ | **64 characters (0x40) are reserved for each line**, up to 4 lines are (natively) supported: | ||
+ | 1st line begins at 0x00\\ | ||
+ | 2nd line begins at 0x40\\ | ||
+ | 3rd line begins at 0x80\\ | ||
+ | 4th line begins at 0xc0\\ | ||
+ | \\ | ||
+ | And these lines have to be mapped to the real address offsets of your LCD - this can normaly be found in the datasheet, the most common cases are documented in the functional description of MIOS_LCD_YAddressSet: | ||
+ | \\ | ||
+ | For a 2x40 following settings are working:\\ | ||
+ | Y0: 0x00\\ | ||
+ | Y1: 0x40\\ | ||
+ | Y2: doesn' | ||
+ | Y3: doesn' | ||
+ | \\ | ||
+ | (*) note: if a value between 0x80...0xff is specified here, it is assumed that the 3rd and 4th line is mapped to a second LCD\\ | ||
+ | \\ | ||
+ | Centering the screen just means to add additional offsets to these addresses, e.g. let's say you've a 2x40 display, but only 16 columns are used, this means that you need to add 12 to each offset:\\ | ||
+ | Y0: 0x00 + (40-16)/2\\ | ||
+ | Y1: 0x40 + (40-16)/2\\ | ||
+ | Y2: doesn' | ||
+ | Y3: doesn' | ||
+ | \\ | ||
+ | Thats how MIOS supports LCDs. \\ | ||
+ | |||
+ | ==== Character LCD Controller Chips Supported by MIDIbox ==== | ||
+ | |||
+ | [[http:// | ||
+ | \\ | ||
+ | * Epson SED1278 | ||
+ | * Hitachi HD44780 | ||
+ | * NJR NJU6408B | ||
+ | * NJR NJU6468 | ||
+ | * NJR NJU6470 | ||
+ | * Novatek NT3881D | ||
+ | * OKI MSM6222 | ||
+ | * Samsung KS0066 | ||
+ | * Samsung KS0076(b) | ||
+ | * Samsung KS0070 | ||
+ | * Samsung S6A0069 | ||
+ | * Sanyo LC7985NA | ||
+ | * Sunplus SPLC780 | ||
+ | |||
+ | Possibly: | ||
+ | |||
+ | * UM3881B UMC - I haven' | ||
+ | * Toshiba T7934 - Instruction set compatible, has extra characters in CG ROM, it shouldn' | ||
+ | * Sitronix ST7036 - Instruction set compatible, although it should, did **not** work for me; I couldn' | ||
+ | |||
+ | If your LCD has one of these chips, there are good changes to get it work. These chips have similar instruction set, data bus and timings are like original HD44780 (or faster, which shouldn' | ||
+ | |||
+ | |||
+ | ==== Connecting LCD Modules ==== | ||
+ | |||
+ | TK's LCD page contains general info on connecting an LCD: | ||
+ | |||
+ | http:// | ||
+ | ---------------------- | ||
+ | **Jim Henry wrote a superb guide about LCD soldering which is not only interesting for beginners - thanks Jim!** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | The soldered connections to the LCD are somewhat fragile. The one pictured in my guide broke after a few weeks of use. (I just have all the boards loose as I try different configurations so I am hard on the connections.) I suggest folding the ribbon cable back onto itself about 1/2" from the soldered connections and securing the ribbon cable to the LCD's PCB to provide some mechanical support for the soldered points. I just taped the ribbon cable to the opposite edge of the PCB. I'll update the guide once I get some hours accumulated on this additional step to verify that it protects the soldered connections. //Jim Henry// | ||
+ | ---------------------- | ||
+ | Additional hints: | ||
+ | So long as the operating system (MIOS) hasn't been uploaded via MIDI, the LCD won't be initialized and shows black bars at the upper line. If you don't see these bars, adjust the contrast pot. The highest contrast can be achieved with V0=0V (you can adjust this voltage with the trimpot P2). | ||
+ | |||
+ | **A message should appear on screen once MIOS is up and running.** | ||
+ | |||
+ | Note: if you've connected a second LCD, it won't function until an application which supports this option (i.e. MIDIbox SEQ, MIDIbox LC) has been uploaded. | ||
+ | |||
+ | ==== More information ==== | ||
+ | |||
+ | * [[dictionary: | ||
+ | * [[Tracing unknown LCD PINOUT]]\\ | ||
+ | * [[http:// | ||
+ | * HD44780 displays can be initially programmed to different character sets - maybe your dirt cheap surplus display will not use the language you want! Buyer beware - although this is rare.\\ | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | ====== Graphical LCDs ====== | ||
+ | or GLCDs | ||
+ | |||
+ | ==== Graphical LCD Controller Chips Supported by MIDIbox ==== | ||
+ | |||
+ | * KS0107/ | ||
+ | * T6963C | ||
+ | * [[PCD8544]] | ||
+ | |||
+ | ==== More Information ==== | ||
+ | |||
+ | * ucapps.de [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | ====== LCD Technology ====== | ||
+ | |||
+ | A particular form of video technology in portable devices, clocks, watches, and computing devices. An acronym for Liquid Crystal Display. LCD displays utilize two sheets of polarizing material with a liquid crystal solution between them. An electric current passed through the liquid causes the crystals to align so that light cannot pass through them. Each crystal, therefore, is like a shutter, either allowing light to pass through or blocking the light. In clocks and counters that use LCDs, the pattern often emulates LEDs, though LCDs are NOT diodes. Monochrome LCD images usually appear as blue or dark gray images on top of a grayish-white background. Color LCD displays use two basic techniques for producing color, passive matrix is the less expensive of the two technologies. The other technology, called thin film transistor (TFT) or active matrix, produces color images that are as sharp as traditional CRT displays, but the technology is expensive. Recent passive matrix displays using new CSTN and DSTN technologies produce sharp colors rivaling active matrix displays. Most LCD screens used in notebook computers are backlit to make them easier to read. | ||
home/mbhp/module/lcd.txt · Last modified: 2009/04/08 04:36 by /tilted/