Rockbox mail archiveSubject: (no subject)
From: alankorr <alankorr_at_subdimension.com>
Date: Sun, 13 Jan 2002 14:24:16 GMT
To Nicolas S.:
I can have a suggestion for you to speedup slightly your bit
streams : use 9-bit word instead of 8-bit, where the first
bit sent will act as a byte inverter.
For byte with total of bit 1 under or same total of bit 0
(pin state supposedly HI) :
0x03 => L-H-L-H-L-H-L-HHH-LLL
For byte with total of bit 1 above total of bit 0 (pin state
supposedly HI) :
0xFC => LLL-H-L-H-L-H-L-HHH-LLL instead of
Finally the worst case will be 1.5 times longer than the
quickest byte to send instead of twice.
NOTE : if you send nible 0xF that way : LO - HIHIHI -
LOLOLOLOLOLOLO - HIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHI, oh yes !
it will be very long !
Another suggestion, use a algorithm compression (LZSS could
be a simple and viable candidate) to compress your stream
before sending it to PC.
// free anonymous email || forums \\ subZINE || anonymous browsing
subDIMENSION -- http://www.subdimension.com
Received on 2002-01-13