Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 7th May 2008, 03:12 PM   (permalink)
Experienced Member
joshua17ss2 is on a distinguished road
Default Blinking my very first led, LCD ?

I recieved my new pickit2 in the mail the other day and hooked it up to my protoboard, and was able to blink my very first led with the Pic 18f2550, There really is quite a sense of accomplishment in that small task
Now im gonna shoot for displaying text on an lcd and accepting inputs from buttons,


I was wondering, i have a 4x16 lcd display, i know that 2x16 displays get connected up with 4 wires for the data and a few other for CLS, R/S, E, ect...
is there a different connection setting for a 4 x 16, does it require more wires or does the lcd driver handel that aspect of it?

thanks
josh
joshua17ss2 is offline   Reply With Quote
Old 7th May 2008, 03:18 PM   (permalink)
Experienced Member
 
futz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to all
Default

Quote:
Originally Posted by joshua17ss2
is there a different connection setting for a 4 x 16, does it require more wires or does the lcd driver handel that aspect of it?
Same connections. They pretty much all use the same driver chip, and internally are the same display. The different display widths and number of lines are just "windows" onto the actual display, which is the same size in all 44780 driven LCDs. Just imagine you're looking thru a small window onto a larger display. You can only see what's under the window at any given time, but you can move the window to see the rest with the right commands. Or you can just tell the LCD to print stuff in the part of the display that's under the window.

Confused yet? You will be! But then it'll make sense.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is online now   Reply With Quote
Old 7th May 2008, 03:25 PM   (permalink)
Experienced Member
joshua17ss2 is on a distinguished road
Default

So the only change between the small lcd and the larger a line in the code right, WriteAt(1,1,"Test") so i would just change the 1,1 to what ever space i need to write at?
joshua17ss2 is offline   Reply With Quote
Old 7th May 2008, 03:36 PM   (permalink)
Experienced Member
 
futz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to all
Default

Quote:
Originally Posted by joshua17ss2
So the only change between the small lcd and the larger a line in the code right, WriteAt(1,1,"Test") so i would just change the 1,1 to what ever space i need to write at?
Line 1 and line 2 (I think) always start at the same address, so if you want to print to line 1 you tell it to go to that address and print away. If you exceed the width of the display it prints into undisplayed memory. Once you exceed the undisplayed width of line 1 (40 characters? - can't remember) then the text will show up in line 2.

For an excellent guide, get these two PDFs from EPE:
http://www.epemag.wimborne.co.uk/lcd1.pdf
http://www.epemag.wimborne.co.uk/lcd2.pdf
They're a must-read if you're learning LCDs.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 7th May 2008 at 03:48 PM.
futz is online now   Reply With Quote
Old 8th May 2008, 04:59 AM   (permalink)
Experienced Member
 
donniedj has a spectacular aura about
Default

Quote:
Originally Posted by futz
For an excellent guide, get these two PDFs from EPE:
http://www.epemag.wimborne.co.uk/lcd1.pdf
http://www.epemag.wimborne.co.uk/lcd2.pdf
They're a must-read if you're learning LCDs.

Forum admin should force those links under every signature whether it be wanted or not. Just to emphasize the truth of "They're a must-read..."

Let me log out know before I piss to many people off.. again
__________________
I can still log in! Delete my account and all my post now.
donniedj is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Blinking an LED repeatedly des_a Electronic Projects Design/Ideas/Reviews 9 30th April 2008 04:56 PM
LCD 2x16 Demo for the Unicorn (18F4550) blueroomelectronics Micro Controllers 20 11th April 2008 08:08 PM
need help... imisendo_4036 Micro Controllers 0 20th February 2008 01:14 AM
solar blinking LED HELP team_nightstalker Electronic Projects Design/Ideas/Reviews 33 26th October 2007 05:04 PM
PIC16F628A LCD problems. HerbertMunch Micro Controllers 17 2nd October 2007 09:19 AM



All times are GMT. The time now is 05:37 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.