Divide WREG by 10 on a PIC 18:
addlw .1 btfsc STATUS,C addlw .255 mullw .51 rrcf PRODH,W
| file: /Techref/microchip/math/div/8byconstant10PIC18.htm, 0KB, , updated: 2011/12/20 09:40, local time: 2012/5/25 09:35,
38.107.179.230:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/microchip/math/div/8byconstant10PIC18.htm"> Divide 8 bits by the constant value 10 on a PIC18</A> |
| Did you find what you needed? |
|
|
The only consistant, simple to use yet powerful development environment. It simulates real-world devices via virtual component "plugins" (LED,LCD,key,motor,TV,etc) in real time, has a syntax highlighting editor, macro assembler and disassembler. Regular updates and third-party plugins keep this software ahead of any other PIC IDE. |
.