VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: Re: Display connection


Author:
PicMaster
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 05:09:01 05/10/03 Sat
In reply to: Per Medin 's message, "Display connection" on 13:00:04 05/08/03 Thu

:) I also have downloaded the JAL packages but I don't like languages like Pascal... I like PASCAL!!! So my opinion is that Pas2PIC Compiler is better of the forementioned JAL in the language compatibility, and some day it'll be the best :) So...
There are several ways to connect the LCD display based on Hitachi HD44780 to pic microcontroller:
- bidirectional 8-bit (8 i/o data lines and 3 control ouput lines);
- unidirectional 8-bit (8 output data lines and 3 control output lines);
- bidirectional 4-bit (4 i/o data lines and 3 control ouput lines);
- unidirectional 4-bit (4 output data lines and 3 control ouput lines).

If you've read the HD44780 Howto :) (or .pdf) you may noticed that the display can work in woth 4- and 8-bit modes. The mode is selected in by sending special command sequence to the LCD unit after PowerOn or when you Initialize it. So this means the following: 7-lines for 4-bit mode (excluding Vcc, Gnd, Contrast and BackLight lines which aren't mcu controlled usually :) or 11-lines for 8-bit mode. The other thing that deserves mentioning is that the LCD unit has no need of bidirectional communication with it - you may send a command to it and wait at least the time specified by the data sheet. This isn't the fastest implementation (if you are aiming in fast text writing to lcd), but is the simplest to implement - when I first tried to communicate with LCD and write some fun texts to it, I decided to connect it to my pc's LPT port, and after cleaning the things to move it to pic controller. So, I wish you not to make fire and smoke :) and if you are interested in HD44780 compatible controller data sheet or a schematic for connecting it to a pc (the pic schematic is just the same!) drop me a line!

Best Regards,
Nikolai Dimitrov a.k.a. PicMaster
Bulgaria

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: Yet Another Display connectionPicMaster05:21:37 05/10/03 Sat
    Re: Yet Another Display connectionPer Medin06:16:14 05/10/03 Sat


    Post a message:
    This forum requires an account to post.
    [ Create Account ]
    [ Login ]
    [ Contact Forum Admin ]


    Forum timezone: GMT-8
    VF Version: 3.00b, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.