PLC freeze

Good morning

I have an Arduino Mega + LCD 2x16. I have a complex algorythim that runs every 1s. If I don't touch on LCD, the program runs along the day without problems. But when I'm configuring some on LCD, the PLC freeze at different moments, but once freeze, only Reset works.

Without the sub that runs every second, the PLC never freeze while working on it.

What do you recommend?

Thanks on advance Best regards Pedro Ferrer

What do you recommend?

Posting your code so we understand what is happpening …

U have a goto():?

Good morning

Thanks by the comments. I already know what is the problem. Isn't a bug, but a problem with wire connections between PLC and RTC (Real Time Clock). Because the connections are not yet as final stage, while press on keyboards that exist on LCD board, some times I have a wrong lecture from RTC and freeze all.

If I press it gently, I have no problems. Fortunately is not a lack of RAM or Speed!

Thanks on advance Best regards Pedro Ferrer