Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

16-Bit Binary to HH:MM:SS

$
0
0
Last year, I developed code to convert a 17-bit binary to BCD based on a 16-bit method from PICList (See: http://www.piclist.com/techref/microchip/math/radix/b2bu-17b5d.htm ) . My need was for a full 6-digit decimal display. My current project is a roast thermometer that requires converting seconds to BCD. Divide by 60 routines followed by BIN2BCD conversions are available, but I wanted to see whether the same polynomial approach as used last year had any advantages for doing...

16-Bit Binary to HH:MM:SS

Viewing all articles
Browse latest Browse all 4923

Trending Articles