LCD Display clashes with EXTI - STM32F4 Discovery
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-13 2:35 AM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-13 6:29 AM
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.