Loading ...
Sorry, an error occurred while loading the content.

maths+logic!!!!

Expand Messages
  • kailash kumar
    hi all; I need ur help in maths in microcontroller logic look below a example: I hv converted FF = 255, see below FF/0A = 19 remainder = 2
    Message 1 of 2 , Jul 10, 2006
    • 0 Attachment
      hi all;
                I need ur help in maths in microcontroller logic
      look below a example:
      I hv converted FF = 255, see below
       
      FF/0A = 19                      remainder = 2 (lets put in reg R0)
      19/0A = 5(in acc)              remainder = 5 (lets put in reg R1)
      now if we put them in sequence like this R0 R1 Acc = 2 5 5
       
      This was for 1 byte, i need ur help to convert 3 bytes like FFFFFF = 16777215 in 3 different registers.
       
      thanx
       
       


      Kishwar Kumar
      +92-321-2485951
      Mehran, UET, Jamshoro
      Pakistan
       


      How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
    • OmkarCK
      Hi Look at the code attached. It is for 8051 microcontroller and does conversion of numbers upto FFFF....you can extend that logic for FFFFFF. Logic used in
      Message 2 of 2 , Jul 10, 2006
      • 0 Attachment
        Hi

        Look at the code attached. It is for 8051 microcontroller and does conversion of numbers upto FFFF....you can extend that logic for FFFFFF. Logic used in the program is simple and was developed to get things done. you can write more general purpose logic...if u spend soome good deal of time.


        kailash kumar <sansain123@...> wrote:
        hi all;
                  I need ur help in maths in microcontroller logic
        look below a example:
        I hv converted FF = 255, see below
         
        FF/0A = 19                      remainder = 2 (lets put in reg R0)
        19/0A = 5(in acc)              remainder = 5 (lets put in reg R1)
        now if we put them in sequence like this R0 R1 Acc = 2 5 5
         
        This was for 1 byte, i need ur help to convert 3 bytes like FFFFFF = 16777215 in 3 different registers.
         
        thanx
         
         


        Kishwar Kumar
        +92-321-2485951
        Mehran, UET, Jamshoro
        Pakistan
         

        How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.



        Regards,
        --OmkarCK

        {

          T.E. - Elex & Tcom;
          Don Bosco I.O.T., Kurla,Mumbai
        ;
          M : 09423084599
        ;
        };


        If we hear, we forget; if we see, we remember; if we do, we understand - Proverb


        Find out what India is talking about on Yahoo! Answers India.
        So, what’s NEW about the NEW Yahoo! Messenger? Find out.

      Your message has been successfully submitted and would be delivered to recipients shortly.