I don't have this one in stock, but I would try
Code:LCDCON = %01000000
I don't have this one in stock, but I would try
Code:LCDCON = %01000000
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Wow, thanks Mister-E that was a fast response.
DataSheet states:
Once the module is configured, the LCDEN bit of the
LCDCON register is used to enable or disable the LCD
module. The LCD panel can also operate during Sleep
by clearing the SLPEN bit of the LCDCON register.
Are these settings order specific?
Setup other regs. first then set LCDCON (off) etc?
I have all the LCD settings off, but did not try LCDCON = %0100000 as you mentioned. Does it make a difference since I never sleep my pic?
I will try that setting and see what happens.
This is just baffling me to no end.
Code:LVDCON = 0 LCDCON = 0 LCDPS = 0 LCDSE0 = 0 LCDSE1 = 0 LCDSE2 = 0 LCDSE3 = 0 LCDSE4 = 0 LCDSE5 = 0 TRISF = 0 TRISG = 0
Z
Setting that bit did nothing.
But I found this out today after some testing.
If I add a micro second delay between any H-L or L-H output on those pins it works fine and no other pins act up.
So I assume there is some internal LCD element charge/time issue on these pins before the data state is valid?
Since any value below 4 micro seconds does weird things on pins and even reboots the pic from time to time.
I also added some delays in the setting of directions (tris) and other settings but that had no effect.
Does this make since, anyone else use LCD pins normally and not have this issue?
Mz
Can you post your code?
Are you writing to the whole port or some PORT bits here and there?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks