Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 03, 2025, 09:52:17 21:52


Login with username, password and session length


Pages: [1]
Print
Author Topic: 4 or 8 interface?  (Read 15571 times)
0 Members and 1 Guest are viewing this topic.
arash
Active Member
***
Offline Offline

Posts: 111

Thank You
-Given: 2
-Receive: 0


« on: December 07, 2005, 11:51:40 11:51 »

What's diffrent between  4 and 8 interface for lcd?
Logged
meax98
Active Member
***
Offline Offline

Posts: 167

Thank You
-Given: 1376
-Receive: 52


« Reply #1 on: December 07, 2005, 01:24:55 13:24 »

1. The difference between 4 bit and 8 bit operation is that data is sent out as nibbles instead of as one byte.
2. D3-D0 are not used on the LCD when the module is operated in 4-bit mode and D7-D4 are used to transfer
nibbles to/from the LCD module. Note: D7 is the MSB.
3. Commands and data are still 8 bits long, but are transferred as mentioned above as two 4-bit nibbles on data
bus lines D7:4.
3. The most significant nibble should be transferred first, followed by the least significant nibble.
 
You can choose one mode or other. If you use 8-bit mode, than you need more pins (lines), but it's more quickly, then using 4-bit mode.
« Last Edit: December 07, 2005, 01:29:35 13:29 by meax98 » Logged
Parmin
Hero Member
*****
Offline Offline

Posts: 582

Thank You
-Given: 497
-Receive: 133


Very Wise (and grouchy) Old Man


« Reply #2 on: December 07, 2005, 10:29:20 22:29 »

4 bit op use longer codes but less pinout. It would also increase the processing time coz it got to send the infos twice in nibble size rather than once in byte.

If you are using a small uP, your pin usage are at premium, you may want to use the 4 bit op.  If you are not limited by pin nos, you should use the 8 bit op because it is more efficient.

Your PCB wiring etc may also determine the type of op you may want to use.

Smiley
Logged

If I have said something that offends you, please let me know, so I can say it again later.
Timbo
Guest
« Reply #3 on: December 12, 2005, 12:21:39 00:21 »

Not in disagreement with anyone here but I haven't found any reason to use 8 bits, even at 4 Mhz the LCD can update faster than you can see, not to mention 20Mhz even a 4 line 20 char text lcd updates so fast that any quicker would be a blur. I suppose there is the exception but I haven't found an application yet that using all 8 bits would really get me much of anything except burning up 4 more I/O lines on my PIC. - My 2 cents  : )
Logged
Parmin
Hero Member
*****
Offline Offline

Posts: 582

Thank You
-Given: 497
-Receive: 133


Very Wise (and grouchy) Old Man


« Reply #4 on: December 12, 2005, 05:11:26 05:11 »

Dude,
The 4 bit data breakout requires more lines than the 8 bit ones in program.  Maybe not important if you got plenty of space. but in many jobs, programming space is at premium.  Then the 8 bit lines would save you a few words that may be crucial. Smiley
 
LCD update IS faster than your eye can see, but the processor processing time are shared for the display and other stuff.  Ergo, 8 bit is faster to transfer = processor got more time to do other stuff.
 
Then again just my 2 peso, can I swap them with your cents?  Cheesy
Logged

If I have said something that offends you, please let me know, so I can say it again later.
meax98
Active Member
***
Offline Offline

Posts: 167

Thank You
-Given: 1376
-Receive: 52


« Reply #5 on: December 13, 2005, 08:42:39 08:42 »

Paramin is right. But if you use uC for home projects and simple automation processes you won't see much differences between 4 and 8 bit LCD mode.
So Timbo, you can use 4-bit connection to LCD and forget 8-bit story.
Logged
Acme
Inactive

 Muted
Offline Offline

Posts: 6

Thank You
-Given: 3
-Receive: 2


« Reply #6 on: January 30, 2006, 05:54:34 17:54 »

Hi, I'm looking for an 8-bit initialization routine for Pic-C PCWH.  I've look everywhere but could not find any routines for C language.  Could someone here provide me a working routine for 8 bits Huh  I have pleanty for 4 bit but no 8 bit.
 
Thank's
 
Acme
 
P.S.  Please send me private message
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #7 on: January 30, 2006, 05:59:55 17:59 »

Hi

You can find everything you need on CCS forum, its very good, and there are many good guys at C there.

Good luck
Logged
stevetwc
Junior Member
**
Offline Offline

Posts: 95

Thank You
-Given: 5
-Receive: 1


« Reply #8 on: January 31, 2006, 08:04:28 20:04 »

Hi acme, please take a look at the attached file. It is best to open the file using latest version of MPLAB IDE.
 
Regards.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC