9 Feb 07:41
Re: [PIC] 9 bit binary to digits?
ivp <joecolquitt <at> clear.net.nz>
2010-02-09 06:41:50 GMT
2010-02-09 06:41:50 GMT
> The PICList.org website has an 8 bit version to do this How about subtract 100 from the number until the 9th bit is clear, then use the 8-bit routine to get the rest. Add the number of subtracts to the 100's digit. That would be a maximum of 4 subtracts, to find 256 - 300, 301 - 400, 401 - 500 and > 501 wbr -- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist
RSS Feed