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
@BharatAcharyaEducation7 ай бұрын
Thank you for the appreciation and such a detailed and accurate reply.
@pritamganguly267310 ай бұрын
Video link of BCD to hex conversion ??
@SatyamSingh-iw3vt9 ай бұрын
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
@studywithteja Жыл бұрын
Sir please tell me division of two bcd numbers in 8051 please 😭 . I am unable to do it sir
@lovetolearn2692 жыл бұрын
So, basically we are taking decimal and storing it as decimal...
@BharatAcharyaEducation2 жыл бұрын
No
@BharatAcharyaEducation2 жыл бұрын
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
@lovetolearn2692 жыл бұрын
@@BharatAcharyaEducation oh yes sir, now it's clear... I was missing that actually. Thanks for clarifying once again ❤️