8051 | Program to convert Hexadecimal to BCD | Bharat Acharya Education

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 10

  • @hritvedahir7797
    @hritvedahir7797 2 ปีที่แล้ว +5

    Big fan of this celebrity Sir🤟

  • @HonortronicsInc
    @HonortronicsInc ปีที่แล้ว +1

    Thank you for the explanation. This was helpful!
    One thing that confused me that I had to learn was about the Modulus Operator in C (%). This is where you get your remainder from, which is really important for this tutorial. Once I learned that I had to do TWO operations to get the result, this tutorial made much more sense. You have to do something like this in C:
    int HexToBCD (int HexIn) // **Note that the input HEX byte should be 0x63 or less.
    {
    int result; // Register to hold what we calculated
    // **For Testing**
    HexIn = 0x5B, // Force the input value to 0x5B for the heck of it, so this is what you will be converting
    //*************
    result = (HexIn / 10); // This is where you get the result for the tens place, result will equal 9
    result = (result

    • @BharatAcharyaEducation
      @BharatAcharyaEducation  ปีที่แล้ว +1

      Thank you for the appreciation and such a detailed and accurate reply.

  • @pritamganguly2673
    @pritamganguly2673 ปีที่แล้ว +1

    Video link of BCD to hex conversion ??

  • @studywithteja
    @studywithteja 2 ปีที่แล้ว +1

    Sir please tell me division of two bcd numbers in 8051 please 😭 . I am unable to do it sir

  • @SatyamSingh-iw3vt
    @SatyamSingh-iw3vt ปีที่แล้ว

    HOW TO CONVERT FFF INTO DECIMAL
    IS THERE ANY DIFFERENT LOGIC EXCEPT DIVIDING THE NUMERATOR BY 10,100,100 BECAUSE I WANT TO PRINT THE HIGH BYTE AND LOW BYTE OF ADC IN 7 SEGMENT INTERFACING IN 4 PORTS

  • @lovetolearn269
    @lovetolearn269 2 ปีที่แล้ว +1

    So, basically we are taking decimal and storing it as decimal...

    • @BharatAcharyaEducation
      @BharatAcharyaEducation  2 ปีที่แล้ว +1

      No

    • @BharatAcharyaEducation
      @BharatAcharyaEducation  2 ปีที่แล้ว +1

      The number is stored in the memory as a hex number. It’s value say 25h is basically 37. Now I need to display the number. I can’t display 25h because I want to display its Dec equivalent. So we convert it to 37.
      Learn my full courses at...
      Bharat Acharya Education
      bharatacharyaeducation.com
      Courses available for you...
      8085 | 8086 | 80386 | Pentium | 8051 | ARM7 | COA
      Fees: 1199/-
      Duration: 6 months
      Activation: Immediate
      Certification: Yes
      Free: PDFs of full theory
      Free: VIVA Qs and MCQs
      Start Learning... NOW!
      bharatacharyaeducation.com
      ----
      Follow me on Instagram ...
      Instagram:bit.ly/3r45LAp
      ----
      Contact me on WhatsApp...
      Number: +919136428051
      Link: bit.ly/3IGvfdf
      ----
      My books on Amazon
      8086 Microprocessor: amzn.to/3u2t6Ee
      8051 Microcontroller: amzn.to/3obYQRs
      ----
      Use My Coupon code at Unacademy
      “ACHARYA10” and you will get
      up to 20% off on any course!
      ----
      #bharatacharya
      #bharatacharyaeducation
      #8086 #8051 #8085 #80386 #pentium
      #microprocessor #microcontrollers

    • @lovetolearn269
      @lovetolearn269 2 ปีที่แล้ว

      @@BharatAcharyaEducation oh yes sir, now it's clear... I was missing that actually. Thanks for clarifying once again ❤️