************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Dave,
I have tried
DEFINE LCD_COMMANDUS 1000 and 4000
DEFINE LCD_DATAUS 25 and 100
with no aparent changes.
Malcom,
The display does work at 8 MHz with a 4 MHz resonator but the chip's timing is doubled and that is what I am trying to figure out. so a PAUSE 1000 will last 2 seconds instead of 1 second. The timing for this project is important because I want to build an ultrasound distance mesurement and so I have to time the echo received after sending an output burst of 40 KHz. I think I am far from my goal but I can't get started with the fun part untill I have figured out my issue with the timing problem.
Alain,
What did you mean by this?
For the record this is my hardware configuration and with an oscilloscope I see the 5V as pure DC 5.12Vmay be the missing LCD Settling time @beginning of the program ???
Ok so here is a positive update...
I had removed my resonator last night to rule it out and got the same issue with the chip's internal oscilator. Today I just put back the resonator and set _XT_OSC again and now it is working fine at 4 MHz.
Furthermore...! if I remove the LCD_Anypin, it is now still working with the standard version.
So please correct me if I am wrong but I am working with a breadboard and I suspect when I had the resonator at first, there was a bad contact with one of its pin!
Thanks to all for your responses, it kept me going.
Mike
Yup
A bad connection will make all kinds of strange things happen.
Dave
Always wear safety glasses while programming.
Mike,
Not sure if I'm correct, but I seem to remember reading that solder less breadboards can cause issues as they can have a high capacitance. Maybe this was part of the problem causing the timing issue.
Glad to hear you have this part resolved and best of luck with the rest of your project
Hi, I just mean place a pause 500 to 700 ms before sending the very first command to the LCD.Alain,
What did you mean by this?
Quote:
may be the missing LCD Settling time @beginning of the program ???
just to let it be ready for receiving infos ...
Moreover
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
are the correct value for LCDs
in case of using OLEDS ... add 50% to both !!!
Alain
Last edited by Acetronics2; - 11th March 2010 at 13:56.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks