Use 8051 to make a combination lock program! 200 points! Compilation or C will do

Updated on technology 2024-08-08
5 answers
  1. Anonymous users2024-02-15

    This is complicated, this kind of customized problem, it is recommended to spend money to solve, mixed here, will do are office workers, earn points with interest, do not rely on it to eat will not do, will only rely on a catalog on the Internet or not complete or even wrong ** over, cheating points of course, if you pay high enough, there will be someone here to contact you :) supplementary reply: you give a mailbox, I will send you a reference, if you are satisfied, you will give points, if you are not satisfied, you should serve the people.

  2. Anonymous users2024-02-14

    You have to spend money to do this, how can you have time to fix this?

  3. Anonymous users2024-02-13

    max equ 20h ;max unit.

    org 0000h

    ljmp main

    org 0100h

    main: mov r0,#30h ;Data address header.

    mov max,@r0 ;The default is 30h maximum.

    mov r1,#10 ;Long match content counting.

    loop: inc r0

    mov a,@r0

    clr ccjne a,max,next ;Judging that the big Pei potato laughs small.

    next: jc exit

    mov max,a

    exit: djnz r1,loop ;Length count.

    sjmp $

    I can do it after I finish the test.

  4. Anonymous users2024-02-12

    org 0000h ;The program runs from 0000.

    ljmp main

    org 0030h

    main: ;The main program loops on.

    mov p1,#0ffh

    lcall delay ;Delay for a while.

    loop1: mov a,#0feh ;Only turn on one light at a time.

    loop: mov p1,a ;output to p1lcall delay ; Delay adjustment delay time.

    rl a ;These 3 sentences are used to light up.

    mov p1,a ;Output to p1

    lcall delay1 ;Delay for a while.

    rl a ;These four sentences are used to light up because two are shifted to the left.

    mov p1,a ;Output to p1

    lcall delay1 ;Delay time adjustment 1 time delay.

    ljmp loop1 ;Add this and you're in the loop.

    delay1:mov r4,#25 ;Delay subroutine, 12m crystal oscillator delay second, these 7 sentences are 1s delay subroutine for the main program to call.

    l3: mov r2 ,#

    l1: mov r3 ,#

    l2: djnz r3 ,l2

    djnz r2 ,l1

    djnz r4 ,l3

    retdelay: mov r5,#20 ;The delay subroutine 1 flashes the light to call these 7 sentences as the delay subroutine for the main program to call.

    d1:mov r6,#

    d2: mov r7,#

    djnz r7,$

    djnz r6,d2

    djnz r5,d1

    retend

  5. Anonymous users2024-02-11

    I'm not an expert.

    mov r7,#6fh ;111 1 cycles.

    loop1:mov r6,#02h ;#

    loop: nop

    djnz r6,loop;

    djnz r7,loop1;111*9 cycles.

Related questions
14 answers2024-08-08

Generally, the initial password of the door lock is 6 digits, such as 123456 or 6, 6 8 and so on. >>>More

6 answers2024-08-08

I tried to count it in the 3*3 grid before, and it took more than 40 seconds, and then I used the same calculation method to use the 4*4 grid, and the result was no response. >>>More

5 answers2024-08-08

Some exe files are encrypted (packed), you can't see it directly, you have to unshell it first. >>>More

7 answers2024-08-08

Form on the total number of days to put text1 text2 text3 command1 private sub command1 click(). dim daycount as long day of the week on the first day. >>>More

9 answers2024-08-08

<> method steps: 1. Open VC2010 (or other C language compilers), create a new project - select Win32 as the console application - name - OK. >>>More