Question: DEV 3 - HOMEWORK 3 1 - N / 7 i lemini ger ekle tiren ve sonucu P 0 ' da kalan P 1 '

DEV 3-HOMEWORK 3
1- N/7 ilemini gerekletiren ve sonucu P0'da kalanP1'de gsteren 8051 Assembly kodunu yazn. Burada N;P0 'dan okunan saydr.
Write 8051 Assembly code that performs the N7 operation and displays the remainder in P1, result in P0.N is the number read from P0.
2- Aadaki dahili veri hafzada veri transferi ilemini gerekletiren 8051 Assembly kodunu yazz. Dolayl adresleme yntemini ve DJNZ komutunu kullanarak, dng ile verileri 19h,18h,dots,10h adreslerinden 29h,28h,,20h adreslerine aktarn.
Write 8051 Assembly code that performs data transfer from internal data memory as described below. Using the indirect addressing method and the DJNZ instruction, create a loop to transfer the data from addresses 19h,18h,dots,10h to addresses 29h,28h,dots,20h.
3-ekildeki c iin P1.0'daki butona basldnda "topla" adnda, P1.2'deki butona basldnda "carp" adnda bir alt program arlacaktr.
Topla alt programnda N1+N2, carp alt programunda N1xN2 ilemi gerekletirilecek ve sonu P2'ye yazlacaktr. Burada N1 bank1 deki R0, N2 ise bank2 deki R0'dr (Ilemlerin sonucunun FFh'yi amadn varsaynz.). Ilemi gerekletiren 8051 Assembly kodunu yazn.
ADT
Write 8051 Assembly code that performs the following operation for the microcontroller depicted in the diagram: When the button at P1.0 is pressed, a subprogram named "addition" will be called, and when the button at P1.2 is pressed, a subprogram named "multiply" will be called.
In the "add" subroutine, N1+N2 will be calculated, and in the "multiply" subroutine, N1xN2 will be calculated. The results will be stored in P2. Here, N1 is stored in bankI's R0 and N2 is stored in bank2's R0.(Assume that the result of the operations does not exceed FFh.)
4- Bir iyerindeki ifreli kilit sisteminde 6 adet kullan kayd bulunmaktadr.ifreler bir look-up table'da kaydedilmitir. Kullanclar P1'den ifre girii yapmaktadr. Kullancn girdii ifre tabloda bulunuyor ise P0.0 lojik 1 durumuna getirilerek kap alacaktr.
Bir look-up table tarayan ve P1'den okunan deer tabloda bulunuyor ise P0.0' lojik 1 durumuna getiren 8051 Assembly kodunu yaziniz.
In an office's encrypted lock system, there are six users stored in a look-up table. Users enter their passwords from P1. If the entered password matches one in the table, P0.0 is set to logic 1 to open the door.
Write 8051 Assembly code that scans a look-up table and sets P0.0 to logic 1 if the value read from P1 is found in the table.
DEV 3 - HOMEWORK 3 1 - N / 7 i lemini ger ekle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!