![barb4you67](/avatars/20747.jpg)
barb4you67
25.06.2020 •
Engineering
Eight switches are connected to PORTB and eight LEDs are connected to PORTA. We would like to monitor the first two least significant bits of PORTB (use masking technique). Whenever both of these bits are set, switch all LEDs of Port A on for one second. Assume that the name of the delay subroutine is DELAY. You do not need to write the code for the delay procedure.
Solved
Show answers
More tips
- L Leisure and Entertainment When will Maslenitsa start?...
- F Food and Cooking Discovering the Mysterious Fruit of Feijoa...
- B Business and Finance How to Open an Online Store? A Detailed Guide for Beginners...
- W Work and Career How to Write a Resume That Catches the Employer s Attention?...
- C Computers and Internet Е-head: How it Simplifies Life for Users?...
- F Family and Home How to Choose the Best Diapers for Your Baby?...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
Ответ:
In this example, the delay procedure is given below in the explanation section
Explanation:
Solution
The delay procedure is given below:
LDS # $4000 // load initial memory
LDAA #$FF
STAA DDRA
LDAA #$00 //load address
STAA DDRB
THERE LDAA PORT B
ANDA #%00000011// port A and port B
CMPA #%0000011
BNE THERE
LDAA #$FF
STAA PORT A
JSR DELAY
LDAA #$00
STAA PORT A
BACK BRA BACK
Ответ:
Chamber is middle
If this is wrong report it