cancel
Showing results for 
Search instead for 
Did you mean: 

LCD Display clashes with EXTI - STM32F4 Discovery

cagibomber
Associate II
Posted on August 13, 2012 at 11:35

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 !!

1 REPLY 1
frankmeyer9
Associate II
Posted on August 13, 2012 at 15:29

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.