Join us now! Forgot Your Password? Forgot your Username? Haven't received registration validation E-mail?
|Published (Last):||8 January 2006|
|PDF File Size:||20.16 Mb|
|ePub File Size:||5.80 Mb|
|Price:||Free* [*Free Regsitration Required]|
Join us now! Forgot Your Password? Forgot your Username? Haven't received registration validation E-mail? User Control Panel Log out. Forums Posts Latest Posts. View More. Recent Blog Posts. Unread PMs. Forum Themes Elegant Mobile. Essentials Only Full Version. Super Member. LCD Control pins. The LCD doens not operate like this but if I move the bits to a different port it works. I looked at the spec sheet and it said that Port E was a digital input output port but cant get any functions to work on these pins.
Any help is appreciated Cheers Aaron. Did you configure pins on port E as output? I use a lcd with pic18f just like you and microchip C compiler. When I wrote the lcd software I was in trouble too with port E, because I configured it like input, so they didn't change state. I hope this helps Blusky. Any other ideas what is wrong. Senior Member. I think the better thing is to create your own lcd functions using a generic lcd datasheet.
Hello PIC engineers. I'm pretty sure it's a predecessor to a 16F84 with 4 bit transfer. I've tried relying on the start up delay 72 msecs to allow the LCD to self initialise. I usually get a series of faint grey dots in a grid where the characters are displayed.
I suspect there may well be a simple explanation but I'm yet to find it. Any help will be most appreciated. I am new at this but I had the same problem. I finally ran accross the answer in the microchip data sheet. You can use port e but it is also an analog input. It must not only be set as output but also as digital or setting it as output is useless. If you dont have it already download the document on the 18F it is DSB. Look at page 99 Example initializing port e. Page has the table of codes for setting analog ports as digital.
If you havent already found the problem. That caught me out, too. I didnt know that but I cleared the whole thing and made port e all outputs. I will have to look at that. Thanks for the help I didn't configure Port E as Digital ouputs. Cheers for the help Aaron. David, Assuming you are using a standard character lcd I would suggest you check the initialization sequence carefully. I use the Optrex manual www. If anything is not just right on start-up all you will get is the boxes or dots.
Both were a bit slow on the uptake. Increase your latency to initialize, IE display clear, and reset or whatever they're called were spec'd at 1. Had to burn thousands of machine cycles based on 20MHz clock to wait this long! Insert wait states after display clear. Aside from that, if you're using the device in nibble mode, and properly initialize it as such, then experience a hardware reset not a power on-reset , the display will still be in 4-bit mode, and may misconstrue information sent to it by the PIC.
THEN, you can issue the command to switch over to nibble mode afterward. Initializing the display this way always , will prevent the display from screwing up when resets occur, and is more efficient than analyzing particular PIC register bits to determine conditions of reset, and figuring out the frailties of the LCD protocol.
I can send you code examples if you wish. Email chaka telus. Latest Posts. Where are they now? Which version to download? Active Posts. All FAQs. What's the alternative? Stay logged in. I hope this helps Blusky aspforum. Thanks 9. Andy
LM020LN - 5 X 7 DOT MATRIX LCD DISPLAY,16-CHARACTER,1-EDGE HOLES From old datasheet system
LM020L Datasheet PDF
LM020L Datasheet PDF - Hitachi -> Renesas Electronics