Professional Documents
Culture Documents
Input/Output
DVD player
MP3 player (iPod)
Cell phone
Automated Teller Machine (ATM)
Based on slides McGraw-Hill
Cars airbag controller
Additional material 2004/2005/2006 Lewis/Martin
Web server
15 8 7 0
output data
POLL LDI R1, DSRPtr
DDR
1514 0
screen BRzp POLL
ready bit DSR STI R0, DDRPtr
NO ready?
...
When data is written to Display Data Register: Polling YES
DSR[15] is set to zero DSRPtr .FILL xFE04
Character in DDR[7:0] is displayed write DDRPtr .FILL xFE06
Any other character data written to DDR is ignored character
(while DSR[15] is zero)
Division of labor The OS must set these bits before running each program
Example, If a program should access only x4000 - x6FFF
Operating system (OS) - make policy choices
!OS sets MPR[4, 5, 6] to 1 (the rest are set to 0)
Hardware - enforce the OSs policy
CSE 240 8-21 CSE 240 8-22