Posted: Tue Mar 24, 2015 8:55 am Post subject: interrupt confuse lcd
Hi
I use lcd nokia3310 with Mr Mirshv code that is in froum,share your code topic.
when i enable the interrupt 5 and 6 on atmega128, the lcd show incorrect position of character ond/or and character.
i have same problem on SED lcd when interrupt occur.
i think when interrupt trigger,after coming back from interrupt service routine, the program flow in data section (that symbol of a font saved)does not come back to the place jumped before interrupt.
i also check the software stack and hardware stack and framesize and set them at a very high value of 128,but problem exist.
there can be 2 reasons (that i can think of): the ISR is not saving registers that are used by the driver. in that case, use the SAVEALL switch.
Or the LCD works with nibbles, and it does not like the time between the 2 nibbles caused by the interrupt. In that case you need to turn off these ints before using the LCD. Or alter the driver so it turns off/on interrupts. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum