Closed thalesmaoa closed 6 years ago
Hi there! Since updating lcd does not need real time, I would suggest updating the data that needs to be displayed in ISR but update the display in the normal main loop let's say every 300 ms or so. This approach worked for me very well. Cheers, Felix
This is definitely a good solution, but it doesn't fix my issue.
Indeed this was only an example. I've only worked with 8-bit Atmel processor and I have no idea how to create a blocking interruption. This is useful for a lot of applications.
[EDIT] Sorry (close - open). My smartphone just fall and closed the issue but I really want to know the answer.
Try adding noInterrupts()
on the first line of atualizaLCD()
and interrupts()
on the last line. It will prevent interrupts from being called during that period
Hi, I'm using DAC to generate a low frequency sine with a handler. I'm also using another interrupt to update LCD.
The problem is that, when LCD calls, the DAC stop cycling and stay constant. How can I build a blocking interrupt?