Jump to content
Electronics-Lab.com Community

Recommended Posts


Posted

Good afternoon,

Read-modify-write means that the port is read, the bit selected is set or cleared, and the result is written to the port. The disadvantage of this is that the output that is driven high by the output may be overloaded and read as low (or vice-versa) as the output latch is not read only the actual pin. This is why sometimes it is good to use 'shadow' registers to modify, then transfer their contents to the port.

Tri-state means that the output driver is disabled- writing a 0 or 1 to the latch will not affect the external circuitry.

  • 2 weeks later...
Posted

what is the advantage of reading if one is going to modify i t?
Is it that the value is read,compared to the one selected for modification then if they are same,the value is not rewritten.if there is a mismatch,then the new value is written?
-Shekhar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...