#11 First 8051 Assembly Language Program

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024

Комментарии •

  • @vooiyap
    @vooiyap  3 года назад +10

    Hi in my video I said that if the LED is white colour then it is "ON". This is incorrect. When the LED is white it is "OFF". I apologize for my mistake.

    • @edinfific2576
      @edinfific2576 Год назад +3

      What you meant to say was that a white or turned-off LED indicates a 1 or a high on port output because LEDs are connected between positive supply rail and the output pins, meaning there is a voltage across them (they're turned on) when outputs are zero.
      In other words, logic 1 turns LED off, logic 0 turns LED on.

    • @vooiyap
      @vooiyap  Год назад +3

      @@edinfific2576 Thank you for your comment.

    • @edinfific2576
      @edinfific2576 Год назад +3

      @@vooiyap Thank YOU for making these great, helpful videos!
      I listened to the relevant part in your video once again, and you did NOT make a mistake.
      At 9:48 you said:
      "A white LED means logic 1. Any other color means logic 0."
      and that was correct.

    • @vooiyap
      @vooiyap  Год назад +3

      @@edinfific2576 I appreciate your comments and interest.

  • @ss_kl
    @ss_kl 6 месяцев назад +1

    I'm using this program. Newcomers tend to focus on C language, but I find writing assembly code enjoyable. I'll convert it to hex and then load the program onto a CH551 or CH552 IC.

    • @vooiyap
      @vooiyap  6 месяцев назад

      Thank you for your comments. I am glad you have found the contents enjoyable.

  • @AFSMG
    @AFSMG 4 месяца назад

    Is EDSim51 free? Where to download it? Thank you so much. Great video teacher. Greetings from Spain

    • @vooiyap
      @vooiyap  4 месяца назад +1

      Thank you for your kind comments. It's appreciated. For EdSim51, try www.edsim51.com/

  • @ElSrAtun
    @ElSrAtun Год назад

    New subscriber and very interesting this topic.
    How could I show on the 7-segment display the result of pressing a certain switch? When pressing the first switch, "1" is shown and when pressing the next switch, 1 is deleted from the display and changes to 2?

    • @vooiyap
      @vooiyap  Год назад

      Hi sorry for the very late response. In answer to your question, you need to display the second digit in the same location as the first one. I hope that answer your question.

  • @waseemq1522
    @waseemq1522 2 года назад +1

    Can I start with Assembly 8051 or Assembly X86 as a first assembly language ?

    • @vooiyap
      @vooiyap  2 года назад +1

      Hi you can start with any assembler langauge.

  • @dinagarantamilselvam5116
    @dinagarantamilselvam5116 3 года назад +2

    Wonderfully explained sir !

    • @vooiyap
      @vooiyap  3 года назад +2

      Thank you for your kind comments. It's appreciated.

  • @DIPCAE
    @DIPCAE 3 месяца назад

    Hello, Do you know any simulator for P80C528? Thanks, Great Videos

    • @vooiyap
      @vooiyap  3 месяца назад

      Sorry, I don't know any simulator for P80C528.

  • @volvik_92
    @volvik_92 7 месяцев назад

    Hi. Why we have to copy the value to ACC first? Why we can not copy the value into the another port directly? Can you explain? Thank you.

    • @vooiyap
      @vooiyap  7 месяцев назад

      Yes, you can copy the value or data directly to the port.

  • @rowenasolar7275
    @rowenasolar7275 2 года назад

    Hi, professor, I have a question about the line of the text "time: - instruction: " what are the meaning of time and instruction? My instruction is running to 1460 now. My instruction does not run as fast as showing in the video. Also, as you made the modification in the comment, white means off (off == 0), then we put 00001111 and it should be white white white white color color color color?

    • @vooiyap
      @vooiyap  2 года назад

      Please check your System Clock (top left hand corner) is set 12 MHz and "Update Freq" is set to 10000. Regarding the LEDs, color LED is ON (logic 1), and white LED is OFF (logic 0).

    • @rowenasolar7275
      @rowenasolar7275 2 года назад

      @@vooiyap Thank you so much for explaining my problems. My instruction runs pretty fast after I set "Update Freq" is set to 10000. Also because the value is 00001111, so from 0 to 7 it should be off off off off off on on on on, then it should be color color color color white white white white in led. I have one more questions, so what is the technological meaning of "TIme" and "Instructions"? What do those two values represent for? Or you have explained it in the later videos?

  • @shulogou4234
    @shulogou4234 8 месяцев назад

    Hi, professor, I want to change the value of '#0FH' for exercise myself, but I can't edit the assembly code, what should I do?

    • @vooiyap
      @vooiyap  8 месяцев назад

      Hi, have you tried editing the code in the Assembly Code Panel (the middle panel) of the EdSim51?

  • @rowenasolar7275
    @rowenasolar7275 2 года назад

    Hi, professor, because I cannot change LCD E to P3.1, LCD RS P3.3(which is what we suppose to do for our assignment due tonight dealing with motor spin), as one of my friends suggested to me, I delete it and reinstall them again. Right now, it says "Java launch failure". (I am a mac user by the way) I do not know if you have any idea? I apologize if this is a pretty complicated problem, and you can tell me if you know. Thank you so much!

    • @vooiyap
      @vooiyap  2 года назад

      Try using the Dynamic Interface (DI) Panel - remap the peripherals. Link:www.google.com/search?q=EdSim51+dynamic+interface+DI&oq=EdSim51+dynamic+interface+DI&aqs=chrome..69i57.14349j0j15&sourceid=chrome&ie=UTF-8

  • @rowenasolar7275
    @rowenasolar7275 2 года назад

    Hi, professor, if we want to stop running, we could click pause?

    • @vooiyap
      @vooiyap  2 года назад

      Yes. You can try that.

    • @rowenasolar7275
      @rowenasolar7275 2 года назад

      @@vooiyap I see. Thank you so much professor.

  • @RepairRadioLab
    @RepairRadioLab 2 года назад

    how to get .hex file from .asm code... please explain

    • @vooiyap
      @vooiyap  2 года назад

      Hi the assembler that you used should have an option that generates the hex file. With Keil IDE go the Project folder - Target folder - right click on the Target folder - select Options for Target - select Output tab - select Create Hex File opotion. Hope that helps.

    • @RepairRadioLab
      @RepairRadioLab 2 года назад

      @@vooiyap i am sorry , i was talking about pic microcontroller

    • @vooiyap
      @vooiyap  2 года назад

      @@RepairRadioLab Hi it will be similar with any assembler. There is usually an option to create a hex file. May I know which assembler or IDE you are using?

  • @waseemq1522
    @waseemq1522 2 года назад

    Where's number 1?

    • @edinfific2576
      @edinfific2576 Год назад

      What do you mean?
      If you're talking about the LED output, 1 would be on the right.
      The LEDs are hooked up between the positive supply rail and logic outputs, meaning that they turn on when the logic output is 0 (zero), and off when logic output is 1 (it's counter-intuitive when learning, but that's how it is).