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 08:40, local time: 2025/1/26 00:15,
3.15.4.70:LOG IN
|
©2025 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://massmind.org/techref/microchip/math/div/8byconstant10PIC18.htm"> Divide 8 bits by the constant value 10 on a PIC18</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.