29. Figure 6.15 shows an input port with an 8-key DIP switch. When all switches are off, the microprocessor reads the da

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

29. Figure 6.15 shows an input port with an 8-key DIP switch. When all switches are off, the microprocessor reads the da

Post by answerhappygod »

29 Figure 6 15 Shows An Input Port With An 8 Key Dip Switch When All Switches Are Off The Microprocessor Reads The Da 1
29 Figure 6 15 Shows An Input Port With An 8 Key Dip Switch When All Switches Are Off The Microprocessor Reads The Da 1 (24.63 KiB) Viewed 36 times
29 Figure 6 15 Shows An Input Port With An 8 Key Dip Switch When All Switches Are Off The Microprocessor Reads The Da 2
29 Figure 6 15 Shows An Input Port With An 8 Key Dip Switch When All Switches Are Off The Microprocessor Reads The Da 2 (53.56 KiB) Viewed 36 times
29. Figure 6.15 shows an input port with an 8-key DIP switch. When all switches are off, the microprocessor reads the data FFH. When a switch is turned on (closed), it goes to logic 0 (for all switches ON, the data will be OOH). Write instructions to read the input port and, if all switches are open, set the Zero flag. (Use the instruc- tion CMA to complement the input reading and ORA A to set the Zero flag.)

+5V w D Input Port 07H Data Bus Do Input Enable FIGURE 6.15 DIP Switch Input Port with Address 07H
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply