News:

;) This forum is the property of Proton software developers

Main Menu

Solution Code for LCD Affected by Industrial Interference or Energy Loss

Started by dnaci, Sep 26, 2023, 07:19 AM

Previous topic - Next topic

dnaci

Hi, There were some problems with the operation of the LCD in my project in a noisy environment. These problems occurred in the form of meaningless characters or text disappearing on the screen. My processor continued to work smoothly. While doing research on the subject, I reached this post from 2007:

https://www.picproje.org/index.php/topic,16619.msg109227.html#msg109227

In short, you can reconfigure the lcd with a coding as follows. The lcd is being prepared again with the BPF variable. This logic can also be used in I2C or 4 bit lcd communication or in GLCD or touch screens. Tested on Lcd exposed to noise. Instead of running this code continuously, you only need to use it once in time-consuming places in your code. If the LCD is not working properly, the problem will be solved.



Dim BPF as Byte SYSTEM ' or   Dim BPF As Byte

main:
'your code.....
'..............

Clear BPF.1
Cls : DelayMS 30

goto main