The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: [OT] PIC processor - Compression



Hi Clive,

The best method depends on the kind of data you're storing, such as whether
it's totally random or not, and if it's single bytes or strings.

Have a look a Huffman encoding though.  If you know the distribution of
values you're encoding you can optimise the tables for it, and it's dead
easy to implement (and to keep the code size small).

I've never tried putting it in a PIC, but it shouldn't be impossible.

David P.

Clive Chapman <clivechapman@xxxxxxx> wrote:
Sorry of the off topic post but I know there are some PIC users in this
group I thought might be able to help me.

I'm writing some PIC firmware for a PIC16F877 and need to store quite a bit
of data in FLASH. It's looking as though I may not be able to store all of
the data I want to and so wondered if any of the group members had found
any compression algorithms for the PIC.

I need to be able to store all HEX vales.





Clive
clivechapman@xxxxxxx



[Non-text portions of this message have been removed]



UK Home Automation Meet 2004 - THIS WEEK!
http://www.ukha2004.com

http://www.automatedhome.co.uk

Member Offers - http://www.freeranger.co.uk/ukha

UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.