Noman Yousaf
Full Member level 4
- Joined
- Nov 19, 2003
- Messages
- 208
- Helped
- 3
- Reputation
- 6
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Lahore Pakistan
- Activity points
- 1,763
urgent help is needed please
i am facing the problem that in my software (in assembly language).
i am using timer interrupt in 16f72. there is some calculation which is done by w reg.
during calculation, when timer interrupt occurs, the value of w reg is disturbed.
when w reg goes to work for interrupt, then comes back after ISR, value has been changed.
actually problem is, when interrupt occurs, on very next step when i have to save the the w reg in any file reg, value of w reg is changed before even go to ISR (interrupt service routine).
so wrong value of w reg is saved.
please tell the appropriate solution to save then retrieve the value of w reg.
i am facing the problem that in my software (in assembly language).
i am using timer interrupt in 16f72. there is some calculation which is done by w reg.
during calculation, when timer interrupt occurs, the value of w reg is disturbed.
when w reg goes to work for interrupt, then comes back after ISR, value has been changed.
actually problem is, when interrupt occurs, on very next step when i have to save the the w reg in any file reg, value of w reg is changed before even go to ISR (interrupt service routine).
so wrong value of w reg is saved.
please tell the appropriate solution to save then retrieve the value of w reg.