How to Convert a string into binary

Grant Edwards grante at visi.com
Sat Apr 15 22:30:34 EDT 2006


On 2006-04-16, John Machin <sjmachin at lexicon.net> wrote:
> On 16/04/2006 5:25 AM, HNT20 wrote:
>> 
>> hi  -->  0110100001101001
>> 
>
> This implies that the bits in a byte are transmitted MSB first. I 
> haven't done anything anywhere near this area since about the time that 
> acoustic couplers went the way of buggy whips, but my vague recollection 
>   is LSB first.

It depends.  "Normal" UARTs send LSB first.  Some other types of
serial links are MSB first.

-- 
Grant Edwards
grante at visi.com



More information about the Python-list mailing list