I want to know if i should disable interrupts for the following coding type:
Timer1 Interrupt is on.
1)
calculation of 16 or 32 bit number
followed by writing to eeprom
The 16 or 32 bit number is not changed in the Timer Interrupt procedure.
2)
x1, X2 : 16 or 32 bit number
Testing for 2 numbers ie if x1 > x2
Once again these numbers are not changed in the Timer Interrupt procedure
Thanks,
Jai.
Ttelmah
Joined: 11 Mar 2010 Posts: 19553
Posted: Fri Mar 27, 2015 2:14 am
No.
If it's needed at any point the compiler will do it for you.
The interrupts _will_ be disabled, but only for the very core part of the write, not the whole routine.
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