EEPROM IN ISR

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
chmoc_1567941
Level 4
Level 4

can i use E2PROM in isr??

   

i got the error...

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do not use EEProm in an interrupt handler.

   

The amount of time the writing takes is too much for an interrupt

   

and

   

No other interrupts can be taken care of.

   

That would mean: if EEProm component uses an interrupt the system hangs.

   

Solution: Set a flag in the handler which you check in your main loof and act accordingly upon.

   

 

   

Bob

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do not use EEProm in an interrupt handler.

   

The amount of time the writing takes is too much for an interrupt

   

and

   

No other interrupts can be taken care of.

   

That would mean: if EEProm component uses an interrupt the system hangs.

   

Solution: Set a flag in the handler which you check in your main loof and act accordingly upon.

   

 

   

Bob

0 Likes
chmoc_1567941
Level 4
Level 4

Thank you BOB

   

i did same at yesterday night!!

   

its working!!

0 Likes