{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

programb24 - Microprocessors Applications(UPTU Appendix B...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Microprocessors & Applications (UPTU) Appendix B ØØ Explanation : For Binary-Gray conversion. (i) Record the MSB as it is. (ii) Add this bit to the next position, recording the sum and neglecting carry if any. (iii) Record successive sums until completed. e.g. to convert 0AH i.e. 1010 binary to gray. *** corel *** For our program the logic that we will be using for Binary-Gray conversion is that first we will add the number with itself. Then we will X-OR this added number with the original number. Then we will shift this X-ORed number by 1 bit position to the right. This gives the equivalent gray code. Display this Gray code. e.g. number = 0A. 0 A H + 0 A H 14 H XOR added number 0 0 0 1 0 1 0 0 (14 H) with original number 0 0 0 0 1 0 1 0 (0A H) 0 0 0 1 1 1 1 0 Shift by 1 bit to right 0 0 0 0 1 1 1 1 (0F H) (0FH) is the gray equivalent of 0A H. ØØ Algorithm : Step I : Get the number whose gray code equivalent is to be found. Step II : Add number with itself. Step III : XOR this added result with the original number.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern