teenamalik 0 Newbie Poster

Hello there,
I have an interesting question reagrding realtime application.
When say a microcontroller is executing let us say an instruction to collect data from a buffer.If an interrupt strikes and controller has to go to ISR.
The buffer is receiving I/P continuoulsy.

Now when the controller returns back after servicing the interuppt the buffer contents may get changed as it is receiveing I/P continuously.

What can be done so that the buffer contents remain unaltered before they are loaded in controller?

Please advise.

Tina