Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Serial format

2005-03-14 by fjch100

sorry I´m having problems because I´m sending a Long(4 bytes) from 
the PC serial port to the AVR and when I sent back the 4 Bytes its 
seem to be in reverse order!.
Is the PC serial format LSB first and the AVR MSB first?
 




--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@a...> wrote:
> At 01:28 PM 14/03/2005, you wrote:
> 
> >HI,
> >I have a question:
> >when I sent a Long(4 bytes) variable from the PC to the AVR which
> >byte is first? LSB ? MSB ?
> 
> You decide. The code for the AVR (or any other processor) has
> to match the sender's protocol.
> 
> Regards
> 
> John Samperi
> 
> ******************************************************
>                          Ampertronics Pty. Ltd.
>    11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
>           Tel. (02) 9674-6495       Fax (02) 9674-8745
>                 Email: samperi@a...
>                   Website  http://www.ampertronics.com.au
> * Electronic Design   * Custom Products   * Contract Assembly
> ******************************************************

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.