Skip to main content
cagibomber
Associate II
August 13, 2012
Question

LCD Display clashes with EXTI - STM32F4 Discovery

  • August 13, 2012
  • 1 reply
  • 811 views
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 !!

    This topic has been closed for replies.

    1 reply

    frankmeyer9
    Associate III
    August 13, 2012
    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.