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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/04/08 19:28
Read: times


 
#154384 - because ....
Responding to: ???'s previous message
.. that is the way the chip is designed.

there is good reasons, the port pin and the port latch are not identical in cases where a pin is set high and held low (input).

if you need the port latch access, use a shadow register
instead of
mov p1,xxx
do
mov p1shadow,xxx
mov p1,p1shadow

that makes no sense for writes, but if you need to read the latch, reading the shadow will do the trick

Erik



List of 3 messages in thread
TopicAuthorDate
why diff. method to read 9051 port            01/01/70 00:00      
   because ....            01/01/70 00:00      
      Another example of R-M-W            01/01/70 00:00      

Back to Subject List