Hi Gents,
I am currently using a 16 bit number that increments event millisecond via an interrupt. Whenever I want to inspect this number I disable interrupts, copy it then reanable interrupts. I remember reading somewhere in the datasheet or on avrfreaks that interrupts do no trigger mid operation. Are they talking about assembly operation? Meaning a 16 bit number takes more than just one operation because of the 8 bit architecture?
What I mean to ask is. Could an interrupt trigger if I were adding two 16 bit ints together or simply assigning one to another? Or would it wait for the procedure to finish?
Simaily if I were adding to doubles together, could an interrupt trigger between them?