2012-08-13 02:35 AM
Good morning everyone,
I managed to make my LCD Display work by using a simple ''delay'' function which counts the time I need to wait.I also use quite a lot a interrupts in my project.The problem is: If an interrupt occurs while it's counting for the display, its messes all the writing on the LCD screen.I would like to know if there is a medium to block the interrupts if I'm displaying ?Like, if I display I put var_dis = 1, and if var_dis = 1, no interrupt.Thank you !!2012-08-13 06:29 AM
You can certainly write to the NVIC->ICERx registers to disable your interrupts.
However, it more looks like your delay routine has some kind of bug. I assume the write to the LCD screen takes a rather long time, compared to the usual interrupt processing. So I guess you can hardly afford to turn off interrupts for such prolonged periods without affecting the rest of the application.