Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/03/02 03:58
Read: times


 
#23784 - RE: any way of reading P2 SFR ?,peter#2
hi peter;
i don't agree that i don't need to disable the interrupts.consider following scenario:
;assume interrupts are enabled in this region
mov_p2 010h
movx @r0,a
;now if interrupt is sensed during the last macro instruction viz.mov p2,new_val
;following cascade effect is possible
;a.interrupt triggers a higher priority task
;b.the higher priority task also used p2
;and mofdified it to say 11h
;c.when the preempted task resumes it
;executes movx @r0,a but with wrong p2 contents.
|;other code
|

this is why i wanted to disable interrupts while trying to keep dual data pointers.
regards
pranav




List of 32 messages in thread
TopicAuthorDate
any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?erik            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?,donald            01/01/70 00:00      
RE: any way of reading P2 SFR ?peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?, Peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?, Peter            01/01/70 00:00      
RE: any way of reading P2 SFR ?, Erik            01/01/70 00:00      
RE: any way of reading P2 SFR ?, Erik            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR - serious            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?,peter#2            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      
RE: any way of reading P2 SFR ?peter#2            01/01/70 00:00      
RE: any way of reading P2 SFR ?            01/01/70 00:00      

Back to Subject List