yet another algorithm challange
Drew Vassallo email (remove spam text)
>For example, in 2X mode, '0xA1' would translate to '0xCC 0x03', or in
>6X mode, to '0xFC 0x0F 0xC0 0x00 0x00 0x3F'. I planned on implementing the
>Obviously, a full byte-in, bytes-out lookup table would be horrendously
>big and inefficient of RAM or ROM.
Interesting, because a lookup table would be only 15 lines by my
calculations for 2x mode. 1 byte returned for each nibble 0-F. 6x is
another story, 3 bytes per nibble, but maybe that could be simplified.
Maybe using the 2x table in a clever way could get you what you need for the
6x mode. It is a neat problem.
Get your FREE download of MSN Explorer at http://explorer.msn.com
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the