![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Sorry twitchy, I'm having ADSL problems at the moment, and I accidently deleted your post instead of approving it!, so I'm re-posting it for you - moderator.
I want to use pic16f877 with a parallel lcd display (those based on hd44780). I use a schematic very similar to this one : http://img175.imageshack.us/img175/210/lcdpicpy5.jpg , as you can see the pic is connected directly to the display pins. A friend argued with me, that i needed some current limiting resistors in order for the lcd to work , yet i saw quite a few schematics using that kind of LCD in which the PIC was wired directly to the LCD. I suppose the controller integrated in the lcd is fine with those kind of currents, but i still wonder, do i need any resistors to limit the current in my case ? Also can you suggest a parallel lcd with a nice datasheet, that has some electrical details about the display, most of the stuff i found only has physical dimensions and nothing else ? |
|
|
|
|
|
|
(permalink) |
|
Bad practice to reply to your own post! - but it wasn't really my post
Check my tutorials twitchy, they show how to connect an LCD to a PIC, and give full working source code - it's fast, it's reliable, and it's in use by many users all round the world. You don't need any current limiting resistors or anything because it's a simple logic connection, nothing else is required - no current is involved, at least none worth mentioning!. |
|
|
|
|
|
|
(permalink) |
|
Hi,
I have never used LCD display before. I see most of the design is using 4 bit, so 4 pins of the LCD display are not used. From Nigel's tutorial, if I have enough output pin and wish to use 8 bit, what I don't need to do is sending the upper 4 bits followed by the lower 4 bits, right? Besides, the hex table in the tutorial, is it the hexadecimal representation of the character of the LCD display? Just started to learn and will get one after my final exam Thanks
__________________
Superman returns..
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Electrical characteristics of 44780-based LCD's can be found in the datasheet of the controller. Search in Google for "HD44780 datasheet" and it will give you plenty of results on this.
|
|
|
|
|
|
|
(permalink) |
|
A bit OT but Nigel, what is the point in 8 bit data for LCD's? Why is it used now days. As you said, it gives no speed advantage (only very little) and takes almost double the pins on the controller.
__________________
Need Help? Press F1 If that doesn\'t help you, ask me... I might know better. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Certainly when I originally wrote my LCD routines I intitially wrote them as 8 bit, until I actually managed to get a working display - then I converted it to 4 bit mode. 8 bit is certainly slightly easier to write, but it's not a very practical solution. |
||
|
|
|
|
|
(permalink) |
|
As I know, the character can be created by the user, I don't remember where but I've read this somewhere.
From my understanding, the program codes for 4 bits and 8 bits have only very little difference. Besides, user need to call the LCD command only if there is any changes to the display.
__________________
Superman returns..
|
|
|
|
|
|
|
(permalink) |
|
Thanks for the re-posting, i thought i did something wrong when posting
|
|
|
|
|
|
|
(permalink) |
|
I've seen a few LCD displays that use a 3.3 volt interface - but these are very few and far between.
All the HD44780 I've ever bought and used have been 5v - I think its some of the OLED displays that seem to run on weird voltages. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
L.Chung |
||
|
|
|
|
|
(permalink) | |
|
Quote:
You might suggest he trys reading the manufacturers datasheets?. |
||
|
|
|
|
|
(permalink) |
|
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
It uses the HD66717 which is not hard to use.
The page here has a simplified instructions on how to talk to it. EDIT: IIRC I used a modified version of the HD44780 code to interface to it. Changed the init section and 4 to 8 bits. Not exactly sure about the details. Once I was sure it worked I had the class write the interface code from scratch. Was not a problem.
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) Last edited by 3v0; 18th May 2007 at 09:49 AM. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| 89c4051 4-bit controlled LCD sporadic screwup | Pax Writer | Micro Controllers | 7 | 26th April 2007 05:58 AM |
| To Parallel Or Not To Parallel | ScuzZ | General Electronics Chat | 5 | 28th January 2007 02:28 PM |
| PIC 2 PC: Parallel (Port) Read | Electrix | Micro Controllers | 8 | 31st July 2005 04:23 PM |
| USB to Parallel HELP! PLZ! | demestav | General Electronics Chat | 11 | 12th April 2005 11:44 PM |
| Parallel Flash with PIC16 | Eric Koh | Micro Controllers | 1 | 3rd June 2004 06:25 PM |