Welcome!
cool Welcome PIC fans!
(to Pascal language fans too!)
Documents

Close Documentation

Close How to support PMP

Close Manuals

Close Today's favourites

Technical

Close Tips

Search




Downloads
Google

Tips - Fastest way to divide a byte by 10 in PIC18
Here is a wonderful tip:

Given WREG = number to divide by 10, 

   MULLW   .205
   RLNCF   PRODH, W
   SWAPF   WREG
   ANDLW   0x1F

Gives (number / 10) in WREG!!!
 


Creation date : 2009.12.18 5:06 PM
Last update : 2009.12.19 7:37 PM
Category : Tips
Page read 997 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


Connection...
 
Members List Members : 90

members Visits of the day: (5) Zele    fmy    brico31    PPA    tomywong   

Your Username:

Password:

[ Password lost ? ]


[ Join us ]


  Member online:
  Anonymous online: 6

Total visits Total visits: 137353  

Most ever online
Most ever onlineTotal: 43

The 04/11/2009 @ 08:33


Webmaster - Infos

Ip: 38.107.191.101

Search




Friends News
Support PMP

Sentence to think about :  Software is like sex, it’s better when it’s free.   Linus Torvalds, Free Software Foundation conference, febuary 1996.
^ Top ^