Program 5 [10 points] 8 DIP switches are connected to Port A pins (PA7-PA0). The settings on these 8 DIP switches repres

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

Program 5 [10 points] 8 DIP switches are connected to Port A pins (PA7-PA0). The settings on these 8 DIP switches repres

Post by answerhappygod »

Program 5 10 Points 8 Dip Switches Are Connected To Port A Pins Pa7 Pa0 The Settings On These 8 Dip Switches Repres 1
Program 5 10 Points 8 Dip Switches Are Connected To Port A Pins Pa7 Pa0 The Settings On These 8 Dip Switches Repres 1 (74.83 KiB) Viewed 41 times
Program 5 [10 points] 8 DIP switches are connected to Port A pins (PA7-PA0). The settings on these 8 DIP switches represent a signed 8-bit number. Another 8 DIP switches are connected to Port B pins (PB7-PB0). These represent another 8-bit signed number. 8 LEDs are connected to Port T pins (PT7 - PT0). One extra LED is connected to Port M pin 0 (PMO). This last LED will be used as an overflow indicator. Write an assembly program that will continuously read the 2 numbers, add them, & display the result on the 8 LEDs on PT7-PTO. If the result overflowed, then turn on the overflow LED. Otherwise, turn it OFF. Lookup all the needed I/O registers and use their label names in your code. Assume you have header file included in your code. 4₁. WYPTO WPT7 WWW.PMO HCS12 PAO PA7 РВО PB7 Hl. Hl.
Your Code goes here INCLUDE 'mc9s12dg256.inc' Entry: ORG $4000 ; Interrupt Vectors ORG $FFFE DC.W Entry
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply