Are you using the R/W pin
Hi,
If you are not using the R/W pin then the communication is unidirectional. That is the PIC talks and the LCD listens. And there is a rare chance that your data lines are taking more current (if the LCD is not faulty). For the 18F452 you can start you program and dump the values of the stack and POR registers to a serial output. This way you know what is causing the PIC to reset. Assuming that your code is alright, the possibility is of a brownout. Try disconnecting the backlight (pin 15,16). This would drastically reduce the current consumtion of the LCD module and as suggested by dynamoben do use decoupling capacitors at both the PIC and LCD modules. If your LCD runs okay then you need to work on the PS. Maybe you are using a 78L05 which supplies a maximum current of 100ma. Also note that some LCD modules do not have limiting resistors in the backlight so you have to put one yourself. Also the LEDs inside the backlight are connected as series then parallel. So until unless you know the VFwd of the LED you would not be able to calculate your series resistor. A simple way of measuring this is put an arbitary resistor in the path of the backlight and measure the voltage across pin 15,16.
If you are using the R/W pin (only when you use the LCDIN command) then there can be a bus conflict (again rarely). Try increasing the command and data delays to the LCD. This may resolve your problem.
Regards
Sougata
Solved, thanks for the help!
OK, the problem was with the power after all, i used a decoupling Capacitor to the uC and all my problems where gone!, i really cant believe yet as i had such a huge regulator for the application.
MENTAL NOTE : Never forget that 103 Capacitor between Vcc and Vdd ever again!
regarding the 24 character lcd displays with demo board.
hi there,,:p
Sorry I realize this forum is quite old, but it never hurts to try. I recently purchased a 24 character lcd display that came with a usb demo board. I've been trying to get this demo board to work but no success. Is there a way you can have a look at the two links below and let me know if there is any way you can help me out. Any help would be appreciate it. Is there a driver needed for the demo board at all?
Here are the link:>>:rolleyes:
http://www.sure-electronics.net/down..._Ver1.0_EN.pdf
http://www.sure-electronics.net/mcu,...y/DE-LM005.pdf
regarding my lcd display and demo board
hi again.. thanks for your reply.. I actually hooked everything up together and pluged the demo board by its usb connection to my pc. It started displaying company information. but when i used the exact same programing codes that came with the demo board in Turbo C/C++ win 7 64bit, i didn't get any results of my own. I just changed the greeting message to one of my own. nothing changed. Im not sure if its the turbo c im using is the right program or it could be the code. not sure.. help me out please. i will provide you with any information you that is necessary. thank you.
Quote:
Originally Posted by
malc-c
Have to agree with Jerson, it could be that the PIC has been wiped and needs re-programming (with the sample code at the end of the PDF). The demo board has the ISCP pins to allow you to connect to a PIC programmer in order to do this.
Basically it looks like the demo board was simply designed to allow you to test various LCD screens. Plug in an LCD, hook up to a USB port for power and the company info would by default scroll across the screen.. You could then modify the code, compile it and then reload it so it says something completely different. - no "drivers" are needed (Windows running on a PIC.... now there's an worrying thought :) )
Do you have the ability to program PICs ?