shaswat
Advanced Member level 4
- Joined
- Jul 2, 2013
- Messages
- 115
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 18
- Activity points
- 963
I saw a generic code of a Maxim integrated micro-controller and I found one thing interested that before reading and writing data from an external EEPROM, they disable all the interrupt and after reading/writing the data, they enable the interrupts.(The communication is through I2C). I was little bit surprised that is it mandatory to disable the interrupts before reading or writing certain amount of data through EEPROM? Before this I never used this things because I never got any problem or any error during writing the data on memory cause of interrupts. I just want to know that is it good to disable the interrupts before reading and writing data parts from/in memory ?? Should I make a habit of it??
Any new idea would be really appreciated..
Any new idea would be really appreciated..