On Thu, May 13, 2010 at 1:39 PM, alan smith wrote: > The temp_C * 9 can be done with the MULLW instruction. =A0Just not to sur= e about the divide by 5 part? It's not actually that difficult to do a proper binary divide if you want to. Consists of a loop with a couple of (multi-byte) left shift operations, and a comparison/subtraction. Code for 8 bit: MOVLW 8 MOVWF count CLR working CLR result :loop RLF orig RLF working MOVLW 5 SUBWF working, w BTFSC STATUS, C MOVWF working RLF result DECFSZ count GOTO loop -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist